GetContract

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

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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.
Body Params
string
required

The contract address. (Format: Base58 or hex).
Example: TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs

boolean
Defaults to true

Set to true to format addresses in Base58; set to false for hex format. (Default: false)

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json