获取给定智能合约的runtime code
参数
序号 | 数据类型 | 描述 |
---|---|---|
1 | DATA, 20 Bytes | 合约地址 |
2 | QUANTITY|TAG | 当前只支持 "latest" |
返回值
object - 给定地址的runtime code
示例
curl -X POST 'https://api.shasta.trongrid.io/jsonrpc' --data '{
"jsonrpc": "2.0",
"method": "eth_getCode",
"params": ["0x4170082243784DCDF3042034E7B044D6D342A91360", "latest"],
"id": 64
}'
结果
{"jsonrpc":"2.0","id":64,"result":"0x"}