eth_getBlockByNumber

Returns information about a block by block number.

Path Params
string
required
Defaults to 1659dfb40aa24bbb8153a677b98064d7
Body Params
integer
Defaults to 1
string
Defaults to 2.0
string
Defaults to eth_getBlockByNumber
params
array of strings
length between 2 and 2
  1. String - 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.
    • safe - The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination. Intuitively, this block is “unlikely” to be re-orged. Only available on Ethereum Mainnet and Goerli.
    • finalized - The most recent crypto-economically secure block, that has been accepted by >2/3 of validators. Cannot be re-orged outside of manual intervention driven by community coordination. Intuitively, this block is very unlikely to be re-orged. Only available on Ethereum Mainnet and Goerli.
    • earliest - The lowest numbered block the client has available. Intuitively, you can think of this as the first block created.
  2. Boolean - If true it returns the full transaction objects, if false only the hashes of the transactions. Defaults to false.
params
Response

Language
Choose an example:
application/json