API Reference

eth_getBlockRange

Returns block info for multiple blocks

Log in to see full request history
Path Params
string
required
Defaults to public

For higher throughput, please create your own API key.

Body Params
integer
Defaults to 1
string
Defaults to 2.0
string
Defaults to eth_getBlockRange
params
array
length between 3 and 3
Defaults to 0x1,0x2,false
  1. STARTING BLOCK PARAMETER - String - Starting block param of the range. Either the hex value of a block number OR One of the following block tags:
    • pending - A sample next block built by the client on top of latest and containing the set of transactions usually taken from local mempool. Intuitively, you can think of these as blocks that have not been mined yet.
    • latest - The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions.
    • earliest - The lowest numbered block the client has available. Intuitively, you can think of this as the first block created.
  2. ENDING BLOCK PARAMETER - String - Ending block param of the range. Either the hex value of a block number OR One of the following block tags:
    • pending - A sample next block built by the client on top of latest and containing the set of transactions usually taken from local mempool. Intuitively, you can think of these as blocks that have not been mined yet.
    • latest - The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions.
    • earliest - The lowest numbered block the client has available. Intuitively, you can think of this as the first block created.
  3. SHOW TRANSACTION DETAILS FLAG - Boolean - if set to true, it returns the full transaction objects, if false only the hashes of the transactions. Defaults to false.
params
Response

Language
Click Try It! to start a request and see the response here! Or choose an example:
application/json