TarifsGitHubTableau de bord

TRON

protocol.Wallet/GetContract25 crédits

Returns a smart contract by address (gRPC).

Réseau: tron

Paramètres

NomTypeDescription
valuestringContract address (bytes; base64 in the JSON form of the message).

Valeur renvoyée

Type

Object

SmartContract message: origin_address, contract_address, abi (entrys[]), bytecode, call_value, consume_user_resource_percent, name, origin_energy_limit, code_hash, trx_hash, version.

Exemples de code

# the key of the endpoint goes in the x-token header; add -proto <file> when the node has no gRPC reflection
grpcurl \
  -H 'x-token: 7c9e6679-7425-40de-944b-e07fc1f90ae7' \
  -d '{
  "value": "<base64 contract address>"
}' \
  grpc-holy-burned-sky-tron-mainnet.rpcnode.dev:443 \
  protocol.Wallet/GetContract