GetContractInfo

查询合约信息——返回字节码 + 运行时字节码(runtime bytecode)+ 元数据。

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

查询合约信息。返回字节码 + 运行时字节码(runtime bytecode)+ 元数据。

📘

与 GetContract 的区别

GetContract 只返回部署时的完整字节码(含构造函数及其参数);本接口额外返回 runtime 字节码——即合约部署后真正运行的代码(不含一次性的构造函数逻辑)。需要验证合约逻辑、做反编译、或对接审计工具时通常需要 runtime 字节码。


相关资源

Body Params
string

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

boolean
Defaults to true

可选。设置为 true 时地址以 Base58 格式返回;设置为 false 时以 hex 格式返回。(默认:false

Responses

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