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
- typestring
The transaction type such as 0x0 for legacy, 0x1 for EIP-2930, 0x2 for EIP-1559
- chainIdstring
The chain ID of the blockchain encoded as hexadecimal
- noncestring
The number of transactions made by the sender before this one encoded as hexadecimal
- gasPricestring
(Optional) The legacy gas price in wei encoded as hexadecimal, present for legacy type 0x0 transactions and may be omitted for EIP-1559 transactions
- maxFeePerGasstring
(Optional) The max total fee per gas (EIP-1559) encoded as hexadecimal, present for type 0x2 transactions
- maxPriorityFeePerGasstring
(Optional) The max priority fee per gas (EIP-1559) encoded as hexadecimal, present for type 0x2 transactions
- gasstring
The gas provided by the sender encoded as hexadecimal
- tostring | null
The address of the receiver. null when it's a contract creation transaction
- valuestring
The value transferred in wei encoded as hexadecimal
- accessListarray
(Optional) The access list for EIP-2930 or EIP-1559 transactions, may be omitted or an empty array
- inputstring
The data sent along with the transaction
- rstring
The R field of the signature
- sstring
The S field of the signature
- yParitystring
(Optional) The parity bit of the signature used by typed transactions, mutually exclusive with v
- vstring
(Optional) The V field of the signature used by legacy transactions, mutually exclusive with yParity
- hashstring
The hash of the transaction
- blockHashstring | null
The hash of the block containing this transaction, null when it's a pending transaction
- blockNumberstring | null
The block number containing this transaction, null when it's a pending transaction
- transactionIndexstring | null
The index position of this transaction in the block, null when it's a pending transaction
- fromstring
The address of the sender
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"type": "0x0",6"chainId": "0x2611",7"nonce": "0x21",8"gasPrice": "0x47868c08",9"gas": "0x8b660",10"to": "0xe1844c5d63a9543023008d332bd3d2e6f1fe1043",11"value": "0x0",12"input": "0x0894edf10000000000000000000000000000000000000000000000000000000000000040b3bbc654ddb7cedf11959fdd74bbbd6d25d744063afa2225a3b9d3967b5f64ad0000000000000000000000000000000000000000000000000000000000000051010000000000000003000075950000000000000000000000005d3a1ff2b6bab83b63cd9ad0787074081a52ef34000076af0000000000000000000000005d3a1ff2b6bab83b63cd9ad0787074081a52ef34000000000000000000000000000000",13"r": "0xf9b78f608c0d8cebc7c00a09848fbdf9917e69712dcfb198835d07986018887f",14"s": "0x5fc5c63512ed7a029f14e5c72f42f5bfb96f547aab382cbc1346ec7e01466962",15"v": "0x4c46",16"hash": "0x06c5343a6ec751c7bfc6117bad86603f3250f621de80ef648f8b99d3645862bd",17"blockHash": "0x1d16a52d4794f9199b5abc67213c8564518419638766d12f275aba08e4f107c7",18"blockNumber": "0xb9f70",19"transactionIndex": "0x0",20"from": "0xe93685f3bba03016f02bd1828badd6195988d950"21}22}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"type": "0x0",6"chainId": "0x2611",7"nonce": "0x21",8"gasPrice": "0x47868c08",9"gas": "0x8b660",10"to": "0xe1844c5d63a9543023008d332bd3d2e6f1fe1043",11"value": "0x0",12"input": "0x0894edf10000000000000000000000000000000000000000000000000000000000000040b3bbc654ddb7cedf11959fdd74bbbd6d25d744063afa2225a3b9d3967b5f64ad0000000000000000000000000000000000000000000000000000000000000051010000000000000003000075950000000000000000000000005d3a1ff2b6bab83b63cd9ad0787074081a52ef34000076af0000000000000000000000005d3a1ff2b6bab83b63cd9ad0787074081a52ef34000000000000000000000000000000",13"r": "0xf9b78f608c0d8cebc7c00a09848fbdf9917e69712dcfb198835d07986018887f",14"s": "0x5fc5c63512ed7a029f14e5c72f42f5bfb96f547aab382cbc1346ec7e01466962",15"v": "0x4c46",16"hash": "0x06c5343a6ec751c7bfc6117bad86603f3250f621de80ef648f8b99d3645862bd",17"blockHash": "0x1d16a52d4794f9199b5abc67213c8564518419638766d12f275aba08e4f107c7",18"blockNumber": "0xb9f70",19"transactionIndex": "0x0",20"from": "0xe93685f3bba03016f02bd1828badd6195988d950"21}22}