HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

GetContract

Fetches comprehensive information for a specified smart contract deployed on the blockchain. The returned details include the contract's bytecode, Application Binary Interface (ABI), and configuration parameters.

Returns

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

FieldTypeDescription
origin_addressstringAddress of the contract creator.
contract_addressstringAddress of the contract.
abiABISmart contract ABI.
bytecodestringBytecode of the smart contract.
call_valueint64Amount of TRX transferred into the contract at deployment. (Unit: sun)
consume_user_resource_percentint64Percentage of user Energy consumption for a smart contract. (Range: [0-100])
namestringContract name.
origin_energy_limitint64Maximum energy from the contract deployer's stake that a single transaction is allowed to consume. (Unit: sun)
code_hashstringHash of the contract's bytecode.
Language
Click Try It! to start a request and see the response here!