Skip to content

eth_getCode

Returns the bytecode at a given contract address.

ParameterTypeRequiredDescription
addressaddressYesContract address
blockblockTagNoBlock number or tag
{
"jsonrpc": "2.0",
"method": "eth_getCode",
"params": [
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"latest"
],
"id": 1
}
Terminal window
curl -X POST https://polygon-mainnet.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getCode","params":["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","latest"],"id":1}'