eth_getCode
Description
Returns the bytecode at a given contract address.
Counts as 1 request. See Request Counting.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
address | address | Yes | Contract address |
block | blockTag | No | Block number or tag |
Request
{
"jsonrpc": "2.0",
"method": "eth_getCode",
"params": [
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"latest"
],
"id": 1
}Code Examples
curl -X POST https://bsc-rpc.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getCode","params":["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","latest"],"id":1}'