Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.goldsky.com/llms.txt

Use this file to discover all available pages before exploring further.

Parameters

address
string
required
Address to get code from (20 bytes)
blockNumber
string
required
Block number (hex), or latest, earliest, pending, safe, finalized

Returns

code
string
Bytecode at the address (hex encoded)

Example

curl -X POST "https://edge.goldsky.com/standard/evm/1?secret=YOUR_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "latest"], "id": 1}'