Transactions
- Overview
- Installation
- Endpoints
- Examples
Indexer
- Overview
- Installation
- Endpoints
- public
- POSTGetNativeTokenBalance
- POSTGetTokenBalancesSummary
- POSTGetTokenBalancesDetails
- POSTGetTokenBalancesByContract
- POSTGetTokenBalances
- POSTGetTokenSupplies
- POSTGetTokenSuppliesMap
- POSTGetBalanceUpdates
- POSTGetTransactionHistory
- POSTFetchTransactionReceipt
- POSTFetchTransactionReceiptWithFilter
- POSTSubscribeReceipts
- POSTSubscribeEvents
- POSTSubscribeBalanceUpdates
- POST
- secret
- Examples
Indexer Gateway
Analytics
- Overview
- Endpoints
- Examples
Metadata
- Overview
- Endpoints
- Examples
Infrastructure
- Overview
- Endpoints
Builder
- Overview
- Endpoints
Marketplace
- Overview
- Endpoints
- Examples
Node Gateway
public
GetTokenSupplies
GetTokenSupplies returns the set of tokenIDs used by a contract address, supporting ERC-20, ERC-721, and ERC-1155 contracts, and their respective supply as well.
POST
/
rpc
/
Indexer
/
GetTokenSupplies
curl --request POST \
--url https://amoy-indexer.sequence.app/rpc/Indexer/GetTokenSupplies \
--header 'Content-Type: application/json' \
--header 'X-Access-Key: <api-key>' \
--data '{
"contractAddress": "0x369db37255c76aec060d070eabeb0661e51a42a9"
}'
{
"page": {
"pageSize": 200,
"more": false
},
"contractType": "ERC1155",
"tokenIDs": [
{
"tokenID": "0",
"supply": "9",
"chainId": 1
}
]
}
Authorizations
Public project access key for authenticating requests obtained on Sequence Builder. Example Test Key: AQAAAAAAAEGvyZiWA9FMslYeG_yayXaHnSI
Body
application/json
Response
200
application/json
OK
Represented as uint8 on the server side
Available options:
UNKNOWN
, NATIVE
, ERC20
, ERC721
, ERC1155
, SEQUENCE_WALLET
, ERC20_BRIDGE
, ERC721_BRIDGE
, ERC1155_BRIDGE
, SEQ_MARKETPLACE
[]TokenSupply
map<string,any>
[]Asset
Was this page helpful?
curl --request POST \
--url https://amoy-indexer.sequence.app/rpc/Indexer/GetTokenSupplies \
--header 'Content-Type: application/json' \
--header 'X-Access-Key: <api-key>' \
--data '{
"contractAddress": "0x369db37255c76aec060d070eabeb0661e51a42a9"
}'
{
"page": {
"pageSize": 200,
"more": false
},
"contractType": "ERC1155",
"tokenIDs": [
{
"tokenID": "0",
"supply": "9",
"chainId": 1
}
]
}