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

# starknet_getTransactionByBlockIdAndIndex

> Returns the details of the specified transaction.

### Parameters

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

<ParamField body="params" type="object" default={{"block_id":{"block_hash":"0x041b10c45dc3f39372f7b9409261cac9d880c5d75a5bb077d028db20b1bd76c4"},"index":1}} placeholder="{&#x22;block_id&#x22;:{&#x22;block_hash&#x22;:&#x22;0x041b10c45dc3f39372f7b9409261cac9d880c5d75a5bb077d028db20b1bd76c4&#x22;},&#x22;index&#x22;:1}" required>
  Parameters for starknet\_getTransactionByBlockIdAndIndex: \[block\_id].

  Parameters for <code>starknet\_getTransactionByBlockIdAndIndex</code>:

  <ul>
    <li><code>params.block\_id</code>: BlockID object containing hash and number.</li>
    <li><code>params.index</code>: Index of the transaction within the specified block.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  The transaction object.
</ResponseField>

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

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
      "type": "INVOKE",
      "transaction_hash": "0x5fb5b63f0226ef426c81168d0235269398b63aa145ca6a3c47294caa691cfdc",
      "max_fee": "0x1ff973cafa7fff",
      "version": "0x0",
      "signature": [
        "0x5a1c0af2b96c461a9753e383107e2bba1849cdf6029ffaa2b97533ada03789f",
        "0x7261a61b45dcfe48d85fb6a687ed6a888816ba601871679dd32dcb99652de84"
      ],
      "nonce": "0x0",
      "contract_address": "0x7c57808b9cea7130c44aab2f8ca6147b04408943b48c6d8c3c83eb8cfdd8c0b",
      "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad",
      "__truncated": true
    }
  }
  ```
</ResponseExample>
