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. It can be a hexadecimal value or a predefined tag such aslatest
,earliest
, orpending
.fullTransactionObjects
— if set totrue
, returns the full transaction objects; iffalse
, only the hashes of the transactions.
Response
result
— an object containing information about the block, such as the block number (number
), the hash of the block (hash
), the hash of the parent block (parentHash
), and, depending on thefullTransactionObjects
parameter, either a list of transaction hashes or a list of transaction objects.
Use case
Theeth_getBlockByNumber
method is useful for applications that need to retrieve information about blocks at specific points in the blockchain. For instance, a financial application might use this method to analyze transactions within a particular block to audit or reconcile financial records.Body
application/json