Skip to main content
POST
eth_getCode
Arc API method that returns the bytecode at a given address. This is commonly used to verify if an address is a contract.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • address — the address to get the code from
  • blockParameter — the block number (hex) or tag (latest, earliest, pending)

Response

  • result — the bytecode at the given address, or 0x if no code exists (EOA)

eth_getCode code examples

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:eth_getCode
params
array

Response

200 - application/json

Returns the result of eth_getCode.

jsonrpc
string
id
integer
result
string
Last modified on August 3, 2026