---
title: "Get Transaction By Block Number And Index"
method: POST
path: "/node/rest/eth_getTransactionByBlockNumberAndIndex"
tags: ["node"]
---

# Get Transaction By Block Number And Index

`POST /node/rest/eth_getTransactionByBlockNumberAndIndex`

## Request

- Base URL: `https://api.watchdata.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.watchdata.io/node/rest/eth_getTransactionByBlockNumberAndIndex`
- Auth: none declared

## Request body

- BlockNumberAndIndexIn
  - `block_number` union, required
    - integer
    - string
  - `trx_index` integer, required

## Response `200`

Successful Response

- Transaction
  - `hash` string, required
  - `nonce` string, nullable
  - `transactionIndex` string, required
  - `from` string, required
  - `to` string, nullable
  - `value` string, nullable
  - `gasPrice` string, nullable
  - `gas` string, nullable
  - `maxFeePerGas` string, nullable
  - `maxPriorityFeePerGas` string, nullable
  - `chainId` string, nullable
  - `accessList` unknown[], nullable
    - unknown
  - `blockHash` string, required
  - `blockNumber` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/watchdata/apis/watchdata-api.md) - [All operations](https://skmtc.dev/watchdata/apis/watchdata-api/llms.txt) - [OpenAPI document](https://skmtc.dev/watchdata/apis/watchdata-api/revisions/8ce15acc50a3?raw)
