User Story
As a user, I want to be able to view my transaction history on the front end of the wallet so that I can track my past transactions.
Scenario (Acceptance Criteria)
Given (Some Precondition)
- The user logs into the wallet dashboard, the user sees the “Transaction History” icon on the bottom right corner of their screen.
When (I Do Some Action)
-
The user clicks on the ‘Transaction History’.
- The transaction history is displayed in reverse chronological order, with the most recent transaction at the top.
Then (I Expect Some Result)
- The user can easily understand the transaction details, including the token name and amount, and any transaction fees paid.
- The user will know if the transaction was successful or not by the color of the numbers: green for success, red for failed, and yellow for pending.
- The user can see a list of all past transactions for both “Tokens” & “NFTs”, including the date, time, transaction type (send/receive), “token name” or “NFT name”, amount, and transaction status.
- The transaction history is displayed accurately and without error.
- The user can view more detailed information about a specific transaction, such as the transaction hash, on a separate page or modal.
Edge Cases:
- If a user has a large number of transactions, the transaction history page should be designed in a way that is easy to navigate and find the desired transaction.
- If there is an error retrieving the transaction history from the blockchain, the user should be notified of the error and the page should not display incorrect information.
- If a user has made a transaction that has not yet been confirmed on the blockchain, it should be marked as "pending" in the transaction history until it is confirmed.
- If a user has made a transaction that was unsuccessful (e.g. due to insufficient funds), it should be marked as "failed" in the transaction history with an appropriate error message.