PreçosGitHubPainel

TON

getTokenData25 créditos

Returns the data of a Jetton (master or wallet) or of an NFT (collection or item) contract.

Rede: ton

Parâmetros

NomeTipoDescrição
addressstringAddress of the Jetton or NFT contract.

Retorno

Tipo

Object

contract_type ("jetton_master", "jetton_wallet", "nft_collection", "nft_item") and the fields of that contract: for a Jetton master total_supply, admin_address, jetton_content and jetton_wallet_code; for a Jetton wallet balance, owner and jetton; for an NFT item index, collection_address, owner_address and content.

Exemplos de código

curl https://holy-burned-sky-ton-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
  -X POST \
  -H 'content-type: application/json' \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getTokenData",
  "params": {
    "address": "EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs"
  }
}'