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

eth_getTransactionByBlockHashAndIndex

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

Parameters

DATA, 32 Bytes - Hash of a block.

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 - The 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 transactions index position in the block. null when its pending.

  • value: QUANTITY - 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