eth_getCode

Returns runtime code of a given smart contract address.

Parameters

IndexData TypeDescription
1DATA, 20 Bytescontract address
2QUANTITY|TAGcurrently, only "latest" is available

Returns

DATA - the runtime code from the given address.

Example

curl -X POST '47.95.206.44:50545/jsonrpc' --data '{
    "jsonrpc": "2.0",
    "method": "eth_getCode",
    "params": ["0x4170082243784DCDF3042034E7B044D6D342A91360", "latest"],
    "id": 64
}'

Result

{"jsonrpc":"2.0","id":64,"result":"0x"}