Parameters
- blockHashstringREQUIRED
The block hash
- indexstringREQUIRED
An integer of the transaction index position encoded as a hexadecimal
Returns
- objectobject
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
Maximum total fee per gas in wei encoded as a hexadecimal string (EIP-1559)
- maxPriorityFeePerGasstring
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)
- accessListarray
Optional access list for EIP-2930/1559 transactions
- addressstring
Address included in the access list
- storageKeysarray
Array of 32-byte storage keys accessed by the address
- chainIdstring
Chain ID encoded as a hexadecimal string
- vstring
Recovery identifier or y-parity value (0x0 or 0x1) for the signature
- yParitystring
The parity bit of the transaction signature encoded as a hexadecimal string
- rstring
R component of the transaction signature
- sstring
S component of the transaction signature
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0xb0df38c850b7233739baf3981174220ebd30c71a7e9d838d0971123551315a8c",6"blockNumber": "0x2b835e",7"from": "0x8afdf3cb67d1ff5abfd6f6c137d9e8bcff647593",8"gas": "0xf5920",9"gasPrice": "0x400746fe00",10"maxFeePerGas": "0x400746fe00",11"maxPriorityFeePerGas": "0x400746fe00",12"hash": "0xd6f3d4564a11f41c48cafd63803922539b0857c132ba3c23c683afaa74edc277",13"input": "0xd9facbed00000000000000000000000000000000000000000006f0dad1de3749fdf69b6200000000000000000000000000000000000000000000000000000000000000a00000000000000000000000008afdf3cb67d1ff5abfd6f6c137d9e8bcff647593000000000000000000000000000000000000000000000000000000006900ce83000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000007c21a90e3ecd3215d16c3bbe76a491f8f792d4bf000000000000000000000000c2af05cfdc44b8b57b0cfacfe6c0c1102069d3e60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a9833699fbb0e3759a3c381deb43a61df99e8544",14"nonce": "0xa",15"to": "0x422716760d83f89186013d9cc7bfcc482d3e04d2",16"transactionIndex": "0x0",17"value": "0x4563918244f40000",18"type": "0x2",19"accessList": [],20"chainId": "0x15f900",21"v": "0x1",22"r": "0xd81f5b9eb89ba971e12aba4b6e07511be282254f3329ec1abd5c8dacd212a753",23"s": "0x4f06866990970d79c56fb408eb506b186b51b66dfd507dd616f4404b423a1687",24"yParity": "0x0"25}26}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0xb0df38c850b7233739baf3981174220ebd30c71a7e9d838d0971123551315a8c",6"blockNumber": "0x2b835e",7"from": "0x8afdf3cb67d1ff5abfd6f6c137d9e8bcff647593",8"gas": "0xf5920",9"gasPrice": "0x400746fe00",10"maxFeePerGas": "0x400746fe00",11"maxPriorityFeePerGas": "0x400746fe00",12"hash": "0xd6f3d4564a11f41c48cafd63803922539b0857c132ba3c23c683afaa74edc277",13"input": "0xd9facbed00000000000000000000000000000000000000000006f0dad1de3749fdf69b6200000000000000000000000000000000000000000000000000000000000000a00000000000000000000000008afdf3cb67d1ff5abfd6f6c137d9e8bcff647593000000000000000000000000000000000000000000000000000000006900ce83000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000007c21a90e3ecd3215d16c3bbe76a491f8f792d4bf000000000000000000000000c2af05cfdc44b8b57b0cfacfe6c0c1102069d3e60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a9833699fbb0e3759a3c381deb43a61df99e8544",14"nonce": "0xa",15"to": "0x422716760d83f89186013d9cc7bfcc482d3e04d2",16"transactionIndex": "0x0",17"value": "0x4563918244f40000",18"type": "0x2",19"accessList": [],20"chainId": "0x15f900",21"v": "0x1",22"r": "0xd81f5b9eb89ba971e12aba4b6e07511be282254f3329ec1abd5c8dacd212a753",23"s": "0x4f06866990970d79c56fb408eb506b186b51b66dfd507dd616f4404b423a1687",24"yParity": "0x0"25}26}