TRON
protocol.Wallet/GetContract25 créditos
Returns a smart contract by address (gRPC).
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
| value | string | Contract address (bytes; base64 in the JSON form of the message). |
Retorno
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.
Exemplos 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