eth_getCode - Etherlink RPC Method
Get contract bytecode on Etherlink. Essential for verifying smart contracts for historical blockchain data.
Returns the bytecode at a given address on Etherlink.
When to Use This Method
Read the Pyth implementation contract code at block 4,162,675. The captured result contains 20,568 bytes.
Best Practices
Keep the recorded block height and address together when reproducing a historical example. Preserve RPC errors instead of replacing them with empty results.
Response Body
ResponseCode Examples
curl -X POST "https://api-etherlink-mainnet.n.dwellir.com/YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"jsonrpc":"2.0","id":7,"method":"eth_getCode","params":["0xa2aa501b19aff244d90cc15a4cf739d2725b5729","0x3f8473"]}'eth_getBalance
Query account balance on Etherlink. Essential for wallet applications and historical blockchain data on Etherlink mainnet infrastructure and RPC surface.
eth_getStorageAt
Read the value from a storage slot at a given contract address on Etherlink. Essential for reading contract state directly, proxy implementation verification, and storage layout analysis.