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
- 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 prior to 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
- yParitystring
The transaction y parity value encoded as hexadecimal
- 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": "0xd3e6521d57725c622d6e91ccc7be6afc22a7099f5ba50ec083f6a2a12c8b1ada",6"blockNumber": "0xcec",7"blockTimestamp": "0x69d02cc7",8"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",9"gas": "0xf4240",10"gasPrice": "0x0",11"hash": "0x648d8a685c167b2708cb2db5162734f064ee5230fca923b78f9ba4947bbe4b47",12"input": "0x440a5e20000a6fe000000000000000000000000200000000667b14ab000000000133c7aa000000000000000000000000000000000000000000000000000000019197fa9b00000000000000000000000000000000000000000000000000000000000000017ef8c27272ef85155b2e0e213aaa3b8a75835121108ea36f665231f59af2ae65000000000000000000000000dbbe3d8c2d2b22a2611c5a94a9a12c2fcd49eb29",13"nonce": "0xcec",14"to": "0x4200000000000000000000000000000000000015",15"transactionIndex": "0x0",16"value": "0x0",17"type": "0x7e",18"v": "0x0",19"r": "0x0",20"s": "0x0",21"sourceHash": "0x7ff1c22e03d9327a92a7d61828645b9794a17c95a73d174332c005bfeffa14a5",22"mint": "0x0",23"depositReceiptVersion": "0x1"24}25}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0xd3e6521d57725c622d6e91ccc7be6afc22a7099f5ba50ec083f6a2a12c8b1ada",6"blockNumber": "0xcec",7"blockTimestamp": "0x69d02cc7",8"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",9"gas": "0xf4240",10"gasPrice": "0x0",11"hash": "0x648d8a685c167b2708cb2db5162734f064ee5230fca923b78f9ba4947bbe4b47",12"input": "0x440a5e20000a6fe000000000000000000000000200000000667b14ab000000000133c7aa000000000000000000000000000000000000000000000000000000019197fa9b00000000000000000000000000000000000000000000000000000000000000017ef8c27272ef85155b2e0e213aaa3b8a75835121108ea36f665231f59af2ae65000000000000000000000000dbbe3d8c2d2b22a2611c5a94a9a12c2fcd49eb29",13"nonce": "0xcec",14"to": "0x4200000000000000000000000000000000000015",15"transactionIndex": "0x0",16"value": "0x0",17"type": "0x7e",18"v": "0x0",19"r": "0x0",20"s": "0x0",21"sourceHash": "0x7ff1c22e03d9327a92a7d61828645b9794a17c95a73d174332c005bfeffa14a5",22"mint": "0x0",23"depositReceiptVersion": "0x1"24}25}