Parameters
- blockHashstringREQUIRED
The block hash
- indexstringREQUIRED
An integer of the transaction index position encoded as a hexadecimal
Returns
- objectobject | null
The transaction object, or null if no transaction is found
- blockHashstring | null
The hash of the block containing this transaction. null if the transaction is pending
- blockNumberstring | null
The block number containing this transaction, encoded as hexadecimal. null if the transaction is pending
- blockTimestampstring
The timestamp of the block where this transaction was included, encoded as hexadecimal
- fromstring
The sender address
- gasstring
The gas limit provided by the sender, encoded as hexadecimal
- gasPricestring
(Optional) The gas price in wei, encoded as hexadecimal
- maxFeePerGasstring
(Optional) The maximum total fee per gas the sender is willing to pay, encoded as hexadecimal
- maxPriorityFeePerGasstring
(Optional) The maximum priority fee per gas the sender is willing to pay, encoded as hexadecimal
- hashstring
The transaction hash
- inputstring
The transaction input data
- noncestring
The number of transactions sent from the sender before this one, encoded as hexadecimal
- tostring | null
The recipient address. null if this is a contract creation transaction
- transactionIndexstring | null
The transaction index within the block, encoded as hexadecimal. null if the transaction is pending
- valuestring
The value transferred in wei, encoded as hexadecimal
- typestring
The transaction type, encoded as hexadecimal
- accessListarray
(Optional) The EIP-2930 access list
- chainIdstring
The chain ID, encoded as hexadecimal
- vstring
The signature recovery parameter, encoded as hexadecimal
- rstring
The R component of the signature
- sstring
The S component of the signature
- yParitystring
(Optional) The signature y-parity value, encoded as hexadecimal