Parameters
- blockHashstringREQUIRED
The block hash
- indexstringREQUIRED
An integer of the transaction index position encoded as a hexadecimal
Returns
- objectobject | null
The transaction response object, or null if no transaction is found
- blockHashstring
Hash of the block that includes this transaction, null if pending
- blockNumberstring
Block number where this transaction was included encoded as a hexadecimal string, null if pending
- fromstring
Address of the transaction sender
- gasstring
Gas limit provided by the sender encoded as a hexadecimal string
- gasPricestring
Gas price provided by the sender in wei encoded as a hexadecimal string; may appear alongside EIP-1559 fee fields
- maxFeePerGasstring
(Optional) Maximum total fee per gas in wei encoded as a hexadecimal string (EIP-1559)
- maxPriorityFeePerGasstring
(Optional) Maximum priority fee per gas in wei encoded as a hexadecimal string (EIP-1559)
- hashstring
Hash of the transaction
- inputstring
Hex-encoded calldata sent with the transaction
- noncestring
Number of transactions sent by the sender before this one encoded as a hexadecimal string
- tostring
Receiver address, null if the transaction creates a contract
- transactionIndexstring
Index position of the transaction within the block encoded as a hexadecimal string, null if pending
- valuestring
Amount of wei transferred encoded as a hexadecimal string
- typestring
The transaction type as a hexadecimal string (e.g., 0x2 for EIP-1559)
- chainIdstring
Chain ID encoded as a hexadecimal string
- vstring
Recovery identifier or y-parity value (0x0 or 0x1) for the signature
- rstring
R component of the transaction signature
- sstring
S component of the transaction signature
1{2"jsonrpc": "2.0",3"id": 1,4"result": null5}
1{2"jsonrpc": "2.0",3"id": 1,4"result": null5}