POST
/
eth_getCode
curl --request POST \
  --url https://api.mainnet.abs.xyz/eth_getCode \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getCode",
  "params": [
    "0x8fe5810cd78eb8d8b9abad8527dfc1265bee6c56",
    "latest"
  ]
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x"
}

Body

application/json
jsonrpc
string
default:2.0
required

JSON-RPC version

method
string
default:eth_getCode
required

The method to call

params
any[]
required

Address and block parameter

id
integer
default:1
required

Request identifier

Response

200 - application/json
Returns the code at the given address
jsonrpc
string
Example:

"2.0"

id
integer
Example:

1

result
string

The code at the given address

Example:

"0x"