Granite Upgrade Activates in12d:17h:00m:52s
Eth

eth_getCode

Returns code at a given address.

POST
/ext/bc/C/rpc#eth_getCode

JSON-RPC request

jsonrpcstring
methodstring
params

[address, blockParameter]

Items2 <= items <= 2
idinteger

Response Body

application/json

application/json

curl -X POST "https://api.avax.network/ext/bc/C/rpc#eth_getCode" \  -H "Content-Type: application/json" \  -d '{    "jsonrpc": "2.0",    "method": "eth_getCode",    "params": [      "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",      "latest"    ],    "id": 1  }'
{
  "jsonrpc": "2.0",
  "result": null,
  "error": {
    "code": 0,
    "message": "string",
    "data": null
  },
  "id": 1
}
{
  "jsonrpc": "2.0",
  "error": {
    "code": 0,
    "message": "string",
    "data": null
  },
  "id": 1
}

Is this guide helpful?