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 | 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, encoded as hexadecimal. null when it's a pending log
- valuestring
The value transferred in wei encoded as hexadecimal
- typestring
The transaction type
- accessListarray
A list of addresses and storage keys that the transaction plans to access
- chainIdstring
The chain id
- vstring
The standardized V field of the signature
- rstring
The R field of the signature
- sstring
The S field of the signature
- yParitystring
Coordinate of key used in signature
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0x4572addb91153d72face1408f5c4fac7ce55b43162d543a70d43012d7b489ffd",6"blockNumber": "0x79d6d",7"from": "0x7492933bb94f79df306feb86a4ed1927a0a51b31",8"gas": "0x5208",9"gasPrice": "0xf4247",10"maxFeePerGas": "0xf4271",11"maxPriorityFeePerGas": "0xf4240",12"hash": "0x72c46442b29c26e080479c2432b219ec955609cf64177c882b36f03fb20210a8",13"input": "0x",14"nonce": "0x12",15"to": "0x9386cdccbf11335587f2c769bb88e6e30685945e",16"transactionIndex": "0x0",17"value": "0x2386f26fc10000",18"type": "0x2",19"accessList": [],20"chainId": "0x5c8",21"v": "0x0",22"r": "0xfd92ec6cbeeb7f595e939034dae81ca2cc20462bcdc2c05ae7b478680ad4ee8b",23"s": "0x811911a70b0571b524de4ce30865a11193d1a8eddecdbe71f7417055e12bafe",24"yParity": "0x0"25}26}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"blockHash": "0x4572addb91153d72face1408f5c4fac7ce55b43162d543a70d43012d7b489ffd",6"blockNumber": "0x79d6d",7"from": "0x7492933bb94f79df306feb86a4ed1927a0a51b31",8"gas": "0x5208",9"gasPrice": "0xf4247",10"maxFeePerGas": "0xf4271",11"maxPriorityFeePerGas": "0xf4240",12"hash": "0x72c46442b29c26e080479c2432b219ec955609cf64177c882b36f03fb20210a8",13"input": "0x",14"nonce": "0x12",15"to": "0x9386cdccbf11335587f2c769bb88e6e30685945e",16"transactionIndex": "0x0",17"value": "0x2386f26fc10000",18"type": "0x2",19"accessList": [],20"chainId": "0x5c8",21"v": "0x0",22"r": "0xfd92ec6cbeeb7f595e939034dae81ca2cc20462bcdc2c05ae7b478680ad4ee8b",23"s": "0x811911a70b0571b524de4ce30865a11193d1a8eddecdbe71f7417055e12bafe",24"yParity": "0x0"25}26}