Skip to main content

Methods

Methods for accessing information from the wallet and performing actions

ClearMarketplaceFilters

ClearMarketplaceFilters()

Clear all marketplace filters

EditListing

EditListing(
  listingId, // optional
  contractAddress, // optional
  tokenId, // optional
  price
)

Requires login

Prompts user for consent

Modify the specify listing. Provide either the listing's ID, or the contract address and token ID of the listed item.

Parameters

NameTypeRequiredDescription
listingIdstring

The listing ID of the listing to change

contractAddressstring

The address of the NFT contract

tokenIdstring

The token ID of the item

pricenumber

Price for the item, in USD. The maximum listing price is $10,000

EventMetadata

EventMetadata({
  tenantSlug, // optional
  eventSlug, // optional
  eventHash // optional
}) → Promise.<Object>

Retrieve the full metadata for the specified event object (starting from /public/asset_metadata)

Returns: The full metadata of the event

Parameters

NameTypeRequiredDescription
tenantSlugstring

Specify the URL slug of the event's tenant. Required if specifying event slug

eventSlugstring

Specify the URL slug of the event

eventHashstring

Specify a specific version of a the event. Not necessary if eventSlug is specified

Item

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

Requires login

Return info about a specific item in the user's wallet

Returns: Information about the requested item. Returns undefined if the item was not found.

Parameters

NameTypeRequiredDescription
contractAddressstring

The address of the NFT contract

tokenIdstring

The token ID of the item

ItemNames

ItemNames({
  tenantSlug, // optional
  marketplaceSlug // optional
}) → Promise.<Array.<String>>

Alias of ListingNames.

Retrieve names of all valid items. 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
tenantSlugstring

Specify the URL slug of a marketplace's tenant. Required if specifying marketplace slug

marketplaceSlugstring

Specify the URL slug of a marketplace

Items

Items({
  tenantSlug, // optional
  marketplaceSlug, // optional
  sortBy, // optional
  sortDesc, // optional
  filter, // optional
  contractAddress // optional
}) → Promise.<Array.<Object>>

Requires login

Return info about items in the user's wallet

Note - Certain information (for example additional media and attributes) is not included in item results for efficiency purposes. Use client.Item to retrieve full NFT info

Returns: Information about the items in the user's wallet.

Parameters

NameTypeRequiredDescription
tenantSlugstring

Specify the URL slug of the marketplace's tenant. Required if specifying marketplace slug

marketplaceSlugstring

Specify the URL slug of the marketplace to filter items by marketplace

sortBystring

Sort order for the results - either default or meta/display_name

(default: default)
sortDescboolean

Sort in descending order

(default: false)
filterstring

Filter results by item name

contractAddressstring

Filter results by contract address

Listing

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

Return info about a specific item in the user's wallet

Returns: Information about the requested listing. Returns undefined if the item was not found.

Parameters

NameTypeRequiredDescription
listingIdstring

The ID of the listing to retrieve

ListingAttributes

ListingAttributes({
  tenantSlug, // optional
  marketplaceSlug, // optional
  displayName // optional
}) → Promise.<Array.<String>>

Retrieve names of all valid attributes. 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 item attributes

Parameters

NameTypeRequiredDescription
tenantSlugstring

Specify the URL slug of a marketplace's tenant. Required if specifying marketplace slug

marketplaceSlugstring

Specify the URL slug of a marketplace

displayNamestring

Display name of the item from which to request edition names

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({
  tenantSlug, // optional
  marketplaceSlug // optional
}) → Promise.<Array.<String>>

Retrieve names of all valid items. 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
tenantSlugstring

Specify the URL slug of a marketplace's tenant. Required if specifying marketplace slug

marketplaceSlugstring

Specify the URL slug of a marketplace

ListingPayout

ListingPayout({
  contractAddress,
  tokenId,
  listingPrice
}) → Promise.<Object>
  • Requires login

Retrieve the exact listing payout breakdown for the specified owned NFT at the specified price

Returns: The breakdown of the payout for the listing, including the royalty rate, total royalty fee, and ultimate payout to the user

Parameters

NameTypeRequiredDescription
contractAddressstring

The contract address of the NFT

tokenIdstring

The token ID of the NFT

listingPricenumber

The desired listing price of the NFT

ListingPurchase

ListingPurchase({
  listingId,
  purchaseProvider
}) → Promise.<string>

Requires login

Note: Will either prompt user for consent (wallet balance, linked solana wallet) or open the third party payment flow in a new tab (stripe, coinbase)

Initiate purchase flow for the specified listing

Returns: The confirmation ID of the purchase. This ID can be used to check purchase and minting status via the PurchaseStatus method.

Parameters

NameTypeRequiredDescription
listingIdstring

The ID of the listing to purchase

purchaseProviderstring

The payment flow to use for the purchase. Available providers:

  • - stripe - Credit card payment flow with stripe
  • - coinbase - Crypto payment flow with Coinbase
  • - wallet-balance - Purchase with the user's available wallet balance (Requires consent prompt).
  • - linked-wallet - Purchase item with USDC on Solana using the Phantom wallet (Requires popup prompt)

Note: Use the UserBalances method to check the user's available balance. (default: stripe)

Listings

Listings({
  start, // optional
  limit, // optional
  sortBy, // optional
  sortDesc, // optional
  filter, // optional
  editionFilter, // optional
  attributeFilters,
  tenantSlug, // optional
  marketplaceSlug, // optional
  contractAddress, // optional
  tokenId, // optional
  lastNDays // optional
}) → Promise.<Object>

Return available listings

Returns: Available listings and pagination information

Parameters

NameTypeRequiredDescription
startnumber

Index at which to start listing

(default: 0)
limitnumber

Maximum number of results to return

(default: 50)
sortBystring

Sort order for the results. Available sort options:

  • - created
  • - info/ordinal
  • - price
  • - nft/display_name
(default: created)
sortDescboolean

Sort in descending order

(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.

editionFilterstring

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.

tenantSlugstring

Specify the URL slug of a marketplace's tenant. Required if specifying marketplace slug

marketplaceSlugstring

Filter listings by marketplace

contractAddressstring

Filter results by contract address

tokenIdstring

Filter by specific token (along with contract address)

lastNDaysnumber

Limit results to only include items listed in the past N days

ListingStats

ListingStats({
  tenantSlug, // optional
  marketplaceSlug, // optional
  contractAddress, // optional
  tokenId, // optional
  lastNDays // optional
}) → Promise.<Object>

Return stats about currently active listings

Returns: Stats for currently active listings matching the specified filters. All monetary values are in USD. - count - Total number of listed items - avg - Average listing price - max - Maximum listing price - min - Minimum listing price - volume - Total volume, in USD, of all listings

Parameters

NameTypeRequiredDescription
tenantSlugstring

Specify the URL slug of a marketplace's tenant. Required if specifying marketplace slug

marketplaceSlugstring

Filter stats by marketplace

contractAddressstring

Filter results by contract address

tokenIdstring

Filter results by individual token (along with contract address)

lastNDaysnumber

Limit results to only include items listed in the past N days

ListItem

ListItem(
  contractAddress,
  tokenId,
  price
) → Promise.<string>

Requires login

Prompts user for consent

List the specified item for sale. The item must be owned by the current user, and must not have an active hold. (nft.details.TokenHold)

Returns: The listing ID of the item

Parameters

NameTypeRequiredDescription
contractAddressstring

The address of the NFT contract

tokenIdstring

The token ID of the item

pricenumber

Price for the item, in USD. The maximum listing price is $10,000

MarketplaceItem

MarketplaceItem({
  tenantSlug,
  marketplaceSlug,
  sku
})

Retrieve the specified item from the specified marketplace

Parameters

NameTypeRequiredDescription
tenantSlugstring

Specify the URL slug of the marketplace's tenant. Required if specifying marketplace slug

marketplaceSlugstring

Specify the URL slug of the marketplace

skustring

The SKU of the item

MarketplaceItems

MarketplaceItems({
  tenantSlug,
  marketplaceSlug,
  tags // optional
})

Retrieve all items from the specified marketplace.

Note that this includes items that may not be for displayed sale in the marketplace. For information specifically about items displayed for sale, see the MarketplaceStorefront method.

Parameters

NameTypeRequiredDescription
tenantSlugstring

Specify the URL slug of the marketplace's tenant. Required if specifying marketplace slug

marketplaceSlugstring

Specify the URL slug of the marketplace

tagsArray.<string>

A list of tags to filter the results. Items not containing at least one specified tag (case insensitive) will be excluded.

MarketplaceMetadata

MarketplaceMetadata({
  tenantSlug, // optional
  marketplaceSlug // optional
})

Retrieve the full metadata for the specified marketplace object (starting from /public/asset_metadata/info)

Parameters

NameTypeRequiredDescription
tenantSlugstring

Specify the URL slug of the marketplace's tenant. Required if specifying marketplace slug

marketplaceSlugstring

Specify the URL slug of the marketplace

MarketplacePurchase

MarketplacePurchase({
  tenantSlug,
  marketplaceSlug,
  purchaseProvider, // optional
  sku,
  email, // optional
  quantity // optional
}) → Promise.<string>

Note: Will either prompt user for consent (wallet balance) or open the third party payment flow in a new tab (stripe, coinbase) unless the item is free to claim

Initiate purchase/claim flow for the specified item

Returns: The confirmation ID of the purchase. This ID can be used to check purchase and minting status via the PurchaseStatus method.

Parameters

NameTypeRequiredDescription
tenantSlugstring

Specify the URL slug of the marketplace's tenant. Required if specifying marketplace slug

marketplaceSlugstring

Specify the URL slug of the marketplace

purchaseProviderstring

The payment flow to use for the purchase. Not required if the item can be claimed for free. Available providers:

  • - stripe - Credit card payment flow with stripe
  • - coinbase - Crypto payment flow with Coinbase
  • - wallet-balance - Purchase with the user's available wallet balance (Requires consent prompt).

Note: Use the UserBalances method to check the user's available balance. (default: stripe)
skustring

SKU ID of the item to purchase

emailstring

The email address of the user. If specified, it will bind the user to the tenant of the specified marketplace

quantitynumber

Quantity of the item to purchase. It is recommended to check the MarketplaceStock API to ensure enough quantity is available.

(default: 1)

MarketplaceStock

MarketplaceStock({
  tenantSlug, // optional
  marketplaceSlug, // optional
  marketplaceId, // optional
  marketplaceHash // optional
}) → Promise.<Object>

Retrieve available item stock for the specified marketplace. Items are keyed by their SKU. If an item's stock is not restricted, no entry will be present. If a user is currently logged in, the entry will contain the number of that item the current user owns.

Returns: Information about available stock in the specified marketplace

Parameters

NameTypeRequiredDescription
tenantSlugstring

Specify the URL slug of your tenant. Required if specifying marketplaceSlug

marketplaceSlugstring

Specify the URL slug of your marketplace

marketplaceIdstring

The ID of the marketplace

marketplaceHashstring

A version hash of the marketplace

MarketplaceStorefront

MarketplaceStorefront({
  tenantSlug,
  marketplaceSlug,
  tags // optional
})

Retrieve information about the items displayed for sale in the specified marketplace

Parameters

NameTypeRequiredDescription
tenantSlugstring

Specify the URL slug of the marketplace's tenant. Required if specifying marketplace slug

marketplaceSlugstring

Specify the URL slug of the marketplace

tagsArray.<string>

A list of tags to filter the results. Items not containing at least one specified tag (case insensitive) will be excluded. Storefront sections with no matching items will be omitted

OpenPack

OpenPack({
  contractAddress,
  tokenId
})

Prompts user for consent

Initiate opening of the specified pack

Parameters

NameTypeRequiredDescription
contractAddressstring

The address of the NFT contract

tokenIdstring

The token ID of the item

PackOpenStatus

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

Retrieve the status of the specified pack opening.

The returned status has two parts:

  • - status - The status of the open process. When the finished, this status will be COMPLETE. If the process failed, this status will be FAILED.
  • - items - If opening has succeeded, a list of the items received will be included.
    • Returns: The status of the pack opening

      Parameters

      NameTypeRequiredDescription
      contractAddressstring

      The address of the NFT contract

      tokenIdstring

      The token ID of the item

      PurchasePrice

      PurchasePrice({
        tenantSlug, // optional
        marketplaceSlug, // optional
        sku, // optional
        listingId, // optional
        quantity // optional
      }) → Promise.<Object>

      Retrieve the exact purchase price breakdown of the specified marketplace item or listing. Includes quantity and fee calculations.

      Returns: The price of the purchase, including individual item price, subtotal, calculated fees and the total purchase price.

      Parameters

      NameTypeRequiredDescription
      tenantSlugstring

      The URL slug of a tenant. Required if specifying marketplaceSlug

      marketplaceSlugstring

      The URL slug of a marketplace

      skustring

      The SKU of an item from a marketplace

      listingIdstring

      The listing ID of an item

      quantitynumber

      For marketplace purchases, the number of items to purchase

      (default: 1)

      PurchaseStatus

      PurchaseStatus({
        confirmationId,
        tenantSlug, // optional
        marketplaceSlug, // optional
        listingId // optional
      }) → Promise.<Object>

      Retrieve the status of the specified purchase.

      The returned status has three parts:

      • - purchase - The status of the purchase flow. When the user has completed the process, this status will be COMPLETE. If the user aborts the purchase flow, this status will be CANCELLED.
      • - minting - The status of the nft minting/transfer process. When the minting/transfer has finished, this status will be COMPLETE. If the process failed, this status will be FAILED.
      • - items - If minting has been completed, a list of the items received will be included.
        • Returns: The status of the purchase

          Parameters

          NameTypeRequiredDescription
          confirmationIdstring

          The confirmation ID of the purchase

          tenantSlugstring

          (If purchasing from a marketplace) The URL slug of a tenant. Required if specifying marketplaceSlug

          marketplaceSlugstring

          (If purchasing from a marketplace) The URL slug of a marketplace

          listingIdstring

          (If purchasing a listing) The ID of the listing

          RemoveListing

          RemoveListing(
            listingId, // optional
            contractAddress, // optional
            tokenId // optional
          )

          Requires login

          Prompts user for consent

          Modify the specify listing. Provide either the listing's ID, or the contract address and token ID of the listed item.

          Parameters

          NameTypeRequiredDescription
          listingIdstring

          The listing ID of the listing to remove

          contractAddressstring

          The address of the NFT contract

          tokenIdstring

          The token ID of the item

          Sales

          Sales({
            start, // optional
            limit, // optional
            sortBy, // optional
            sortDesc, // optional
            tenantSlug, // optional
            marketplaceSlug, // optional
            contractAddress, // optional
            tokenId, // optional
            lastNDays // optional
          }) → Promise.<Object>

          Return records about sales

          Returns: List of sales records matching the specified filters. All monetary values are in USD.

          Parameters

          NameTypeRequiredDescription
          startnumber

          Index at which to start listing

          (default: 0)
          limitnumber

          Maximum number of results to return

          (default: 50)
          sortBystring

          Sort order for the results. Available sort options:

          • - created
          • - price
          • - name
          (default: created)
          sortDescboolean

          Sort in descending order

          (default: false)
          tenantSlugstring

          Specify the URL slug of a marketplace's tenant. Required if specifying marketplace slug

          marketplaceSlugstring

          Filter results by marketplace

          contractAddressstring

          Filter results by contract address

          tokenIdstring

          Filter results by individual token (along with contract address)

          lastNDaysnumber

          Limit results to only include items sold in the past N days

          SalesStats

          SalesStats({
            tenantSlug, // optional
            marketplaceSlug, // optional
            contractAddress, // optional
            tokenId, // optional
            lastNDays // optional
          }) → Promise.<Object>

          Return stats about listing sales

          Returns: Stats for listing sales matching the specified filters. All monetary values are in USD. - count - Total number of sales - avg - Average sale - max - Maximum sale - min - Minimum sale - volume - Total volume, in USD, of all sales

          Parameters

          NameTypeRequiredDescription
          tenantSlugstring

          Specify the URL slug of a marketplace's tenant. Required if specifying marketplace slug

          marketplaceSlugstring

          Filter stats by marketplace

          contractAddressstring

          Filter results by contract address

          tokenIdstring

          Filter results by individual token (along with contract address)

          lastNDaysnumber

          Limit results to only include items sold in the past N days

          SetLanguage

          SetLanguage(languageCode)

          Set the language for the wallet app. This will cause the wallet app to reload if the language is not currently the one specified.

          Parameters

          NameTypeRequiredDescription
          languageCodestring

          SetMarketplace

          SetMarketplace({
            tenantSlug, // optional
            marketplaceSlug // optional
          }) → Promise.<string>

          Set the marketplace for the wallet.

          This will update the font, color scheme, bottom navigation and login customization to the settings of the marketplace specified.

          Note that this is not required if the client was initialized with a marketplace.

          Returns: The version hash of the specified marketplace

          Parameters

          NameTypeRequiredDescription
          tenantSlugstring

          Specify the URL slug of your tenant. Required if specifying marketplaceSlug

          marketplaceSlugstring

          Specify the URL slug of your marketplace

          SetMarketplaceFilters

          SetMarketplaceFilters({ filters })

          Set filters for the marketplace store view. When active, only items with matching tags will be shown in the marketplace

          Parameters

          NameTypeRequiredDescription
          filters

          The filter(s) to be applied

          UserBalances

          UserBalances() → 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

          UserListings

          UserListings({}) → Promise.<Array.<Object>>

          Requires login

          Retrieve all listings posted by the current user.

          Returns: The current user's listings

          UserProfile

          UserProfile() → Promise.<Object>

          Requires login

          Return the current user's profile, including email (for custodial users) and blockchain address.

          Returns: If a user is currently logged in, the user's profile is returned.

          UserTransferHistory

          UserTransferHistory() → Promise.<Object>

          Requires login

          Retrieve the transfer history for the current user, including purchases, sales and balance withdrawals. Transactions are sorted by newest first.

          Returns: The transfer history of the current user