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
The transaction response object, or null if no transaction is found:
- blockHashstring
The hash of the block where this log was in. null when it's a pending log
- blockNumberstring
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
- hashstring
The hash of the transaction
- inputstring
The data sent along with the transaction
- noncestring
The number of transactions made by the sender before this one encoded as hexadecimal
- tostring
The address of the receiver. null when it's a contract creation transaction
- transactionIndexstring
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
- vstring
The standardized V field of the signature
- rstring
The R field of the signature
- sstring
The S field of the signature
- sourceHashstring
The hash of the source transaction that created this transaction
- mintstring
The minting event associated with the transaction
- depositReceiptVersionstring
The version of a deposit receipt
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0xf8b34d388254c6ff9a3bb178ec5f89dcda13b078ba3b02dcf96c699db560f9b7",6"blockNumber": "0x1bed05",7"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",8"gas": "0xf4240",9"gasPrice": "0x0",10"hash": "0x00a0a7500a26ef0191512b140fc76380c4c7b3bb7bd9f46f84e742c4fa8a2fb4",11"input": "0x440a5e20000f424000000000000000000000000000000000682dbeb3000000000157cc15000000000000000000000000000000000000000000000000000000002fe797cc00000000000000000000000000000000000000000000000000000000000000017efcda0a673ec08ac5f11eb6fb4bb4fe57d430f5daa78714adee69c585a93d0500000000000000000000000065115c6d23274e0a29a63b69130efe901aa52e7a",12"nonce": "0x1bed05",13"to": "0x4200000000000000000000000000000000000015",14"transactionIndex": "0x0",15"value": "0x0",16"type": "0x7e",17"v": "0x0",18"r": "0x0",19"s": "0x0",20"sourceHash": "0x8a93334f4dfe8e9d0f0dc114d77f9dc9195ecfa88de438a4941532951dd585d5",21"mint": "0x0",22"depositReceiptVersion": "0x1"23}24}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0xf8b34d388254c6ff9a3bb178ec5f89dcda13b078ba3b02dcf96c699db560f9b7",6"blockNumber": "0x1bed05",7"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",8"gas": "0xf4240",9"gasPrice": "0x0",10"hash": "0x00a0a7500a26ef0191512b140fc76380c4c7b3bb7bd9f46f84e742c4fa8a2fb4",11"input": "0x440a5e20000f424000000000000000000000000000000000682dbeb3000000000157cc15000000000000000000000000000000000000000000000000000000002fe797cc00000000000000000000000000000000000000000000000000000000000000017efcda0a673ec08ac5f11eb6fb4bb4fe57d430f5daa78714adee69c585a93d0500000000000000000000000065115c6d23274e0a29a63b69130efe901aa52e7a",12"nonce": "0x1bed05",13"to": "0x4200000000000000000000000000000000000015",14"transactionIndex": "0x0",15"value": "0x0",16"type": "0x7e",17"v": "0x0",18"r": "0x0",19"s": "0x0",20"sourceHash": "0x8a93334f4dfe8e9d0f0dc114d77f9dc9195ecfa88de438a4941532951dd585d5",21"mint": "0x0",22"depositReceiptVersion": "0x1"23}24}