post https://api.shasta.trongrid.io/wallet/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.
Field | Type | Description |
---|---|---|
origin_address | string | Contract creator address |
contract_address | string | Contract address |
abi | ABI | ABI |
bytecode | string | Bytecode |
call_value | int64 | The amount of TRX passed into the contract when deploying the contract |
consume_user_resource_percent | int64 | Proportion of user energy consumption |
name | string | contract name |
origin_energy_limit | int64 | Each transaction is allowed to consume the maximum energy of the contract creator |
code_hash | string | code hash |