Retrieves a specific user transaction by ID.
The ID of the transaction to be retrieved.
A promise that resolves to the specified user transaction.
If the HTTP request fails.
// Example usage:
transactionHistoryService.getTransaction(transactionId)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(`Error fetching transaction history.`);
});
Retrieves a list of user transactions by accountId.
Filter parameters.
A promise that resolves to a transactions list.
If the HTTP request fails.
// Example usage:
transactionHistoryService.getTransactionHistory({accountId})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(`Error fetching transaction history.`);
});
Static
getRetrieves the singleton instance of the TransactionHistoryService class.
The singleton instance of the TransactionHistoryService class.
// Usage:
const transactionHistoryService = TransactionHistoryService.getInstance();
Service class for managing transaction history related operations.