Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
quantity or tag— the integer of a block number encoded as hexadecimal, or the stringlatest,earliest, orpending.boolean— iftrue, returns the full transaction objects; iffalse, returns only the hashes of the transactions.
Response
result— the block object, ornullwhen no block was found:number— the block numberhash— the block hashparentHash— hash of the parent blocknonce— hash of the proof-of-worksha3Uncles— SHA3 of the uncles datalogsBloom— the bloom filter for the logstransactionsRoot— the root of the transaction triestateRoot— the root of the final state triereceiptsRoot— the root of the receipts trieminer— the address of the beneficiarydifficulty— integer of the difficultytotalDifficulty— total difficulty of the chain until this blockextraData— extra data fieldsize— size of this block in bytesgasLimit— maximum gas allowed in this blockgasUsed— total gas used by all transactionstimestamp— the unix timestamp for when the block was collatedtransactions— array of transaction objects or hashesuncles— array of uncle hashes
eth_getBlockByNumber code examples
Use case
A practical use case foreth_getBlockByNumber is retrieving block data for analysis, such as examining transaction volume, gas usage patterns, or timestamps for specific blocks.Body
application/json