Skip to content
Docs

NFTs

Collections and metadata

How to read NFT rows, group collections, and wire gallery + transfer UX.

Overview

NFT responses are optimized for gallery and send flows: which contract, which token id, what to show the user, and enough identity to call nft_transfer prepare. They are not a full OpenSea-style metadata API—treat missing images or names as normal for unindexed or non-standard contracts.

Fields on each item

HTTP 200 — success envelope wraps the payload in data.

json
{
  "chainId": "ethereum",
  "contract": "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D",
  "tokenId": "1234",
  "name": "BAYC #1234",
  "imageUrl": "https://…"
}
FieldRequiredDescription
chainIdYesEcho of the request chain; use when merging multi-chain UI state
contractYesCollection contract (ERC-721 / ERC-1155 style address on EVM)
tokenIdYesToken id string as returned by the indexer (may be decimal or hex-shaped)
nameNoDisplay title when metadata was resolved; may be empty
imageUrlNoHTTP(S) or ipfs:// URL when available; proxy or cache in production

Grouping by collection

The API returns a flat items[] array. In your app, group rows by contract to build collection tabs or accordions. Use contract + tokenId as the stable key for selection, transfers, and deep links—never rely on name alone.

Images and metadata gaps

  • Missing imageUrl — show a placeholder; optionally fetch metadata from your own cache or a dedicated metadata service if you need rich attributes.
  • IPFS links — use a gateway you trust; set timeouts and fallbacks for mobile clients.
  • Spam / airdrop NFTs — still appear if the indexer reports them; filter by allowlisted contracts in UI if your product requires it.

Before you send an NFT

Confirm contract and tokenId from this list, then prepare with kind: nft_transfer on POST /v1/transactions/prepare. Capabilities on GET /v1/chains?include=capabilities show whether nfts and tokenTransfer are available for the chain.

Example response slice

HTTP 200 — success envelope wraps the payload in data.

json
{
  "data": {
    "chainId": "ethereum",
    "address": "0xYourAddress",
    "items": [
      {
        "chainId": "ethereum",
        "contract": "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D",
        "tokenId": "1234",
        "name": "BAYC #1234",
        "imageUrl": "https://ipfs.io/ipfs/…"
      },
      {
        "chainId": "ethereum",
        "contract": "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D",
        "tokenId": "5678",
        "name": "BAYC #5678",
        "imageUrl": "https://ipfs.io/ipfs/…"
      }
    ],
    "source": "indexer"
  }
}