> ## Documentation Index
> Fetch the complete documentation index at: https://docs.goldsky.com/llms.txt
> Use this file to discover all available pages before exploring further.

# eth_getBlockByHash

> Returns information about a block by hash

## Parameters

<ParamField body="blockHash" type="string" required>
  Hash of the block (32 bytes)
</ParamField>

<ParamField body="fullTransactions" type="boolean" required>
  If `true`, returns full transaction objects; if `false`, returns transaction hashes
</ParamField>

## Returns

<ParamField body="block" type="object">
  Block object or `null`

  <Expandable title="properties">
    <ParamField body="number" type="string">
      Block number (hex)
    </ParamField>

    <ParamField body="hash" type="string">
      Block hash (32 bytes)
    </ParamField>

    <ParamField body="parentHash" type="string">
      Parent block hash
    </ParamField>

    <ParamField body="nonce" type="string">
      PoW nonce (8 bytes)
    </ParamField>

    <ParamField body="sha3Uncles" type="string">
      SHA3 of uncles data
    </ParamField>

    <ParamField body="logsBloom" type="string">
      Bloom filter for logs
    </ParamField>

    <ParamField body="transactionsRoot" type="string">
      Root of transaction trie
    </ParamField>

    <ParamField body="stateRoot" type="string">
      Root of state trie
    </ParamField>

    <ParamField body="receiptsRoot" type="string">
      Root of receipts trie
    </ParamField>

    <ParamField body="miner" type="string">
      Beneficiary address
    </ParamField>

    <ParamField body="difficulty" type="string">
      Block difficulty (hex)
    </ParamField>

    <ParamField body="totalDifficulty" type="string">
      Total chain difficulty (hex)
    </ParamField>

    <ParamField body="extraData" type="string">
      Extra data field
    </ParamField>

    <ParamField body="size" type="string">
      Block size in bytes (hex)
    </ParamField>

    <ParamField body="gasLimit" type="string">
      Max gas allowed (hex)
    </ParamField>

    <ParamField body="gasUsed" type="string">
      Total gas used (hex)
    </ParamField>

    <ParamField body="timestamp" type="string">
      Unix timestamp (hex)
    </ParamField>

    <ParamField body="transactions" type="array">
      Transaction objects or hashes
    </ParamField>

    <ParamField body="uncles" type="array">
      Array of uncle hashes
    </ParamField>

    <ParamField body="baseFeePerGas" type="string">
      Base fee per gas (EIP-1559)
    </ParamField>
  </Expandable>
</ParamField>

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST "https://edge.goldsky.com/standard/evm/1?secret=YOUR_SECRET" \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae", false], "id": 1}'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://edge.goldsky.com/standard/evm/1?secret=YOUR_SECRET', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
    "jsonrpc": "2.0",
    "method": "eth_getBlockByHash",
    "params": [
      "0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae",
      false
    ],
    "id": 1
  })
  });
  const { result } = await response.json();
  console.log(result);
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      'https://edge.goldsky.com/standard/evm/1?secret=YOUR_SECRET',
      json={
    "jsonrpc": "2.0",
    "method": "eth_getBlockByHash",
    "params": [
      "0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae",
      false
    ],
    "id": 1
  }
  )
  print(response.json()['result'])
  ```
</CodeGroup>
