v1

latestOpenAPI 3.1.02026-07-2612501.4 MB

getcontract

Queries a contract's information from the blockchain, including the bytecode of the contract, ABI, configuration parameters, etc.

post/node/v1/tron/mainnet/{apiKey}/wallet/getcontract

Path parameters

apiKeystring required

please <span class="custom-style"><a href="../docs/quick-start-guide#-creating-your-api-key-on-the-zan-platform" target="_blank">create your own API key</a></span>

Request body

valuestring required
visibleboolean required

Response

200

origin_addressstring

Contract creator address

contract_addressstring

Contract address

code_hashstring

code hash

origin_energy_limitinteger

Each transaction is allowed to consume the maximum energy of the contract creator, the unit is sun

abiobject

ABI

namestring

contract name

consume_user_resource_percentinteger

Proportion of user energy consumption

bytecodestring

Bytecode

call_valueinteger

The amount of TRX passed into the contract when deploying the contract