eth_getCode

获取给定智能合约的runtime code

参数

序号数据类型描述
1DATA, 20 Bytes合约地址
2QUANTITY|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"}