feat: wallet transaction history with Stellar Horizon API#126
Open
victorjzq wants to merge 1 commit intosorosave-protocol:mainfrom
Open
feat: wallet transaction history with Stellar Horizon API#126victorjzq wants to merge 1 commit intosorosave-protocol:mainfrom
victorjzq wants to merge 1 commit intosorosave-protocol:mainfrom
Conversation
- Add src/lib/horizon.ts: typed Horizon API client with fetchAccountTransactions and fetchContractTransactions, cursor-based pagination, 30s in-memory cache, operation label/icon helpers, and Stellar Expert explorer links - Add src/app/transactions/page.tsx: full-page transaction history UI with table view, testnet/mainnet network switcher, prev/next pagination, loading spinner, error state with retry, and empty state handling - Update Navbar to include a Transactions nav link Closes sorosave-protocol#63
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/claim #63
Summary
Implements on-chain transaction history for connected wallets using the Stellar Horizon REST API, as specified in issue #63.
New files
src/lib/horizon.ts— Horizon API client:fetchAccountTransactions(accountId, network, cursor)— paginated operations for any Stellar accountfetchContractTransactions(contractId, network, cursor)— operations for Soroban contract addresses_linksfrom Horizon responsesnetwork:account:cursorto reduce redundant requestssrc/app/transactions/page.tsx—/transactionspage:Modified files
src/components/Navbar.tsx— adds a "Transactions" link to the nav bar.Acceptance Criteria
Test plan