Sequence Indexer GetTokenBalances
Method:
accountAddress
(string) — the wallet account addressincludeMetadata
(boolean - optional - default: false) — toggle token metadata to be included in the responsemetadataOptions
(object - optional) — additional options for metadata
verifiedOnly
(boolean - optional) — return only contracts which are ‘verified’ to help reduce spamincludeContracts
([]string - optional) — list of specific contract addresses to always be included, even if verifiedOnly is enabled.includeCollectionTokens
(boolean - optional - default: true) — toggle to represent ERC721 / ERC1155 tokens as a single summary item in the responsePRO TIP: fetching ERC721/1155 token IDs
You’ll notice that, by default, GetTokenBalances
will return at most one token instance from each contract.
In order to fetch ERC721/1155 token balances, you must pass the contractAddress
to the GetTokenBalances
method.
This will return all of the tokens owned by accountAddress
from the specified contractAddress
.
See section below for more information.
Sequence Indexer GetTokenBalances
Method:
accountAddress
(string) — the wallet account addresscontractAddress
(string) — the contract address of the ERC721 / ERC1155 collectionincludeMetadata
(boolean - optional - default: false) — toggle token metadata to be included in the responsemetadataOptions
(object - optional) — additional options for metadata
verifiedOnly
(boolean - optional) — return only contracts which are ‘verified’ to help reduce spamincludeContracts
([]string - optional) — list of specific contract addresses to always be included, even if verifiedOnly is enabled.Example: GetTokenBalances
of a contract + account address on Polygon using an PROJECT_ACCESS_KEY
Sequence Indexer GetTokenBalances
Method:
accountAddress
(string) — the wallet account addressincludeMetadata
(boolean - optional - default: false) — toggle token metadata to be included in the responsemetadataOptions
(object - optional) — additional options for metadata
verifiedOnly
(boolean - optional) — return only contracts which are ‘verified’ to help reduce spamincludeContracts
([]string - optional) — list of specific contract addresses to always be included, even if verifiedOnly is enabled.includeCollectionTokens
(boolean - optional - default: true) — toggle to represent ERC721 / ERC1155 tokens as a single summary item in the responsePRO TIP: fetching ERC721/1155 token IDs
You’ll notice that, by default, GetTokenBalances
will return at most one token instance from each contract.
In order to fetch ERC721/1155 token balances, you must pass the contractAddress
to the GetTokenBalances
method.
This will return all of the tokens owned by accountAddress
from the specified contractAddress
.
See section below for more information.
Sequence Indexer GetTokenBalances
Method:
accountAddress
(string) — the wallet account addresscontractAddress
(string) — the contract address of the ERC721 / ERC1155 collectionincludeMetadata
(boolean - optional - default: false) — toggle token metadata to be included in the responsemetadataOptions
(object - optional) — additional options for metadata
verifiedOnly
(boolean - optional) — return only contracts which are ‘verified’ to help reduce spamincludeContracts
([]string - optional) — list of specific contract addresses to always be included, even if verifiedOnly is enabled.Example: GetTokenBalances
of a contract + account address on Polygon using an PROJECT_ACCESS_KEY