# Eth\_getBlockByHash

## Get Block by Hash

> Returns the block information for the specified block hash.\
> The second parameter indicates whether to return full transaction objects or just transaction hashes.<br>

```json
{"openapi":"3.0.0","info":{"title":"Ethereum JSON-RPC","version":"1.0.0"},"servers":[{"url":"https://arbitrum.nownodes.io"}],"security":[{"api-keyAuth":[]}],"components":{"securitySchemes":{"api-keyAuth":{"type":"apiKey","in":"header","name":"api-key"}}},"paths":{"/":{"post":{"tags":["eth_getBlockByHash"],"summary":"Get Block by Hash","operationId":"ethGetBlockByHash","description":"Returns the block information for the specified block hash.\nThe second parameter indicates whether to return full transaction objects or just transaction hashes.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","params","id"],"properties":{"jsonrpc":{"type":"string","description":"JSON-RPC version"},"method":{"type":"string","description":"JSON-RPC method name"},"params":{"type":"array","minItems":2,"maxItems":2,"description":"Array of parameters:\n1. Block hash (string)\n2. Boolean flag — if true, return full transactions; if false, only hashes.\n","items":{"type":"string"}},"id":{"type":"integer","description":"Request ID"}}}}}},"responses":{"200":{"description":"Block information","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","description":"JSON-RPC version"},"id":{"type":"integer","description":"Same ID as in request"},"result":{"type":"object","description":"Block object or null if not found","properties":{"number":{"type":"string","description":"Block number in hex"},"hash":{"type":"string","description":"Block hash"},"parentHash":{"type":"string","description":"Hash of the parent block"},"nonce":{"type":"string","description":"Block nonce"},"sha3Uncles":{"type":"string","description":"SHA3 of the uncles data in the block"},"logsBloom":{"type":"string","description":"Bloom filter for logs"},"transactionsRoot":{"type":"string","description":"Root of the transaction trie of the block"},"stateRoot":{"type":"string","description":"Root of the final state trie of the block"},"receiptsRoot":{"type":"string","description":"Root of the receipts trie of the block"},"miner":{"type":"string","description":"Address of the miner who mined the block"},"difficulty":{"type":"string","description":"Difficulty for this block in hex"},"totalDifficulty":{"type":"string","description":"Total difficulty of the chain until this block"},"extraData":{"type":"string","description":"Extra data included in the block"},"size":{"type":"string","description":"Size of the block in bytes"},"gasLimit":{"type":"string","description":"Maximum gas allowed in this block"},"gasUsed":{"type":"string","description":"Total gas used by all transactions in the block"},"timestamp":{"type":"string","description":"Unix timestamp for when the block was mined"},"transactions":{"type":"array","description":"List of transactions or transaction hashes (depending on request)","items":{"oneOf":[{"type":"string","description":"Transaction hash (if `false` was specified in request)"},{"type":"object","description":"Full transaction object (if `true` was specified in request)","properties":{"hash":{"type":"string","description":"Transaction hash"},"nonce":{"type":"string","description":"Transaction nonce"},"blockHash":{"type":"string","description":"Hash of the block containing this transaction"},"blockNumber":{"type":"string","description":"Block number containing this transaction"},"transactionIndex":{"type":"string","description":"Index of the transaction in the block"},"from":{"type":"string","description":"Address of the sender"},"to":{"type":"string","description":"Address of the receiver (null if contract creation)","nullable":true},"value":{"type":"string","description":"Amount of wei transferred"},"gasPrice":{"type":"string","description":"Gas price provided by the sender"},"gas":{"type":"string","description":"Gas provided by the sender"},"input":{"type":"string","description":"Input data for the transaction"}}}]}},"uncles":{"type":"array","description":"List of uncle hashes included in this block","items":{"type":"string"}}}}}}}}}}}}}}
```
