eth_getBlockByHash
Optimism node API
eth_getBlockByHash | Optimism
Optimism API method that retrieves a block’s information by its hash. The block hash is a unique identifier for each block in the blockchain.
POST
eth_getBlockByHash
Optimism API method that retrieves a block’s information by its hash. The block hash is a unique identifier for each block in the blockchain, represented as a hexadecimal number.Documentation Index
Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
Use this file to discover all available pages before exploring further.
Get your 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
hash— the hash of the block to retrieve, as a hexadecimal string.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. IffullTransactionObjectsistrue, this will include detailed information about each transaction in the block.
Use case
Theeth_getBlockByHash method is useful for applications that need to retrieve specific blocks from the blockchain, such as block explorers, wallets, or applications that process or display block information. For example, a block explorer might use this method to display detailed information about a block and its transactions to users.Last modified on May 18, 2026