Skip to content

feat(hook): add paginated useTransactionHistory hook - #159

Merged
RaceeyXo merged 3 commits into
RaceeyXo:mainfrom
Rendevor-ling:feat/use-transaction-history-hook
Jul 29, 2026
Merged

feat(hook): add paginated useTransactionHistory hook#159
RaceeyXo merged 3 commits into
RaceeyXo:mainfrom
Rendevor-ling:feat/use-transaction-history-hook

Conversation

@Rendevor-ling

Copy link
Copy Markdown
Contributor

feat(hook): add useTransactionHistory hook

Add a paginated transaction-history hook modeled on usePayments.
It fetches an account's transactions newest-first via Horizon with
forward/backward cursor pagination, normalizes each record into
NormalizedTransaction, and routes every failure through toStellarError.

  • packages/core/src/hooks/useTransactionHistory.ts — new hook
  • packages/core/src/hooks/useTransactionHistory.test.ts — happy path,
    empty address, Horizon error, and pagination (mocked Horizon)
  • packages/core/src/types/index.ts — UseTransactionHistoryOptions,
    NormalizedTransaction, UseTransactionHistoryReturn
  • packages/core/src/index.ts — export hook + types

Closes #116

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@Rendevor-ling Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@RaceeyXo

Copy link
Copy Markdown
Owner

@Rendevor-ling
Pls look into your codebase the CI checks are failing make sure it passes so i can merge your PR

@RaceeyXo
RaceeyXo merged commit ce9bc66 into RaceeyXo:main Jul 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(hook): useTransactionHistory — paginated account transaction history

2 participants