HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

GetContract

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

Returns

For a detailed explanation of the fields, please refer to Contract Deployment and Invocation.

FieldTypeDescription
origin_addressstringContract creator address
contract_addressstringContract address
abiABIABI
bytecodestringBytecode
call_valueint64The amount of TRX passed into the contract when deploying the contract
consume_user_resource_percentint64Proportion of user energy consumption
namestringcontract name
origin_energy_limitint64Each transaction is allowed to consume the maximum energy of the contract creator
code_hashstringcode hash
Language
Click Try It! to start a request and see the response here!