To use the eth_getTransactionByHash method on the Avalanche C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.
Parameters
- hashstringREQUIRED
The hash of a transaction
Returns
- objectobject
The transaction response object, or null if no transaction is found:
- blockHashstring
The hash of the block where this transaction was in. Null when it's a pending log
- blockNumberstring
The block number where this transaction was in. Null when it's a pending log
- fromstring
The address of the sender
- gasstring
The gas provided by the sender, encoded as hexadecimal
- gasPricestring
The gas price provided by the sender in wei encoded as hexadecimal
- maxFeePerGasstring
The maximum fee per gas set in the transaction
- maxPriorityFeePerGasstring
The maximum priority gas fee set in the transaction
- hashstring
The hash of the transaction
- inputstring
The data sent along with the transaction
- noncestring
The number of transactions made by the sender prior to this one encoded as hexadecimal
- tostring
The address of the receiver. Null when its a contract creation transaction
- transactionIndexstring
The integer of the transaction's index position that the log was created from. Null when it's a pending log
- valuestring
The value transferred in wei encoded as hexadecimal
- typestring
The transaction type
- accessListarray
A list of addresses and storage keys that the transaction plans to access
- chainIdstring
The chain ID of the transaction, if any
- vstring
The standardized V field of the signature
- rstring
The R field of the signature
- sstring
The S field of the signature