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
blockNumber
— the number of the block to retrieve, encoded as a hexadecimal string. For example,0x6f5f828
represents block number 116783144.fullTransactionObjects
— a boolean indicating whether to return full transaction objects or only their hashes. Iftrue
, full transaction objects are returned; iffalse
, only the hashes of the transactions are returned.
Response
result
— an object containing the block’s information, including the block number, timestamp, transactions, and more. IffullTransactionObjects
istrue
, this will include detailed information about each transaction in the block.
Use case
Theeth_getBlockByNumber
method is useful for applications that need to retrieve specific blocks from the blockchain based on their block number. This can include block explorers, wallets, or any application that requires detailed information about a particular block or its transactions.Body
application/json