GetContract

查询链上的合约信息, 包括合约的bytecode, ABI, 配置参数等.

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

返回值

字段的详细解释可以参考合约的部署和调用

字段类型描述
origin_addressstring合约创建者地址。
contract_addressstring合约地址。
abiABI智能合约 ABI。
bytecodestring智能合约字节码。
call_valueint64部署时转入合约的 TRX 数量。(单位: sun)
consume_user_resource_percentint64智能合约的用户能量消耗比例。(取值范围: [0-100])
namestring合约名称。
origin_energy_limitint64一笔该智能合约交易允许消耗的、合约部署者质押能量的最大值,即合约部署者可为一笔交易提供的能量的最大值。(单位: sun)
code_hashstring合约字节码哈希。
Body Params
string
required

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

boolean

设置为 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