eth_getBlockByNumber
Network: Arbitrum Sepolia · Testnet · Chain ID 421614 (0x66eee)
Counts as 1 request. See Request Counting.
Returns information about a block by block number.
Parameters
QUANTITY|TAG— Integer of a block number, or the string"earliest","latest","safe","finalized", or"pending".Boolean— Iftrue, returns full transaction objects; iffalse, returns only transaction hashes.
Returns
Object|null — A block object, or null when no block was found.
| Field | Type | Description |
|---|---|---|
| number | QUANTITY | Block number |
| hash | DATA | Block hash |
| parentHash | DATA | Parent block hash |
| timestamp | QUANTITY | Unix timestamp |
| gasUsed | QUANTITY | Gas used |
| gasLimit | QUANTITY | Gas limit |
| baseFeePerGas | QUANTITY | Base fee (EIP-1559) |
| transactions | Array | Transaction hashes or objects |
Request
{
"jsonrpc": "2.0",
"method": "eth_getBlockByNumber",
"params": ["latest", false],
"id": 1
}Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"number": "0x134e82a",
"hash": "0xabc...def",
"parentHash": "0x123...456",
"timestamp": "0x65a1b2c3",
"gasUsed": "0x1234",
"gasLimit": "0x1c9c380",
"baseFeePerGas": "0x3b9aca00",
"transactions": ["0x..."]
}
}Code Examples
curl -X POST https://arbitrum-sepolia-rpc.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest",false],"id":1}'