Returns transaction information by block hash and transaction index.
eth_getTransactionByBlockHashAndIndex JSON-RPC method returns transaction information by block hash and transaction index. This method is useful for retrieving specific transactions when you know the block hash and the transaction’s position within that block.
blockHash (string, required) — The 32-byte hash of the block containing the transactiontransactionIndex (string, required) — The index position of the transaction in the block as a hexadecimal string (0-based)null if the transaction is not found.
hash — The 32-byte transaction hashnonce — Transaction nonce (number of transactions sent by sender)blockHash — Hash of the block containing the transactionblockNumber — Number of the block containing the transactiontransactionIndex — Index of the transaction in the blockfrom — Address of the transaction senderto — Address of the transaction receiver (null for contract creation)value — Value transferred in wei as a hexadecimal stringgas — Gas limit provided by the sendergasPrice — Gas price provided by the sender in weiinput — Data sent along with the transactionv, r, s — ECDSA signature componentstype — Transaction type (0x0 for legacy, 0x1 for EIP-2930, 0x2 for EIP-1559)gasPrice for fee calculationgasPrice for feesmaxFeePerGas and maxPriorityFeePerGaseth_getTransactionByBlockHashAndIndex method is essential for applications that need to:
null. Block hashes provide immutable identification, useful during chain reorganizations.JSON-RPC version
2.0 The RPC method name
eth_getTransactionByBlockHashAndIndex Parameters: [blockHash, transactionIndex]
Request identifier