Skip to main content

Tokens in a contract

Fetch all unique tokens in a particular ERC20/721/1155 contract, including total supplies

Fetches token supplies and metadata for any ERC20, ERC721, ERC1155 contract.

This query is helpful to render all tokens in a token contract, or to query the total token supplies. In this example, we use the Skyweaver token contract address 0x631998e91476DA5B870D741192fc5Cbc55F5a52E on the Polygon network. You may query any contract address on any of the supported networks (but make sure to query the indexer of the corresponding network).

Sequence Indexer GetTokenSupplies Method:

  • Request: POST /rpc/Indexer/GetTokenSupplies
  • Content-Type: application/json
  • Body (in JSON):
    • contractAddress (string) -- a ERC20 / ERC721 / ERC1155 contract address
    • includeMetadata (boolean - optional - default: false) -- toggle token metadata to be included in the response

Example: GetTokenSupplies of Skyweaver contract on Polygon

curl -X POST -H "Content-Type: application/json" -d '{ "contractAddress": "0x631998e91476DA5B870D741192fc5Cbc55F5a52E", "includeMetadata": true }'