Retrieves specific token transactions by hash for the SparkWallet.
Method Signature
async queryTokenTransactionsByTxHashes(
tokenTransactionHashes: string[]
): Promise<QueryTokenTransactionsResponse>
Parameters
Array of token transaction hashes (must contain at least one hash)
Returns
response
QueryTokenTransactionsResponse
required
Token transactions response object
response.tokenTransactionsWithStatus
TokenTransactionWithStatus[]
required
Transactions matching the requested hashes
Example
const response = await wallet.queryTokenTransactionsByTxHashes([
"6f0f...",
"78ab...",
]);
for (const tx of response.tokenTransactionsWithStatus) {
console.log(tx.status, tx.tokenTransactionHash);
}