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:
- hashstring
The hash of the transaction
- noncestring
The number of transactions made by the sender before this one encoded as hexadecimal
- blockHashstring | null
The hash of the block where this log was in. null when it's a pending log
- blockNumberstring | null
The block number where this transaction was in, encoded as a hexadecimal. null when it is a pending transaction
- transactionIndexstring | null
The integer of the transaction's index position that the log was created from. null when it's a pending log
- fromstring
The address of the sender
- tostring | null
The address of the receiver. null when it's a contract creation transaction
- valuestring
The value transferred in wei encoded as hexadecimal
- gasPricestring
The gas price provided by the sender in wei, encoded as hexadecimal
- gasstring
The gas provided by the sender, encoded as hexadecimal
- inputstring
The data sent along with the transaction
- vstring
The standardized V field of the signature
- rstring
The R field of the signature
- sstring
The S field of the signature
- typestring
The transaction type
- maxFeePerGasstring
The maximum fee per gas set in the transaction
- maxPriorityFeePerGasstring
The maximum priority gas fee set in the transaction
- accessListarray
(Optional) A list of addresses and storage keys that the transaction plans to access
- chainIdstring
The chain id of the transaction, if any
- l1BatchNumberstring
The hexadecimal number representing the specific L1 batch for a rollup transaction.
- l1BatchTxIndexstring
The hexadecimal index of the transaction within the corresponding L1 batch
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"hash": "0x65aac8560cdb6a1bfae96fd8c6d801cdc9be74244dea8388c4a24f16a5475c23",6"nonce": "0x10a02",7"blockHash": "0x04d335186aa661f8470869ebdd3a23201ef52efc0d219de61fdce2b587f82e47",8"blockNumber": "0xa129",9"transactionIndex": "0x0",10"from": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749",11"to": "0xd07671b9c43f6c93020062d3fcb18263c7d6e686",12"value": "0x0",13"gasPrice": "0x33c8d60",14"gas": "0x3b5a6",15"input": "0x3161b7f60000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000a100000000000000000000000000000000000000000000000000216947d6aee03000000000000000000000000000000000000000000000000000000012c75d8bb30000000000000000000000000000000000000000000000000000000000000010",16"v": "0x158e",17"r": "0x4e26fe3d2b3bbb83bd176b70fd35212b1cb253f83512deb6078bef33bf92d61b",18"s": "0x5b18b663de1f90f254374278283fa5dab946b31c90b99a29b451a66095d62f93",19"type": "0x0",20"maxFeePerGas": "0x33c8d60",21"maxPriorityFeePerGas": "0x33c8d60",22"chainId": "0xab5",23"l1BatchNumber": "0x7e",24"l1BatchTxIndex": "0x7f"25}26}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"hash": "0x65aac8560cdb6a1bfae96fd8c6d801cdc9be74244dea8388c4a24f16a5475c23",6"nonce": "0x10a02",7"blockHash": "0x04d335186aa661f8470869ebdd3a23201ef52efc0d219de61fdce2b587f82e47",8"blockNumber": "0xa129",9"transactionIndex": "0x0",10"from": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749",11"to": "0xd07671b9c43f6c93020062d3fcb18263c7d6e686",12"value": "0x0",13"gasPrice": "0x33c8d60",14"gas": "0x3b5a6",15"input": "0x3161b7f60000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000a100000000000000000000000000000000000000000000000000216947d6aee03000000000000000000000000000000000000000000000000000000012c75d8bb30000000000000000000000000000000000000000000000000000000000000010",16"v": "0x158e",17"r": "0x4e26fe3d2b3bbb83bd176b70fd35212b1cb253f83512deb6078bef33bf92d61b",18"s": "0x5b18b663de1f90f254374278283fa5dab946b31c90b99a29b451a66095d62f93",19"type": "0x0",20"maxFeePerGas": "0x33c8d60",21"maxPriorityFeePerGas": "0x33c8d60",22"chainId": "0xab5",23"l1BatchNumber": "0x7e",24"l1BatchTxIndex": "0x7f"25}26}