ドキュメント
料金GitHubダッシュボード

TON

getTokenData25クレジット

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

ネットワーク: ton

パラメータ

名前型説明
addressstringAddress of the Jetton or NFT contract.

戻り値

型

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.

コード例

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"
  }
}'