Last updated 4 months ago
address - query
address
required, string
Identifier of target TON account in any form.
curl --location --request GET 'https://ton.getblock.io/mainnet/getTokenData?address=EQAG2BH0JlmFkbMrLEnyn2bIITaOSssd4WdisE4BdFMkZbir' --header 'x-api-key: YOUR-API-KEY' --header 'Content-Type: application/json'
{ "ok": true, "result": { "next_item_index": 10000, "collection_content": { "type": "offchain", "data": "https://nft.ton.diamonds/diamonds.json" }, "owner_address": "EQDsP4js-X1VVS7mBZAuoeXvKcvOYlkpsdELBHwJOez07ZTW", "contract_type": "nft_collection" } }
Example code for the /getTokenData json-rpc method. Сomplete guide on how to use /getTokenData json-rpc in GetBlock.io Web3 documentation.