For the complete documentation index, see llms.txt. This page is also available as Markdown.

eth_getTransactionByBlockNumberAndIndex

Returns information about a transaction by block number and transaction index position.

Parameters

QUANTITY|TAG - Hexadecimal block number, or the string "earliest", "latest", "safe" or "finalized", as in the default block parameter.

QUANTITY - Hexadecimal of the transaction index position.

Returns

Object - A transaction object, or null when no transaction was found:

  • blockHash: DATA, 32 Bytes - Hash of the block where this transaction was in. null when its pending.

  • blockNumber: QUANTITY - Hexadecimal Block number where this transaction was in. null when its pending.

  • from: DATA, 20 Bytes - Address of the sender.

  • gas: QUANTITY - Hexadecimal gas provided by the sender.

  • gasPrice: QUANTITY - Hexadecimal gas price provided by the sender in Wei.

  • hash: DATA, 32 Bytes - Hash of the transaction.

  • input: DATA - The data send along with the transaction.

  • nonce: QUANTITY - Hexadecimal number of transactions made by the sender prior to this one.

  • to: DATA, 20 Bytes - Address of the receiver. null when its a contract creation transaction.

  • transactionIndex: QUANTITY - Hexadecimal of the transaction's index position in the block. null when its pending.

  • value: QUANTITY - Hexadecimal value transferred in Wei.

  • v: QUANTITY - ECDSA recovery id

  • r: QUANTITY - ECDSA signature r

  • s: QUANTITY - ECDSA signature s

Example

Request

Result

source

Last updated