Client Methods
Methods
AcceptMarketplaceOffer
Requires login
Accept the specified offer
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
offerId | string | ✓ | The ID of the offer |
AvailableMarketplaces
organizeById, // optional
forceReload // optional
}) → Promise.<Object>
Retrieve info about all available marketplaces
Returns: Info about available marketplaces
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
organizeById | boolean | By default, the returned marketplace info is organized by tenant and marketplace slug. If this option is enabled, the marketplaces will be organized by marketplace ID instead. | |
forceReload | boolean | If specified, a new request will be made to check the currently available marketplaces instead of returning cached info (default:false) |
CastVote
tenantId,
votingEventId,
sku
}) → Promise.<Object>
Requires login
Cast a vote for the specified item in the specified voting event
Returns: Info about the voting event, including the current user's votes and the current total voting tally
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
tenantId | string | ✓ | The tenant ID of the marketplace in which the voting event is specified |
votingEventId | string | ✓ | The ID of the voting event |
sku | string | ✓ | The SKU of the item to vote for |
ClaimGift
Claim the specified gift code
Use the GiftClaimStatus method to check minting status after claiming
Returns: Information about the claim, including the tenant associated with the item, the gift ID and the status op key
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
code | string | ✓ | The OTP gift code to claim |
ClaimItem
marketplaceParams,
sku,
email // optional
})
Claim the specified item from the specified marketplace
Use the ClaimStatus method to check minting status after claiming
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
marketplaceParams | Object | ✓ | Parameters of the marketplace |
sku | string | ✓ | The SKU of the item to claim |
email | string | Email address of the user. If specified, this will bind the user to the tenant of the specified marketplace |
ClaimStatus
marketplaceParams,
sku
}) → Promise.<Object>
Return status of the specified item claim
Returns: The minting status of the claim
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
marketplaceParams | Object | ✓ | Parameters of the marketplace |
sku | string | ✓ | The SKU of the item claimed |
CollectionRedemptionStatus
marketplaceParams,
confirmationId
}) → Promise.<Object>
Return status of the specified collection redemption
Returns: The status of the collection redemption
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
marketplaceParams | Object | ✓ | Parameters of the marketplace |
confirmationId | string | ✓ | The confirmation ID of the redemption |
CreateListing
contractAddress,
tokenId,
price,
listingId // optional
}) → Promise.<string>
Requires login
Create or update a listing for the specified item
Returns: The listing ID of the created listing
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
contractAddress | string | ✓ | The NFT contract address of the item |
tokenId | string | ✓ | The token ID of the item |
price | number | ✓ | The price of the listing, in USD |
listingId | string | (When editing a listing) The ID of the existing listing |
CreateMarketplaceOffer
contractAddress,
tokenId,
offerId, // optional
price,
expiresAt // optional
}) → Promise.<Object>
Requires login
Create or update an offer on the specified NFT
Returns: Info about the created/updated offer
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
contractAddress | string | ✓ | The contract address of the NFT |
tokenId | string | ✓ | The token ID of the NFT |
offerId | string | IF modifying an existing offer, the ID of the offer | |
price | number | ✓ | The amount to offer |
expiresAt | number | The time (in epoch ms) the offer will expire |
EntitlementClaimStatus
marketplaceParams,
purchaseId
}) → Promise.<Object>
Return status of the specified entitlement claim
Returns: The mint status of the entitlement claim
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
marketplaceParams | Object | ✓ | Parameters of the marketplace |
purchaseId | string | ✓ | The purchase ID of the entitlement, for confirmation of status |
ExchangeRate
Retrieve the current exchange rate for the specified currency to USD
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
currency | string | ✓ | The currency for which to retrieve the USD exchange rate |
GiftClaimStatus
marketplaceParams,
confirmationId, // optional
giftId // optional
}) → Promise.<Object>
Return status of the specified gift claim
Returns: The transfer status of the gift claim
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
marketplaceParams | Object | ✓ | Parameters of the marketplace |
confirmationId | string | The confirmation ID of the gift purchase | |
giftId | string | The ID of the claimed gift |
Leaderboard
marketplaceParams, // optional
userAddress, // optional
start, // optional
limit // optional
}) → Promise.<(Array|Object)>
Get the leaderboard rankings for the specified marketplace. If user address is specified, will return the ranking for the specified user (if present)
Returns: Returns a list of leaderboard rankings or, if userAddress is specified, ranking for that user.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
marketplaceParams | Object | Filter results by marketplace | |
userAddress | string | Retrieve the ranking for a specific user | |
start | integer | PAGINATION: Index from which the results should start (default:0) | |
limit | integer | PAGINATION: Maximum number of results to return (default:50) |
Listing
Retrieve a specific listing
NOTE: When a listing is sold or deleted, it will no longer be queryable with this API. Use ListingStatus instead.
Returns: The listing
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
listingId | string | The ID of the listing |
ListingAttributes
marketplaceParams, // optional
displayName // optional
}) → Promise.<Array.<String>>
Retrieve names of all valid attributes for listed items. Full attribute names and values are required for filtering listing results by attributes.
Specify marketplace information to filter the results to only items offered in that marketplace.
Returns: A list of valid attributes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
marketplaceParams | Object | Parameters of a marketplace to filter results by | |
displayName | string | Display name of the item from which to request attributes |
ListingEditionNames
Retrieve all valid edition names of the specified item. Full item edition names are required for filtering listing results by edition.
Returns: A list of item editions
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ✓ | Display name of the item from which to request edition names |
ListingNames
Retrieve all valid names for filtering listings. Full item names are required for filtering listing results by name.
Specify marketplace information to filter the results to only items offered in that marketplace.
Returns: A list of item names
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
marketplaceParams | Object | ✓ | Parameters of a marketplace to filter results by |
ListingPurchaseStatus
listingId,
confirmationId
}) → Promise.<Object>
Return status of the specified listing purchase
Returns: The status of the purchase
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
listingId | string | ✓ | The ID of the listing |
confirmationId | string | ✓ | The confirmation ID of the purchase |
Listings
start, // optional
limit, // optional
sortBy, // optional
sortDesc, // optional
filter, // optional
editionFilters, // optional
attributeFilters,
priceRange, // optional
sellerAddress, // optional
contractAddress, // optional
tokenId, // optional
currency, // optional
marketplaceParams, // optional
collectionIndexes, // optional
startTime, // optional
endTime, // optional
lastNDays, // optional
includeCheckoutLocked // optional
}) → Promise.<Object>
Retrieve listings matching the specified parameters.
Returns: Results of the query and pagination info
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
start | integer | PAGINATION: Index from which the results should start (default:0) | |
limit | integer | PAGINATION: Maximum number of results to return (default:50) | |
sortBy | string | Sort order. Options: "created") | |
sortDesc | boolean | Sort results descending instead of ascending (default:false) | |
filter | string | Filter results by item name.
| |
editionFilters | Array.<string> | Filter results by item edition.
| |
attributeFilters | Array.<Object> | ✓ | Filter results by item attributes. Each entry should include name and value (e.g. |
priceRange | Object | Filter min and/or max price (e.g. | |
sellerAddress | string | Filter by a specific seller | |
contractAddress | string | Filter results by the address of the NFT contract | |
tokenId | string | Filter by token ID (if filtering by contract address) | |
currency | string | Filter results by purchase currency. Available options: | |
marketplaceParams | Object | Filter results by marketplace | |
collectionIndexes | Array.<integer> | If filtering by marketplace, filter by collection(s). The index refers to the index in the array | |
startTime | integer | Filter by results listed after the specified time (in milliseconds since epoch) | |
endTime | integer | Filter by results listed before the specified time (in milliseconds since epoch) | |
lastNDays | integer | Filter by results listed in the past N days | |
includeCheckoutLocked | boolean | If specified, listings which are currently in the checkout process (and not so currently purchasable) will be included in the results. By default they are excluded. |
ListingStats
start, // optional
limit, // optional
sortBy, // optional
sortDesc, // optional
filter, // optional
editionFilters,
attributeFilters,
priceRange, // optional
sellerAddress, // optional
contractAddress, // optional
tokenId, // optional
currency, // optional
marketplaceParams, // optional
collectionIndexes, // optional
startTime, // optional
endTime, // optional
lastNDays // optional
}) → Promise.<Object>
Retrieve stats for listings matching the specified parameters.
Returns: Statistics about listings. All prices in USD.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
start | integer | PAGINATION: Index from which the results should start (default:0) | |
limit | integer | PAGINATION: Maximum number of results to return (default:50) | |
sortBy | string | Sort order. Options: "created") | |
sortDesc | boolean | Sort results descending instead of ascending (default:false) | |
filter | string | Filter results by item name.
| |
editionFilters | Array.<string> | ✓ | Filter results by item edition.
|
attributeFilters | Array.<Object> | ✓ | Filter results by item attributes. Each entry should include name and value (e.g. |
priceRange | Object | Filter min and/or max price (e.g. | |
sellerAddress | string | Filter by a specific seller | |
contractAddress | string | Filter results by the address of the NFT contract | |
tokenId | string | Filter by token ID (if filtering by contract address) | |
currency | string | Filter results by purchase currency. Available options: | |
marketplaceParams | Object | Filter results by marketplace | |
collectionIndexes | Array.<integer> | If filtering by marketplace, filter by collection(s). The index refers to the index in the array | |
startTime | integer | Filter by results listed after the specified time (in milliseconds since epoch) | |
endTime | integer | Filter by results listed before the specified time (in milliseconds since epoch) | |
lastNDays | integer | Filter by results listed in the past N days |
ListingStatus
Retrieve the status of the specified listing
Returns: The status of the listing
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
listingId | string | The ID of the listing |
Marketplace
Retrieve full information about the specified marketplace
Note - Upon changing login state, the marketplace should be retrieved again as permission info in marketplace items may be different depending on the current user's permissions.
Returns: The full information for the marketplace
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
marketplaceParams | Object | ✓ | Parameters of the marketplace |
MarketplaceCSS
Retrieve custom CSS for the specified marketplace
Returns: The CSS of the marketplace
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
marketplaceParams | Object | ✓ | Parameters of the marketplace |
MarketplaceInfo
Retrieve basic information about a specific available marketplace with the specified tenant/marketplace slug, ID, or hash.
Includes the slugs, ID and hash of the marketplace, as well as branding information.
To retrieve full metadata for the marketplace, use the Marketplace method.
Returns: Info about the marketplace
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
marketplaceParams | Object | ✓ | Parameters of the marketplace |
MarketplaceOffers
contractAddress, // optional
tokenId, // optional
buyerAddress, // optional
sellerAddress, // optional
statuses, // optional
start,
limit // optional
}) → Promise.<Array.<Object>>
Retrieve offers for the specified parameters
Returns: Offers matching the specified filters
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
contractAddress | string | The address of an NFT contract | |
tokenId | string | The token ID of an NFT | |
buyerAddress | string | The address of the offerrer | |
sellerAddress | string | The address of the offerree | |
statuses | Array.<String> | Status to filter results by. Allowed values: "ACTIVE", "ACCEPTED", "CANCELLED", "DECLINED", "INVALID" | |
start | number | ✓ | The index to start from (default:0) |
limit | number | The maximum number of results to return (default:10) |
MarketplaceStock
Retrieve available stock for the specified marketplace, organized by SKU.
If a user is logged in, stock information will also include how many of that item the user has purchased.
Returns: Stock info for items in the marketplace
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
marketplaceParams | Object | ✓ | Parameters of the marketplace |
NFT
contractAddress,
tokenId
})
Load full info for the specified NFT
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
contractAddress | string | ✓ | The contract address of the NFT |
tokenId | string | ✓ | The token ID of the NFT |
NFTContractStats
Return info about the specified NFT contract, including the cap, current total supply, and total minted and burned.
Returns: Information about the specified contract
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
contractAddress | string | ✓ | The contract address of the NFT |
PackOpenStatus
contractAddress,
tokenId
}) → Promise.<Object>
Return status of the specified pack opening
Returns: The status of the pack opening
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
contractAddress | string | ✓ | The NFT contract address of the opened pack |
tokenId | string | ✓ | The token ID of the opened pack |
PurchaseItem
marketplaceParams,
sku,
confirmationId, // optional
successUrl,
cancelUrl
})
Redirect to the wallet app to purchase the specified item from the specified marketplace
Use the PurchaseStatus method to check minting status after purchasing
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
marketplaceParams | Object | ✓ | Parameters of the marketplace |
sku | string | ✓ | The SKU of the item to claim |
confirmationId | string | Confirmation ID with which to reference this purchase. If not specified, a confirmation ID will be automatically generated. On success, the user will be returned to | |
successUrl | string | ✓ | The URL to redirect back to upon successful purchase |
cancelUrl | string | ✓ | The URL to redirect back to upon cancellation of purchase |
PurchaseListing
marketplaceParams, // optional
listingId,
confirmationId, // optional
successUrl,
cancelUrl
})
Redirect to the wallet app to purchase the specified listing
Use the ListingPurchaseStatus method to check minting status after purchasing
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
marketplaceParams | Object | Parameters of the marketplace | |
listingId | string | ✓ | The SKU of the item to claim |
confirmationId | string | Confirmation ID with which to reference this purchase. If not specified, a confirmation ID will be automatically generated. On success, the user will be returned to | |
successUrl | string | ✓ | The URL to redirect back to upon successful purchase |
cancelUrl | string | ✓ | The URL to redirect back to upon cancellation of purchase |
PurchaseStatus
marketplaceParams,
confirmationId
}) → Promise.<Object>
Return status of the specified marketplace purchase
Returns: The minting status of the purchaseed item(s)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
marketplaceParams | Object | ✓ | Parameters of the marketplace |
confirmationId | string | ✓ | The confirmation ID of the purchase |
RedeemableOfferStatus
tenantId, // optional
marketplaceParams, // optional
contractAddress,
tokenId,
offerId
}) → Promise.<Object>
Return status of the specified redeemable offer
Returns: The status of the offer redemption
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
tenantId | string | ID of the tenant for this NFT (not required if | |
marketplaceParams | Object | Parameters of the marketplace for this NFT (not required if | |
contractAddress | string | ✓ | The address of the NFT contract |
tokenId | string | ✓ | The token ID of the NFT |
offerId | string | ✓ | The ID of the offer |
RejectMarketplaceOffer
Requires login
Reject the specified offer
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
offerId | string | ✓ | The ID of the offer |
RemoveListing
Requires login
Remove the specified listing
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
listingId | string | ✓ | The ID of the listing to remove |
RemoveMarketplaceOffer
Requires login
Cancel the specified offer
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
offerId | string | ✓ | The ID of the offer |
RevokeVote
tenantId,
votingEventId,
sku
}) → Promise.<Object>
Requires login
Revoke a previously cast vote for the specified item in the specified voting event
Returns: Info about the voting event, including the current user's votes and the current total voting tally
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
tenantId | string | ✓ | The tenant ID of the marketplace in which the voting event is specified |
votingEventId | string | ✓ | The ID of the voting event |
sku | string | ✓ | The SKU of the item to vote for |
Sales
start, // optional
limit, // optional
sortBy, // optional
sortDesc, // optional
filter, // optional
editionFilters,
attributeFilters,
sellerAddress, // optional
contractAddress, // optional
tokenId, // optional
currency, // optional
marketplaceParams, // optional
collectionIndexes, // optional
startTime, // optional
endTime, // optional
lastNDays // optional
}) → Promise.<Object>
Retrieve sales matching the specified parameters.
Returns: Results of the query and pagination info
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
start | integer | PAGINATION: Index from which the results should start (default:0) | |
limit | integer | PAGINATION: Maximum number of results to return (default:50) | |
sortBy | string | Sort order. Options: "created") | |
sortDesc | boolean | Sort results descending instead of ascending (default:false) | |
filter | string | Filter results by item name.
| |
editionFilters | Array.<string> | ✓ | Filter results by item edition.
|
attributeFilters | Array.<Object> | ✓ | Filter results by item attributes. Each entry should include name and value (e.g. |
sellerAddress | string | Filter by a specific seller | |
contractAddress | string | Filter results by the address of the NFT contract | |
tokenId | string | Filter by token ID (if filtering by contract address) | |
currency | string | Filter results by purchase currency. Available options: | |
marketplaceParams | Object | Filter results by marketplace | |
collectionIndexes | Array.<integer> | If filtering by marketplace, filter by collection(s). The index refers to the index in the array | |
startTime | integer | Filter by results listed after the specified time (in milliseconds since epoch) | |
endTime | integer | Filter by results listed before the specified time (in milliseconds since epoch) | |
lastNDays | integer | Filter by results listed in the past N days |
SalesNames
Retrieve all valid names for filtering listing sales names. Full item names are required for filtering sales results by name.
Specify marketplace information to filter the results to only items offered in that marketplace.
Returns: A list of item names
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
marketplaceParams | Object | ✓ | Parameters of a marketplace to filter results by |
SalesStats
start, // optional
limit, // optional
sortBy, // optional
sortDesc, // optional
filter, // optional
editionFilters,
attributeFilters,
sellerAddress, // optional
contractAddress, // optional
tokenId, // optional
currency, // optional
marketplaceParams, // optional
collectionIndexes, // optional
startTime, // optional
endTime, // optional
lastNDays // optional
}) → Promise.<Object>
Retrieve stats for listings matching the specified parameters.
Returns: Statistics about sales. All prices in USD.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
start | integer | PAGINATION: Index from which the results should start (default:0) | |
limit | integer | PAGINATION: Maximum number of results to return (default:50) | |
sortBy | string | "created") | |
sortDesc | boolean | Sort results descending instead of ascending (default:false) | |
filter | string | Filter results by item name.
| |
editionFilters | Array.<string> | ✓ | Filter results by item edition.
|
attributeFilters | Array.<Object> | ✓ | Filter results by item attributes. Each entry should include name and value (e.g. |
sellerAddress | string | Filter by a specific seller | |
contractAddress | string | Filter results by the address of the NFT contract | |
tokenId | string | Filter by token ID (if filtering by contract address) | |
currency | string | Filter results by purchase currency. Available options: | |
marketplaceParams | Object | Filter results by marketplace | |
collectionIndexes | Array.<integer> | If filtering by marketplace, filter by collection(s). The index refers to the index in the array | |
startTime | integer | Filter by results listed after the specified time (in milliseconds since epoch) | |
endTime | integer | Filter by results listed before the specified time (in milliseconds since epoch) | |
lastNDays | integer | Filter by results listed in the past N days |
TenantConfiguration
tenantId, // optional
contractAddress // optional
}) → Promise.<Object>
Retrieve configuration information about the specified tenant, or the tenant associated with the specified contract.
This information includes the royalty rate the tenant receives for secondary sales.
Returns: The tenant configuration
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
tenantId | string | The ID of the tenant for which to retrieve configuration | |
contractAddress | string | The ID of an nft contract for which to retrieve configuration |
TenantCSS
Retrieve custom CSS for the specified tenant
Returns: The CSS of the tenant
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
tenantSlug | Object | ✓ |
TransferNFT
contractAddress,
tokenId,
targetAddress
})
Requires login
Transfer the specified NFT owned by the current user to the specified address
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
contractAddress | string | ✓ | The contract address of the NFT |
tokenId | string | ✓ | The token ID of the NFT |
targetAddress | string | ✓ | The address to which to transfer the NFT |
Transfers
start, // optional
limit, // optional
sortBy, // optional
sortDesc, // optional
filter, // optional
editionFilters,
attributeFilters,
sellerAddress, // optional
contractAddress, // optional
tokenId, // optional
currency, // optional
marketplaceParams, // optional
collectionIndexes, // optional
startTime, // optional
endTime, // optional
lastNDays // optional
}) → Promise.<Object>
Retrieve sales and transfers matching the specified parameters.
Returns: Results of the query and pagination info
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
start | integer | PAGINATION: Index from which the results should start (default:0) | |
limit | integer | PAGINATION: Maximum number of results to return (default:50) | |
sortBy | string | Sort order. Options: "created") | |
sortDesc | boolean | Sort results descending instead of ascending (default:false) | |
filter | string | Filter results by item name.
| |
editionFilters | Array.<string> | ✓ | Filter results by item edition.
|
attributeFilters | Array.<Object> | ✓ | Filter results by item attributes. Each entry should include name and value (e.g. |
sellerAddress | string | Filter by a specific seller | |
contractAddress | string | Filter results by the address of the NFT contract | |
tokenId | string | Filter by token ID (if filtering by contract address) | |
currency | string | Filter results by purchase currency. Available options: | |
marketplaceParams | Object | Filter results by marketplace | |
collectionIndexes | Array.<integer> | If filtering by marketplace, filter by collection(s). The index refers to the index in the array | |
startTime | integer | Filter by results listed after the specified time (in milliseconds since epoch) | |
endTime | integer | Filter by results listed before the specified time (in milliseconds since epoch) | |
lastNDays | integer | Filter by results listed in the past N days |
UserAddress
Requires login
Retrieve the address of the current user.
Returns: The address of the current user
UserInfo
Requires login
Retrieve information about the user, including the address, wallet type, and (for custodial users) email address.
Returns: User info
UserItemAttributes
userAddress, // optional
displayName, // optional
marketplaceParams // optional
}) → Promise.<Array.<String>>
Retrieve all valid attribute names and values. Full attribute names and values are required for filtering results by attribute.
Specify marketplace information to filter the results to only items offered in that marketplace.
Returns: A list of item names
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
userAddress | string | Address of a user | |
displayName | string | Name of an item | |
marketplaceParams | Object | Parameters of a marketplace to filter results by |
UserItemEditionNames
Retrieve all valid edition names for filtering the specified item. Full edition names are required for filtering results by edition.
Specify marketplace information to filter the results to only items offered in that marketplace.
Returns: A list of item editions
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ✓ | Name of an item |
UserItemNames
userAddress, // optional
marketplaceParams // optional
}) → Promise.<Array.<String>>
Retrieve all valid names for filtering user items. Full item names are required for filtering results by name.
Specify marketplace information to filter the results to only items offered in that marketplace.
Returns: A list of item names
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
userAddress | string | Address of a user | |
marketplaceParams | Object | Parameters of a marketplace to filter results by |
UserItems
includeFullMetadata, // optional
userAddress, // optional
start, // optional
limit, // optional
sortBy, // optional
sortDesc, // optional
filter, // optional
contractAddress, // optional
tokenId, // optional
marketplaceParams, // optional
collectionIndexes // optional
}) → Promise.<Object>
Requires login
Retrieve items owned by the specified or current user matching the specified parameters.
Returns: Results of the query and pagination info
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
includeFullMetadata | boolean | If true, will include full metadata for each item. Ignored if not logged in. (default:false) | |
userAddress | string | Address of a user. If not specified, will return results for current user | |
start | integer | PAGINATION: Index from which the results should start (default:0) | |
limit | integer | PAGINATION: Maximum number of results to return (default:50) | |
sortBy | string | Sort order. Options: "default") | |
sortDesc | boolean | Sort results descending instead of ascending (default:false) | |
filter | string | Filter results by item name. | |
contractAddress | string | Filter results by the address of the NFT contract | |
tokenId | string | Filter by token ID (if filtering by contract address) | |
marketplaceParams | Object | Filter results by marketplace | |
collectionIndexes | Array.<integer> | If filtering by marketplace, filter by collection(s). The index refers to the index in the array |
UserListings
userAddress, // optional
sortBy, // optional
sortDesc, // optional
marketplaceParams, // optional
contractAddress, // optional
tokenId // optional
}) → Promise.<Array.<Object>>
Return all listings for the current user. Not paginated.
Returns: List of current user's listings
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
userAddress | string | Address of a user. If not specified, will return results for current user | |
sortBy | string | Sort order. Options: "created") | |
sortDesc | boolean | Sort results descending instead of ascending (default:false) | |
marketplaceParams | Object | Filter results by marketplace | |
contractAddress | string | Filter results by the address of the NFT contract | |
tokenId | string | Filter by token ID (if filtering by contract address) |
UserSales
userAddress, // optional
sortBy, // optional
sortDesc, // optional
marketplaceParams, // optional
contractAddress, // optional
tokenId, // optional
startTime, // optional
endTime, // optional
lastNDays // optional
}) → Promise.<Array.<Object>>
Return all sales for the current user. Not paginated.
Returns: List of current user's sales
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
userAddress | string | Address of a user. If not specified, will return results for current user | |
sortBy | string | Sort order. Options: "created") | |
sortDesc | boolean | Sort results descending instead of ascending (default:false) | |
marketplaceParams | Object | Filter results by marketplace | |
contractAddress | string | Filter results by the address of the NFT contract | |
tokenId | string | Filter by token ID (if filtering by contract address) | |
startTime | integer | Filter by results listed after the specified time (in milliseconds since epoch) | |
endTime | integer | Filter by results listed before the specified time (in milliseconds since epoch) | |
lastNDays | integer | Filter by results listed in the past N days |
UserTransfers
userAddress, // optional
sortBy, // optional
sortDesc, // optional
marketplaceParams, // optional
contractAddress, // optional
tokenId, // optional
startTime, // optional
endTime, // optional
lastNDays // optional
}) → Promise.<Array.<Object>>
Return all transfers and sales for the current user. Not paginated.
Returns: List of current user's sales
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
userAddress | string | Address of a user. If not specified, will return results for current user | |
sortBy | string | Sort order. Options: "created") | |
sortDesc | boolean | Sort results descending instead of ascending (default:false) | |
marketplaceParams | Object | Filter results by marketplace | |
contractAddress | string | Filter results by the address of the NFT contract | |
tokenId | string | Filter by token ID (if filtering by contract address) | |
startTime | integer | Filter by results listed after the specified time (in milliseconds since epoch) | |
endTime | integer | Filter by results listed before the specified time (in milliseconds since epoch) | |
lastNDays | integer | Filter by results listed in the past N days |
UserWalletBalance
Requires login
Retrieve the fund balances for the current user
Returns: Returns balances for the user. All values are in USD. - totalWalletBalance - Total balance of the users sales and wallet balance purchases - availableWalletBalance - Balance available for purchasing items - pendingWalletBalance - Balance unavailable for purchasing items - withdrawableWalletBalance - Amount that is available for withdrawal - usedBalance - (Only included if user has set up Solana link with the Phantom wallet) Available USDC balance of the user's Solana wallet
VoteStatus
tenantId,
votingEventId
}) → Promise.<Object>
Retrieve the current status of the specified voting event
Returns: Info about the voting event, including the current user's votes and the current total voting tally
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
tenantId | string | ✓ | The tenant ID of the marketplace in which the voting event is specified |
votingEventId | string | ✓ | The ID of the voting event |