Skip to main content

eth_getBlockByNumber

Returns information about a block by hash.

Params

Name - Block

schema

One Of

title - Block number

type - string

title - Block tag

type - string
description -

``earliest: The lowest numbered block the client has available; finalized: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination; safe: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions; 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; pending: A sample next block built by the client on top of latestand containing the set of transactions usually taken from local mempool. Before the merge transition is finalized, any call querying forfinalizedorsafeblock MUST be responded to with-39001: Unknown block error

enum

  • earliest
  • finalized
  • safe
  • latest
  • pending

Name - Hydrated transaction

schema

title - hydrated

type - boolean

Result

Name - Block information

schema

One Of

title - Not Found(null)

type - null

Object

title - Block object

properties

hash

title - Hash

type - string

parentHash

title - Parent hash

type - string

sha3Uncles

title - Ommers hash

type - string

miner

title - Coinbase

type - string

stateRoot

title - State root

type - string

transactionsRoot

title - Transactions root

type - string

receiptsRoot

title - Receipts root

type - string

logsBloom

title - Bloom filter

type - string

difficulty

title - Difficulty

type - string

number

title - Number

type - string

gasLimit

title - Gas limit

type - string

gasUsed

title - Gas used

type - string

timestamp

title - Timestamp

type - string

extraData

title : Extra data

type : string

mixHash

title : Mix hash

type : string

nounce

title - Nounce

type - string

totalDifficulty

title - Total difficulty

type - string

baseFeePerGas

title : Base fee per gas

type : string

withdrawalRoot

title - Withdrawal root

type - string

blobGasUsed

title - Blob gas used

type - string

excessBlobGas

title - Excess blob gas

type - string

parentBeaconBlockRoot

title - Parent Beacon Block Root

type - string

size

title - Block size

type - string

transactions

Array

title : Transactions

title : hex encoded bytes

type : string

withdrawals

Array

title : Withdrawals

Object

title : Validator withdrawal

type : string

properties

index

title : Withdrawal index

type : string

validatorindex

title : Validator index

type : string

address

title : Withdrawal address

type : string

amount

title : Withdrawal amount

type : string

uncles

Array

title - 32 byte hex value

type - string