eth_getBlockByNumber | Arbitrum Method
POSThttps://arbitrum.callstaticrpc.com/:apiKey
Returns information about a block by block number on the Arbitrum network.
Request
Path Parameters
apiKey string
Default value:
docs-demo
- application/json
Body
id Id (integer)
Default value:
1
jsonrpc JsonRpc (string)
Default value:
2.0
method Method (string)
Default value:
eth_getBlockByNumber
params object[]
Responses
- 200
Returns a block object with the following fields, or null when no block was found.
- application/json
- Schema
- Example (auto)
Schema
id integer
jsonrpc string
result object
{
"jsonrpc": "2.0",
"id": 0,
"result": {
"baseFeePerGas": "0x5f5e100",
"difficulty": "0x1",
"extraData": "0x6d5a4085e2b0272f55dab7a6a5bc41842577d9566b757e4d177eec28eb270807",
"gasLimit": "0x4000000000000",
"gasUsed": "0x1896bd",
"hash": "0xed9b8d3dfa67fa3258fb5b3ae856dbddfe00009595244f326099872902053d65",
"l1BlockNumber": "0x10036d5",
"logsBloom": "0x00000000000000000000000000000080000000000000000000000004000000180000000000000000000000001000000000004000000000000000000000000000000000010000800000000008000000010000000000000000000000000000000000000200020000000000000600080800000000000800000000000010000000000000002000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000004000000000000000002000000000000000020000000000000000400210010000000000020000000001000000002000800800800000000000000000000000000000000000000",
"miner": "0xa4b000000000000000000073657175656e636572",
"mixHash": "0x000000000000df4f00000000010036d5000000000000000a0000000000000000",
"nonce": "0x0000000000091e06",
"number": "0x41137e5",
"parentHash": "0x5af05990cc9d7483d16705e6c0fe05499d583ee5bfc724505a0b55aaad0110e2",
"receiptsRoot": "0x9657602263b141b0891637001ba984fb1de13c869b273185491f54e7932f5708",
"sendCount": "0xdf4f",
"sendRoot": "0x6d5a4085e2b0272f55dab7a6a5bc41842577d9566b757e4d177eec28eb270807",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x53d",
"stateRoot": "0x35aa4632f50b0b092c37ff963469a2f203e6f445a4e559e632a2fec93e5abba6",
"timestamp": "0x6409edb2",
"totalDifficulty": "0x2be5a9d",
"transactions": [
"0x80cc007147005da3c71acc8d4e1e2a882e32bf46f5340bf8248cd7609c5cf4ff",
"0xf23601acec7a844590df02682f20db5f0c61fadf8111df3432492c467cc47429"
],
"transactionsRoot": "0x9b47e3315bd7e2b6150abce33f8528478c9de557e10f86de30de633b947dec6d",
"uncles": []
}
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://arbitrum.callstaticrpc.com/:apiKey' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getBlockByNumber",
"params": [
"finalized",
false
]
}'
ResponseClear