获取给定智能合约的 runtime code。
参数
DATA, 20 Bytes - 合约地址。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"}