Skip to main content
POST
eth_getCode
Robinhood Chain API method that returns the bytecode of a smart contract at a given address.

Parameters

  • address — the contract address
  • quantity or tag — the block number in hex format or block tag (latest, earliest, pending, safe, finalized)

Response

  • data — the bytecode at the given address

eth_getCode code examples

Body

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

The address to get the code from.

Response

200 - application/json

Returns code at a given address.

jsonrpc
string
id
integer
result
object | null
Last modified on July 18, 2026