> ## 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_getBlockTransactions

> Gets paginated transaction data for a certain block. Think of an optimized eth_getBlockBy* + eth_getTransactionReceipt.

### Parameters

<ParamField query="chainId" type="string" default="1" 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_getBlockTransactions" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={["0x1"]} placeholder="[&#x22;0x1&#x22;]" required>
  Parameters for ots\_getBlockTransactions: \[defaultBlock].

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

  <ul>
    <li><code>params\[0]</code>: Block identifier. Can be an integer block number or a string tag: "latest", "earliest", or "pending".</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  Block object with full transactions and their receipts, optimized for pagination. Includes truncated input data and simplified receipts.

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

    <ResponseField name="hash" type="string">
      Hash of the block.
    </ResponseField>

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

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

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

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

    <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="baseFeePerGas" type="string" />

    <ResponseField name="transactions" type="array">
      List of transaction bodies with truncated input fields.

      <Expandable title="items">
        <ResponseField name="items[]" type="object">
          <Expandable title="properties">
            <ResponseField name="hash" type="string" />

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

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

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

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

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

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

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

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

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

            <ResponseField name="input" type="string">
              Only the 4-byte method selector is included.
            </ResponseField>
          </Expandable>
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="receipts" type="array">
      List of simplified receipts matching the order of the transactions.

      <Expandable title="items">
        <ResponseField name="items[]" type="object">
          <Expandable title="properties">
            <ResponseField name="transactionHash" type="string" />

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

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

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

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

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

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

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

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

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

            <ResponseField name="logs" type="string">
              Logs are omitted to save bandwidth.
            </ResponseField>

            <ResponseField name="logsBloom" type="string">
              LogsBloom is omitted to save bandwidth.
            </ResponseField>
          </Expandable>
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

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

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