Token API previewGuide

thirdweb Token API preview

API schema for token balances

ERC-20 balances of an address Copied!

GET
/v1/{clientId}/tokens/erc20/:ownerAddress

Path Parameters:

  • ownerAddress (required)

  • clientId

Successful response schema:

  • [application/json]

    [
      {
        "tokenAddress": "…",
        "balance": "…"
      }
    ]

ERC-721 tokens of an address Copied!

GET
/v1/{clientId}/tokens/erc721/:ownerAddress

Path Parameters:

  • ownerAddress (required)

  • clientId

Successful response schema:

  • [application/json]

    [
      {
        "collectionAddress": "…",
        "tokenId": "…",
        "balance": "…"
      }
    ]

ERC-1155 tokens of an address Copied!

GET
/v1/{clientId}/tokens/erc1155/:ownerAddress

Path Parameters:

  • ownerAddress (required)

  • clientId

Successful response schema:

  • [application/json]

    [
      {
        "collectionAddress": "…",
        "tokenId": "…",
        "balance": "…"
      }
    ]