FULL NAME
SUBJECT
Customer Support
Customer Support
Business / Sales
Partnership
Feedback
Demo Request
Other
TEXT MESSAGE
0/300
⚡ We welcome businesses to test our enterprise-grade service
Method: POST eth_getBlockByNumber
Returns information about a block by block number.
QUANTITY|TAG
- integer or string
block number or "latest", "earliest" or "pending"
Boolean
- Boolean
If true it returns the full transaction objects, if false only the hashes of the transactions.
curl --location --request POST 'https://arbitrum.getblock.io/mainnet/' \ --header 'x-api-key: YOUR-API-KEY' \ --header 'Content-Type: application/json' \ --data-raw '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["latest", false], "id": "getblock.io"}'
{ "id": "getblock.io", "jsonrpc": "2.0", "result": { "difficulty": "0x0", "extraData": "0x", "gasLimit": "0xbc797c2", "gasUsed": "0x0", "hash": "0xeffd5d5d1c416a74aa1eb78b08987b291f13b7cb7ef3697c8468fdee5bb06233", "l1BlockNumber": "0xea2502", "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "miner": "0x0000000000000000000000000000000000000000", "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "nonce": "0x0000000000000000", "number": "0x135b1fe", "parentHash": "0x0a8194195e653f7c85194dc5c086ae27e40aa19b6af2fa1118e222938c7a5cea", "receiptsRoot": "0xf5f7c8ceaa7dbf8aad936af1c22107680d622fc707bfd053a2240aa3cbd83ea3", "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", "size": "0x0", "stateRoot": "0x0000000000000000000000000000000000000000000000000000000000000000", "timestamp": "0x62f9ff1a", "totalDifficulty": "0x0", "transactions": [ "0x270f279ed35bc0b512a3552cb707706923d704b59a6ce1b5ccb7a38ffc191054" ], "transactionsRoot": "0xdd5803c43e5c7ebf221c284ea7b4fc06c616704fe15ae8afc467a8feb047a3bb", "uncles": [] } }