Parameters
- blockNumberstringREQUIRED
The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators. safe and finalized are only supported on Ethereum, Gnosis, Arbitrum, Arbitrum Nova, and Avalanche C-chain
- 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 | 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 log 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 | null
The address of the receiver. null when it's a contract creation transaction
- transactionIndexstring | null
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
- 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
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0x8f9ecad637559914862de6821bd352d6ac7744d130085d4c5b3d821786aab3ac",6"blockNumber": "0xc5043f",7"from": "0x1eedcd7c2334463c51b4af75c96b983be7ed4d39",8"gas": "0xd5d2f",9"gasPrice": "0x14c30896",10"hash": "0x39229c9c973b7675086e4404c30fd23b4130bdb33cef8f799ac0450e2489ba08",11"input": "0x0a0e28d400000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000046a0000000000000000000000000000000000000000000000000000000000000469000000000000000000000000000000000000000000000000000000000000046b0000000000000000000000000000000000000000000000000000000000005ea2",12"nonce": "0x324",13"to": "0x737eaf14061fe68f04ff4ca8205acf538555fcc8",14"transactionIndex": "0x0",15"value": "0x0",16"type": "0x78",17"v": "0x14985",18"r": "0x64445cd16ea28f39f5b94d3730147f4f0fde0dd549adfc9c80c8948a3679e878",19"s": "0x39851deff11a344c3fd67c022bcaf9711a5c8eae60f81d47a977253df9e95e39"20}21}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0x8f9ecad637559914862de6821bd352d6ac7744d130085d4c5b3d821786aab3ac",6"blockNumber": "0xc5043f",7"from": "0x1eedcd7c2334463c51b4af75c96b983be7ed4d39",8"gas": "0xd5d2f",9"gasPrice": "0x14c30896",10"hash": "0x39229c9c973b7675086e4404c30fd23b4130bdb33cef8f799ac0450e2489ba08",11"input": "0x0a0e28d400000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000046a0000000000000000000000000000000000000000000000000000000000000469000000000000000000000000000000000000000000000000000000000000046b0000000000000000000000000000000000000000000000000000000000005ea2",12"nonce": "0x324",13"to": "0x737eaf14061fe68f04ff4ca8205acf538555fcc8",14"transactionIndex": "0x0",15"value": "0x0",16"type": "0x78",17"v": "0x14985",18"r": "0x64445cd16ea28f39f5b94d3730147f4f0fde0dd549adfc9c80c8948a3679e878",19"s": "0x39851deff11a344c3fd67c022bcaf9711a5c8eae60f81d47a977253df9e95e39"20}21}