Skip to content

#22 — Implement useTokenBalances hook (SAC tokens) #22

@IbrahimIjai

Description

@IbrahimIjai

Description:
Create useTokenBalances that reads USDC, BTC, ETH, XLM (SAC) balances for the connected wallet via Horizon account balances (trustlines) or Soroban SAC balance(address) calls.

Acceptance criteria:

  • Returns Record<string, number> keyed by token symbol
  • Batches SAC balance reads where possible
  • Feeds into TradePanel "Balance:" row (currently hardcoded)
  • Stale time: 15 s

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions