post
https://api.shasta.trongrid.io/wallet/getcontractinfo
查询合约信息——返回字节码 + 运行时字节码(runtime bytecode)+ 元数据。
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
查询合约信息。返回字节码 + 运行时字节码(runtime bytecode)+ 元数据。
与 GetContract 的区别GetContract 只返回部署时的完整字节码(含构造函数及其参数);本接口额外返回 runtime 字节码——即合约部署后真正运行的代码(不含一次性的构造函数逻辑)。需要验证合约逻辑、做反编译、或对接审计工具时通常需要 runtime 字节码。
相关资源
- GetContract —— 仅返回部署字节码与 ABI(轻量替代)
- TriggerConstantContract —— 只读模拟调用查询合约状态
- TVM —— TVM 执行语义与字节码格式