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

# eth_getRawTransactionByBlockNumberAndIndex

> Retrieves the raw transaction data as a hexadecimal string for a transaction at a given index in a block, identified by its block number.

### Parameters

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

<ParamField body="params" type="object" default={["0x10fb78","0x1"]} placeholder="[&#x22;0x10fb78&#x22;,&#x22;0x1&#x22;]" required>
  Parameters: \[blockNumber, transactionIndex]

  Positional parameters for <code>eth\_getRawTransactionByBlockNumberAndIndex</code>:

  <ul>
    <li><code>params\[0]</code>: The block number (hex string or tag like "latest", "finalized", "safe").</li>
    <li><code>params\[1]</code>: The index of the transaction within the block (hexadecimal).</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="string">
  Raw transaction data as a hexadecimal string, including the full signed transaction. Example: <code>"0xf86c018504a817c8008252089471c7656ed63d30e271b7db6f5cb94d10d5c2b7b3880de0b6b3a76400008025a0ba4681b..."</code>.
</ResponseField>

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

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