PreciosGitHubPanel

TRON

protocol.Wallet/GetContract25 créditos

Returns a smart contract by address (gRPC).

Red: tron

Parámetros

NombreTipoDescripción
valuestringContract address (bytes; base64 in the JSON form of the message).

Valor devuelto

Tipo

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.

Ejemplos de código

# 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