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
- blockTimestampstring
The timestamp of the block containing this transaction encoded as a hexadecimal string
- 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
- 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": "0x8723b3ce416b0491a757ca648fd4f714f341f0459ab0f053c5f194589ac03aef",6"blockNumber": "0xcec",7"blockTimestamp": "0x6620f22f",8"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",9"gas": "0xf4240",10"gasPrice": "0x0",11"hash": "0x79d6c2d313dd8d8af0d3953ed4b6894e5a487bd4084d48dc7c2a0bffe5e47876",12"input": "0x440a5e20000f42400000000000000000000000000000000065f434b0000000000053c81800000000000000000000000000000000000000000000000000000019f11bc96100000000000000000000000000000000000000000000000000000023ad68e864818a621ca966be21eefdbc24710b8d774d24cc4ce16e5af2d0a288425b2540f300000000000000000000000090bb84339856530192cd002533cd7f1290fc5142",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": "0xf076fece5f8551ca40f20c17c20c47968c2c5a972a5e7328d429216d42b6dd79",22"mint": "0x0",23"depositReceiptVersion": "0x1"24}25}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0x8723b3ce416b0491a757ca648fd4f714f341f0459ab0f053c5f194589ac03aef",6"blockNumber": "0xcec",7"blockTimestamp": "0x6620f22f",8"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",9"gas": "0xf4240",10"gasPrice": "0x0",11"hash": "0x79d6c2d313dd8d8af0d3953ed4b6894e5a487bd4084d48dc7c2a0bffe5e47876",12"input": "0x440a5e20000f42400000000000000000000000000000000065f434b0000000000053c81800000000000000000000000000000000000000000000000000000019f11bc96100000000000000000000000000000000000000000000000000000023ad68e864818a621ca966be21eefdbc24710b8d774d24cc4ce16e5af2d0a288425b2540f300000000000000000000000090bb84339856530192cd002533cd7f1290fc5142",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": "0xf076fece5f8551ca40f20c17c20c47968c2c5a972a5e7328d429216d42b6dd79",22"mint": "0x0",23"depositReceiptVersion": "0x1"24}25}