Skip to main content

Client Methods

Methods

AcceptMarketplaceOffer

AcceptMarketplaceOffer({ offerId })

Requires login

Accept the specified offer

Parameters

NameTypeRequiredDescription
offerIdstring

The ID of the offer

AvailableMarketplaces

AvailableMarketplaces({
  organizeById, // optional
  forceReload // optional
}) → Promise.<Object>

Retrieve info about all available marketplaces

Returns: Info about available marketplaces

Parameters

NameTypeRequiredDescription
organizeByIdboolean

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.

forceReloadboolean

If specified, a new request will be made to check the currently available marketplaces instead of returning cached info

(default: false)

CastVote

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

NameTypeRequiredDescription
tenantIdstring

The tenant ID of the marketplace in which the voting event is specified

votingEventIdstring

The ID of the voting event

skustring

The SKU of the item to vote for

ClaimGift

ClaimGift({ code }) → Promise.<Object>

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

NameTypeRequiredDescription
codestring

The OTP gift code to claim

ClaimItem

ClaimItem({
  marketplaceParams,
  sku,
  email // optional
})

Claim the specified item from the specified marketplace

Use the ClaimStatus method to check minting status after claiming

Parameters

NameTypeRequiredDescription
marketplaceParamsObject

Parameters of the marketplace

skustring

The SKU of the item to claim

emailstring

Email address of the user. If specified, this will bind the user to the tenant of the specified marketplace

ClaimStatus

ClaimStatus({
  marketplaceParams,
  sku
}) → Promise.<Object>

Return status of the specified item claim

Returns: The minting status of the claim

Parameters

NameTypeRequiredDescription
marketplaceParamsObject

Parameters of the marketplace

skustring

The SKU of the item claimed

CollectionRedemptionStatus

CollectionRedemptionStatus({
  marketplaceParams,
  confirmationId
}) → Promise.<Object>

Return status of the specified collection redemption

Returns: The status of the collection redemption

Parameters

NameTypeRequiredDescription
marketplaceParamsObject

Parameters of the marketplace

confirmationIdstring

The confirmation ID of the redemption

CreateListing

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

NameTypeRequiredDescription
contractAddressstring

The NFT contract address of the item

tokenIdstring

The token ID of the item

pricenumber

The price of the listing, in USD

listingIdstring

(When editing a listing) The ID of the existing listing

CreateMarketplaceOffer

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

NameTypeRequiredDescription
contractAddressstring

The contract address of the NFT

tokenIdstring

The token ID of the NFT

offerIdstring

IF modifying an existing offer, the ID of the offer

pricenumber

The amount to offer

expiresAtnumber

The time (in epoch ms) the offer will expire

EntitlementClaimStatus

EntitlementClaimStatus({
  marketplaceParams,
  purchaseId
}) → Promise.<Object>

Return status of the specified entitlement claim

Returns: The mint status of the entitlement claim

Parameters

NameTypeRequiredDescription
marketplaceParamsObject

Parameters of the marketplace

purchaseIdstring

The purchase ID of the entitlement, for confirmation of status

ExchangeRate

ExchangeRate({ currency })

Retrieve the current exchange rate for the specified currency to USD

Parameters

NameTypeRequiredDescription
currencystring

The currency for which to retrieve the USD exchange rate

GiftClaimStatus

GiftClaimStatus({
  marketplaceParams,
  confirmationId, // optional
  giftId // optional
}) → Promise.<Object>

Return status of the specified gift claim

Returns: The transfer status of the gift claim

Parameters

NameTypeRequiredDescription
marketplaceParamsObject

Parameters of the marketplace

confirmationIdstring

The confirmation ID of the gift purchase

giftIdstring

The ID of the claimed gift

Leaderboard

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

NameTypeRequiredDescription
marketplaceParamsObject

Filter results by marketplace

userAddressstring

Retrieve the ranking for a specific user

startinteger

PAGINATION: Index from which the results should start

(default: 0)
limitinteger

PAGINATION: Maximum number of results to return

(default: 50)

Listing

Listing({ listingId }) // optional → Promise.<Object>

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

NameTypeRequiredDescription
listingIdstring

The ID of the listing

ListingAttributes

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

NameTypeRequiredDescription
marketplaceParamsObject

Parameters of a marketplace to filter results by

displayNamestring

Display name of the item from which to request attributes

ListingEditionNames

ListingEditionNames({ displayName }) → Promise.<Array.<String>>

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

NameTypeRequiredDescription
displayNamestring

Display name of the item from which to request edition names

ListingNames

ListingNames({ marketplaceParams }) → Promise.<Array.<String>>

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

NameTypeRequiredDescription
marketplaceParamsObject

Parameters of a marketplace to filter results by

ListingPurchaseStatus

ListingPurchaseStatus({
  listingId,
  confirmationId
}) → Promise.<Object>

Return status of the specified listing purchase

Returns: The status of the purchase

Parameters

NameTypeRequiredDescription
listingIdstring

The ID of the listing

confirmationIdstring

The confirmation ID of the purchase

Listings

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

NameTypeRequiredDescription
startinteger

PAGINATION: Index from which the results should start

(default: 0)
limitinteger

PAGINATION: Maximum number of results to return

(default: 50)
sortBystring

Sort order. Options: created, info/token_id, info/ordinal, price, nft/display_name

(default: "created")
sortDescboolean

Sort results descending instead of ascending

(default: false)
filterstring

Filter results by item name.

NOTE: This string must be an exact match on the item name. You can retrieve all available item names from the ListingNames method.

editionFiltersArray.<string>

Filter results by item edition.

NOTE: This string must be an exact match on the edition name. You can retrieve all available item edition names from the ListingEditionNames method.

attributeFiltersArray.<Object>

Filter results by item attributes. Each entry should include name and value (e.g. [{name: "attribute-name", value: "attribute-value"}])

NOTE: These filters must be an exact match on the attribute name and value. You can retrieve all available item attributes from the ListingAttributes method.

priceRangeObject

Filter min and/or max price (e.g. {min: 1} {max: 2} `{min: 1.50, max: 10.50})

sellerAddressstring

Filter by a specific seller

contractAddressstring

Filter results by the address of the NFT contract

tokenIdstring

Filter by token ID (if filtering by contract address)

currencystring

Filter results by purchase currency. Available options: usdc

marketplaceParamsObject

Filter results by marketplace

collectionIndexesArray.<integer>

If filtering by marketplace, filter by collection(s). The index refers to the index in the array marketplace.collections

startTimeinteger

Filter by results listed after the specified time (in milliseconds since epoch)

endTimeinteger

Filter by results listed before the specified time (in milliseconds since epoch)

lastNDaysinteger

Filter by results listed in the past N days

includeCheckoutLockedboolean

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

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

NameTypeRequiredDescription
startinteger

PAGINATION: Index from which the results should start

(default: 0)
limitinteger

PAGINATION: Maximum number of results to return

(default: 50)
sortBystring

Sort order. Options: created, info/token_id, info/ordinal, price, nft/display_name

(default: "created")
sortDescboolean

Sort results descending instead of ascending

(default: false)
filterstring

Filter results by item name.

NOTE: This string must be an exact match on the item name. You can retrieve all available item names from the ListingNames method.

editionFiltersArray.<string>

Filter results by item edition.

NOTE: This string must be an exact match on the edition name. You can retrieve all available item edition names from the ListingEditionNames method.

attributeFiltersArray.<Object>

Filter results by item attributes. Each entry should include name and value (e.g. [{name: "attribute-name", value: "attribute-value"}])

NOTE: These filters must be an exact match on the attribute name and value. You can retrieve all available item attributes from the ListingAttributes method.

priceRangeObject

Filter min and/or max price (e.g. {min: 1} {max: 2} `{min: 1.50, max: 10.50})

sellerAddressstring

Filter by a specific seller

contractAddressstring

Filter results by the address of the NFT contract

tokenIdstring

Filter by token ID (if filtering by contract address)

currencystring

Filter results by purchase currency. Available options: usdc

marketplaceParamsObject

Filter results by marketplace

collectionIndexesArray.<integer>

If filtering by marketplace, filter by collection(s). The index refers to the index in the array marketplace.collections

startTimeinteger

Filter by results listed after the specified time (in milliseconds since epoch)

endTimeinteger

Filter by results listed before the specified time (in milliseconds since epoch)

lastNDaysinteger

Filter by results listed in the past N days

ListingStatus

ListingStatus({ listingId }) // optional → Promise.<Object>

Retrieve the status of the specified listing

Returns: The status of the listing

Parameters

NameTypeRequiredDescription
listingIdstring

The ID of the listing

Marketplace

Marketplace({ marketplaceParams }) → Promise.<Object>

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

NameTypeRequiredDescription
marketplaceParamsObject

Parameters of the marketplace

MarketplaceCSS

MarketplaceCSS({ marketplaceParams }) → Promise.<string>

Retrieve custom CSS for the specified marketplace

Returns: The CSS of the marketplace

Parameters

NameTypeRequiredDescription
marketplaceParamsObject

Parameters of the marketplace

MarketplaceInfo

MarketplaceInfo({ marketplaceParams }) → Promise.<Object>

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

NameTypeRequiredDescription
marketplaceParamsObject

Parameters of the marketplace

MarketplaceOffers

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

NameTypeRequiredDescription
contractAddressstring

The address of an NFT contract

tokenIdstring

The token ID of an NFT

buyerAddressstring

The address of the offerrer

sellerAddressstring

The address of the offerree

statusesArray.<String>

Status to filter results by. Allowed values: "ACTIVE", "ACCEPTED", "CANCELLED", "DECLINED", "INVALID"

startnumber

The index to start from

(default: 0)
limitnumber

The maximum number of results to return

(default: 10)

MarketplaceStock

MarketplaceStock({ marketplaceParams }) → Promise.<Object>

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

NameTypeRequiredDescription
marketplaceParamsObject

Parameters of the marketplace

NFT

NFT({
  contractAddress,
  tokenId
})

Load full info for the specified NFT

Parameters

NameTypeRequiredDescription
contractAddressstring

The contract address of the NFT

tokenIdstring

The token ID of the NFT

NFTContractStats

NFTContractStats({ contractAddress }) → Promise.<Object>

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

NameTypeRequiredDescription
contractAddressstring

The contract address of the NFT

PackOpenStatus

PackOpenStatus({
  contractAddress,
  tokenId
}) → Promise.<Object>

Return status of the specified pack opening

Returns: The status of the pack opening

Parameters

NameTypeRequiredDescription
contractAddressstring

The NFT contract address of the opened pack

tokenIdstring

The token ID of the opened pack

PurchaseItem

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

NameTypeRequiredDescription
marketplaceParamsObject

Parameters of the marketplace

skustring

The SKU of the item to claim

confirmationIdstring

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 with the confirmationId as a URL parameter.

successUrlstring

The URL to redirect back to upon successful purchase

cancelUrlstring

The URL to redirect back to upon cancellation of purchase

PurchaseListing

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

NameTypeRequiredDescription
marketplaceParamsObject

Parameters of the marketplace

listingIdstring

The SKU of the item to claim

confirmationIdstring

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 with the confirmationId as a URL parameter.

successUrlstring

The URL to redirect back to upon successful purchase

cancelUrlstring

The URL to redirect back to upon cancellation of purchase

PurchaseStatus

PurchaseStatus({
  marketplaceParams,
  confirmationId
}) → Promise.<Object>

Return status of the specified marketplace purchase

Returns: The minting status of the purchaseed item(s)

Parameters

NameTypeRequiredDescription
marketplaceParamsObject

Parameters of the marketplace

confirmationIdstring

The confirmation ID of the purchase

RedeemableOfferStatus

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

NameTypeRequiredDescription
tenantIdstring

ID of the tenant for this NFT (not required if marketplaceParams is specified)

marketplaceParamsObject

Parameters of the marketplace for this NFT (not required if tenantId is specified)

contractAddressstring

The address of the NFT contract

tokenIdstring

The token ID of the NFT

offerIdstring

The ID of the offer

RejectMarketplaceOffer

RejectMarketplaceOffer({ offerId })

Requires login

Reject the specified offer

Parameters

NameTypeRequiredDescription
offerIdstring

The ID of the offer

RemoveListing

RemoveListing({ listingId })

Requires login

Remove the specified listing

Parameters

NameTypeRequiredDescription
listingIdstring

The ID of the listing to remove

RemoveMarketplaceOffer

RemoveMarketplaceOffer({ offerId })

Requires login

Cancel the specified offer

Parameters

NameTypeRequiredDescription
offerIdstring

The ID of the offer

RevokeVote

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

NameTypeRequiredDescription
tenantIdstring

The tenant ID of the marketplace in which the voting event is specified

votingEventIdstring

The ID of the voting event

skustring

The SKU of the item to vote for

Sales

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

NameTypeRequiredDescription
startinteger

PAGINATION: Index from which the results should start

(default: 0)
limitinteger

PAGINATION: Maximum number of results to return

(default: 50)
sortBystring

Sort order. Options: created, price, name

(default: "created")
sortDescboolean

Sort results descending instead of ascending

(default: false)
filterstring

Filter results by item name.

NOTE: This string must be an exact match on the item name. You can retrieve all available item names from the ListingNames method.

editionFiltersArray.<string>

Filter results by item edition.

NOTE: This string must be an exact match on the edition name. You can retrieve all available item edition names from the ListingEditionNames method.

attributeFiltersArray.<Object>

Filter results by item attributes. Each entry should include name and value (e.g. [{name: "attribute-name", value: "attribute-value"}])

NOTE: These filters must be an exact match on the attribute name and value. You can retrieve all available item attributes from the ListingAttributes method.

sellerAddressstring

Filter by a specific seller

contractAddressstring

Filter results by the address of the NFT contract

tokenIdstring

Filter by token ID (if filtering by contract address)

currencystring

Filter results by purchase currency. Available options: usdc

marketplaceParamsObject

Filter results by marketplace

collectionIndexesArray.<integer>

If filtering by marketplace, filter by collection(s). The index refers to the index in the array marketplace.collections

startTimeinteger

Filter by results listed after the specified time (in milliseconds since epoch)

endTimeinteger

Filter by results listed before the specified time (in milliseconds since epoch)

lastNDaysinteger

Filter by results listed in the past N days

SalesNames

SalesNames({ marketplaceParams }) → Promise.<Array.<String>>

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

NameTypeRequiredDescription
marketplaceParamsObject

Parameters of a marketplace to filter results by

SalesStats

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

NameTypeRequiredDescription
startinteger

PAGINATION: Index from which the results should start

(default: 0)
limitinteger

PAGINATION: Maximum number of results to return

(default: 50)
sortBystring
(default: "created")
sortDescboolean

Sort results descending instead of ascending

(default: false)
filterstring

Filter results by item name.

NOTE: This string must be an exact match on the item name. You can retrieve all available item names from the ListingNames method.

editionFiltersArray.<string>

Filter results by item edition.

NOTE: This string must be an exact match on the edition name. You can retrieve all available item edition names from the ListingEditionNames method.

attributeFiltersArray.<Object>

Filter results by item attributes. Each entry should include name and value (e.g. [{name: "attribute-name", value: "attribute-value"}])

NOTE: These filters must be an exact match on the attribute name and value. You can retrieve all available item attributes from the ListingAttributes method.

sellerAddressstring

Filter by a specific seller

contractAddressstring

Filter results by the address of the NFT contract

tokenIdstring

Filter by token ID (if filtering by contract address)

currencystring

Filter results by purchase currency. Available options: usdc

marketplaceParamsObject

Filter results by marketplace

collectionIndexesArray.<integer>

If filtering by marketplace, filter by collection(s). The index refers to the index in the array marketplace.collections

startTimeinteger

Filter by results listed after the specified time (in milliseconds since epoch)

endTimeinteger

Filter by results listed before the specified time (in milliseconds since epoch)

lastNDaysinteger

Filter by results listed in the past N days

TenantConfiguration

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

NameTypeRequiredDescription
tenantIdstring

The ID of the tenant for which to retrieve configuration

contractAddressstring

The ID of an nft contract for which to retrieve configuration

TenantCSS

TenantCSS({ tenantSlug }) → Promise.<string>

Retrieve custom CSS for the specified tenant

Returns: The CSS of the tenant

Parameters

NameTypeRequiredDescription
tenantSlugObject

TransferNFT

TransferNFT({
  contractAddress,
  tokenId,
  targetAddress
})

Requires login

Transfer the specified NFT owned by the current user to the specified address

Parameters

NameTypeRequiredDescription
contractAddressstring

The contract address of the NFT

tokenIdstring

The token ID of the NFT

targetAddressstring

The address to which to transfer the NFT

Transfers

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

NameTypeRequiredDescription
startinteger

PAGINATION: Index from which the results should start

(default: 0)
limitinteger

PAGINATION: Maximum number of results to return

(default: 50)
sortBystring

Sort order. Options: created, price, name

(default: "created")
sortDescboolean

Sort results descending instead of ascending

(default: false)
filterstring

Filter results by item name.

NOTE: This string must be an exact match on the item name. You can retrieve all available item names from the ListingNames method.

editionFiltersArray.<string>

Filter results by item edition.

NOTE: This string must be an exact match on the edition name. You can retrieve all available item edition names from the ListingEditionNames method.

attributeFiltersArray.<Object>

Filter results by item attributes. Each entry should include name and value (e.g. [{name: "attribute-name", value: "attribute-value"}])

NOTE: These filters must be an exact match on the attribute name and value. You can retrieve all available item attributes from the ListingAttributes method.

sellerAddressstring

Filter by a specific seller

contractAddressstring

Filter results by the address of the NFT contract

tokenIdstring

Filter by token ID (if filtering by contract address)

currencystring

Filter results by purchase currency. Available options: usdc

marketplaceParamsObject

Filter results by marketplace

collectionIndexesArray.<integer>

If filtering by marketplace, filter by collection(s). The index refers to the index in the array marketplace.collections

startTimeinteger

Filter by results listed after the specified time (in milliseconds since epoch)

endTimeinteger

Filter by results listed before the specified time (in milliseconds since epoch)

lastNDaysinteger

Filter by results listed in the past N days

UserAddress

UserAddress() → string

Requires login

Retrieve the address of the current user.

Returns: The address of the current user

UserInfo

UserInfo() → Object

Requires login

Retrieve information about the user, including the address, wallet type, and (for custodial users) email address.

Returns: User info

UserItemAttributes

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

NameTypeRequiredDescription
userAddressstring

Address of a user

displayNamestring

Name of an item

marketplaceParamsObject

Parameters of a marketplace to filter results by

UserItemEditionNames

UserItemEditionNames({ displayName }) → Promise.<Array.<String>>

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

NameTypeRequiredDescription
displayNamestring

Name of an item

UserItemNames

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

NameTypeRequiredDescription
userAddressstring

Address of a user

marketplaceParamsObject

Parameters of a marketplace to filter results by

UserItems

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

NameTypeRequiredDescription
includeFullMetadataboolean

If true, will include full metadata for each item. Ignored if not logged in.

(default: false)
userAddressstring

Address of a user. If not specified, will return results for current user

startinteger

PAGINATION: Index from which the results should start

(default: 0)
limitinteger

PAGINATION: Maximum number of results to return

(default: 50)
sortBystring

Sort order. Options: default, meta/display_name

(default: "default")
sortDescboolean

Sort results descending instead of ascending

(default: false)
filterstring

Filter results by item name.

contractAddressstring

Filter results by the address of the NFT contract

tokenIdstring

Filter by token ID (if filtering by contract address)

marketplaceParamsObject

Filter results by marketplace

collectionIndexesArray.<integer>

If filtering by marketplace, filter by collection(s). The index refers to the index in the array marketplace.collections

UserListings

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

NameTypeRequiredDescription
userAddressstring

Address of a user. If not specified, will return results for current user

sortBystring

Sort order. Options: created, info/token_id, info/ordinal, price, nft/display_name

(default: "created")
sortDescboolean

Sort results descending instead of ascending

(default: false)
marketplaceParamsObject

Filter results by marketplace

contractAddressstring

Filter results by the address of the NFT contract

tokenIdstring

Filter by token ID (if filtering by contract address)

UserSales

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

NameTypeRequiredDescription
userAddressstring

Address of a user. If not specified, will return results for current user

sortBystring

Sort order. Options: created, price, name

(default: "created")
sortDescboolean

Sort results descending instead of ascending

(default: false)
marketplaceParamsObject

Filter results by marketplace

contractAddressstring

Filter results by the address of the NFT contract

tokenIdstring

Filter by token ID (if filtering by contract address)

startTimeinteger

Filter by results listed after the specified time (in milliseconds since epoch)

endTimeinteger

Filter by results listed before the specified time (in milliseconds since epoch)

lastNDaysinteger

Filter by results listed in the past N days

UserTransfers

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

NameTypeRequiredDescription
userAddressstring

Address of a user. If not specified, will return results for current user

sortBystring

Sort order. Options: created, price, name

(default: "created")
sortDescboolean

Sort results descending instead of ascending

(default: false)
marketplaceParamsObject

Filter results by marketplace

contractAddressstring

Filter results by the address of the NFT contract

tokenIdstring

Filter by token ID (if filtering by contract address)

startTimeinteger

Filter by results listed after the specified time (in milliseconds since epoch)

endTimeinteger

Filter by results listed before the specified time (in milliseconds since epoch)

lastNDaysinteger

Filter by results listed in the past N days

UserWalletBalance

UserWalletBalance() → Promise.<Object>

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

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

NameTypeRequiredDescription
tenantIdstring

The tenant ID of the marketplace in which the voting event is specified

votingEventIdstring

The ID of the voting event