GetContractInfo

查询链上的合约信息。与wallet/getcontract接口不同的是,该接口不仅返回bytecode还会返回合约的runtime bytecoderuntime bytecode相比bytecode,不包含构造函数以及构造函数的参数信息。

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

返回值

字段类型描述
runtimecodestring合约运行时字节码。
smart_contractSmartContract智能合约对象。详见 GetContract
contract_stateContractState合约状态。详见 动态能量模型
contract_state.energy_usageint64合约在当前维护周期的基础能量使用总量。
contract_state.energy_factorint64合约的能量因子。
contract_state.update_cycleint64当前维护周期编号。
Body Params
string
required
Defaults to TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs

合约地址。(格式: Base58 或 Hex)。
例如:TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs

boolean
Defaults to true

设置为 true 则地址将以 Base58 格式显示;设置为 false 则以 Hex 格式显示。(默认值: 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