Parameters
- blockNumberstringREQUIRED
The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators
- indexstringREQUIRED
An integer of the transaction index position encoded as a hexadecimal
Returns
- resultobject
The transaction object, or null if no transaction is found
- blockHashstring
The hash of the block containing this transaction. null if the transaction is pending
- blockNumberstring
The block number containing this transaction, encoded as hexadecimal. null if the transaction is pending
- fromstring
The sender address
- gasstring
The gas limit provided by the sender, encoded as hexadecimal
- gasPricestring
The gas price in wei, 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
The recipient address. null if this is a contract creation transaction
- transactionIndexstring
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
- 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