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

# ots_getBlockDetailsByHash

> Given a block hash, return its data. Similar to the standard eth_getBlockByNumber/Hash method, but optimized.

### Parameters

<ParamField query="chainId" type="string" default="10" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="ots_getBlockDetailsByHash" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={["0x1"]} placeholder="[&#x22;0x1&#x22;]" required>
  The parameters for ots\_getBlockDetailsByHash: \[blockHash].

  Positional parameters for <code>ots\_getBlockDetailsByHash</code>:

  <ul>
    <li><code>params\[]</code>: 32 Bytes - hash of the block where this transaction was included. Null when pending.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  Modified block object with additional fields and stripped transaction list.

  <Expandable title="properties">
    <ResponseField name="block" type="object">
      Block data (similar to eth\_getBlockByNumber/Hash but modified).

      <Expandable title="properties">
        <ResponseField name="number" type="string">
          Block number (hex quantity) or null if pending.
        </ResponseField>

        <ResponseField name="hash" type="string">
          Block hash or null if pending.
        </ResponseField>

        <ResponseField name="parentHash" type="string" />

        <ResponseField name="nonce" type="string" />

        <ResponseField name="sha3Uncles" type="string" />

        <ResponseField name="logsBloom" type="string">
          Always null in this format to reduce bandwidth.
        </ResponseField>

        <ResponseField name="transactionsRoot" type="string" />

        <ResponseField name="stateRoot" type="string" />

        <ResponseField name="receiptsRoot" type="string" />

        <ResponseField name="miner" type="string" />

        <ResponseField name="difficulty" type="string" />

        <ResponseField name="totalDifficulty" type="string" />

        <ResponseField name="extraData" type="string" />

        <ResponseField name="size" type="string" />

        <ResponseField name="gasLimit" type="string" />

        <ResponseField name="gasUsed" type="string" />

        <ResponseField name="timestamp" type="string" />

        <ResponseField name="uncles" type="array">
          <Expandable title="items">
            <ResponseField name="items[]" type="string" />
          </Expandable>
        </ResponseField>

        <ResponseField name="baseFeePerGas" type="string">
          Base fee per gas (EIP-1559 blocks only).
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="transactionCount" type="string">
      Number of transactions in the block (as a hex quantity).
    </ResponseField>

    <ResponseField name="issuance" type="object">
      Issuance details for the block.

      <Expandable title="properties">
        <ResponseField name="blockReward" type="string">
          Block reward issued to the miner.
        </ResponseField>

        <ResponseField name="uncleReward" type="string">
          Total uncle rewards.
        </ResponseField>

        <ResponseField name="issuance" type="string">
          Total ETH issued (blockReward + uncleReward).
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="totalFees" type="string">
      Total fees paid by senders in this block (includes base fee; not all fees go to miner).
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=10 \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "ots_getBlockDetailsByHash",
      "params": [
        "0x1"
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {}
  }
  ```
</ResponseExample>
