요금GitHub대시보드

TRON

wallet/getcontract25 크레딧

Returns smart contract information (ABI, bytecode, settings).

네트워크: tron

매개변수

이름타입설명
valuestringContract address (base58 or hex).
visiblebooleantrue = base58 addresses (in the request and the response); false (default) = hex addresses. (선택)

반환값

타입

Object

Contract object: origin_address, contract_address, abi (entrys), bytecode, call_value, consume_user_resource_percent, name, origin_energy_limit, code_hash, trx_hash, version. {} when the address is not a contract.

코드 예제

curl 'https://holy-burned-sky-tron-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/wallet/getcontract' \
  -X POST \
  -H 'content-type: application/json' \
  -d '{
  "value": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
  "visible": true
}'