Skip to main content
POST
eth_getCode

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"