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": "<string>",
"includeMetadata": true,
"metadataOptions": {
"verifiedOnly": true,
"unverifiedOnly": true,
"includeContracts": [
"<string>"
]
},
"page": {
"page": 123,
"column": "<string>",
"before": {},
"after": {},
"sort": [
{
"column": "<string>",
"order": "DESC"
}
],
"pageSize": 123,
"more": true
}
}
'{
"page": {
"page": 123,
"column": "<string>",
"before": {},
"after": {},
"sort": [
{
"column": "<string>",
"order": "DESC"
}
],
"pageSize": 123,
"more": true
},
"contractType": "UNKNOWN",
"tokenIDs": [
{
"tokenID": "<string>",
"supply": "<string>",
"chainId": 123,
"contractInfo": {
"chainId": 123,
"address": "<string>",
"name": "<string>",
"type": "<string>",
"symbol": "<string>",
"logoURI": "<string>",
"deployed": true,
"bytecodeHash": "<string>",
"extensions": {
"link": "<string>",
"description": "<string>",
"ogImage": "<string>",
"originChainId": 123,
"originAddress": "<string>",
"blacklist": true,
"verified": true,
"verifiedBy": "<string>",
"featured": true
},
"contentHash": 123,
"updatedAt": "<string>",
"decimals": 123
},
"tokenMetadata": {
"tokenId": "<string>",
"name": "<string>",
"attributes": [
{}
],
"description": "<string>",
"image": "<string>",
"video": "<string>",
"audio": "<string>",
"properties": {},
"imageData": "<string>",
"externalUrl": "<string>",
"backgroundColor": "<string>",
"animationUrl": "<string>",
"decimals": 123,
"updatedAt": "<string>",
"assets": [
{
"id": 123,
"collectionId": 123,
"metadataField": "<string>",
"tokenId": "<string>",
"url": "<string>",
"filename": "<string>",
"filesize": 123,
"mimeType": "<string>",
"width": 123,
"height": 123,
"updatedAt": "<string>"
}
]
}
}
]
}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.
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": "<string>",
"includeMetadata": true,
"metadataOptions": {
"verifiedOnly": true,
"unverifiedOnly": true,
"includeContracts": [
"<string>"
]
},
"page": {
"page": 123,
"column": "<string>",
"before": {},
"after": {},
"sort": [
{
"column": "<string>",
"order": "DESC"
}
],
"pageSize": 123,
"more": true
}
}
'{
"page": {
"page": 123,
"column": "<string>",
"before": {},
"after": {},
"sort": [
{
"column": "<string>",
"order": "DESC"
}
],
"pageSize": 123,
"more": true
},
"contractType": "UNKNOWN",
"tokenIDs": [
{
"tokenID": "<string>",
"supply": "<string>",
"chainId": 123,
"contractInfo": {
"chainId": 123,
"address": "<string>",
"name": "<string>",
"type": "<string>",
"symbol": "<string>",
"logoURI": "<string>",
"deployed": true,
"bytecodeHash": "<string>",
"extensions": {
"link": "<string>",
"description": "<string>",
"ogImage": "<string>",
"originChainId": 123,
"originAddress": "<string>",
"blacklist": true,
"verified": true,
"verifiedBy": "<string>",
"featured": true
},
"contentHash": 123,
"updatedAt": "<string>",
"decimals": 123
},
"tokenMetadata": {
"tokenId": "<string>",
"name": "<string>",
"attributes": [
{}
],
"description": "<string>",
"image": "<string>",
"video": "<string>",
"audio": "<string>",
"properties": {},
"imageData": "<string>",
"externalUrl": "<string>",
"backgroundColor": "<string>",
"animationUrl": "<string>",
"decimals": 123,
"updatedAt": "<string>",
"assets": [
{
"id": 123,
"collectionId": 123,
"metadataField": "<string>",
"tokenId": "<string>",
"url": "<string>",
"filename": "<string>",
"filesize": 123,
"mimeType": "<string>",
"width": 123,
"height": 123,
"updatedAt": "<string>"
}
]
}
}
]
}Public project access key for authenticating requests obtained on Sequence Builder. Example Test Key: AQAAAAAAAEGvyZiWA9FMslYeG_yayXaHnSI
OK
Represented as uint8 on the server side
UNKNOWN, NATIVE, ERC20, ERC721, ERC1155, SEQUENCE_WALLET, ERC20_BRIDGE, ERC721_BRIDGE, ERC1155_BRIDGE, SEQ_MARKETPLACE []TokenSupply
表示 子属性
表示 子属性
表示 子属性
表示 子属性
[]Asset
表示 子属性
このページは役に立ちましたか?