post
https://api.shasta.trongrid.io/wallet/getcontract
查询链上的合约信息, 包括合约的bytecode, ABI, 配置参数等.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
返回值
字段的详细解释可以参考合约的部署和调用。
| 字段 | 类型 | 描述 |
|---|---|---|
| origin_address | string | 合约创建者地址。 |
| contract_address | string | 合约地址。 |
| abi | ABI | 智能合约 ABI。 |
| bytecode | string | 智能合约字节码。 |
| call_value | int64 | 部署时转入合约的 TRX 数量。(单位: sun) |
| consume_user_resource_percent | int64 | 智能合约的用户能量消耗比例。(取值范围: [0-100]) |
| name | string | 合约名称。 |
| origin_energy_limit | int64 | 一笔该智能合约交易允许消耗的、合约部署者质押能量的最大值,即合约部署者可为一笔交易提供的能量的最大值。(单位: sun) |
| code_hash | string | 合约字节码哈希。 |