Skip to content

Add SDK balance model for multiple assets #166

Description

@El-swaggerito

Description

Difficulty: Expert

Type: Feature

Summary

Add or design a balance model that can represent multiple assets for one account.

Current Behaviour

A simple balance model may not scale when accounts hold XLM and issued assets.

Expected Behaviour

The SDK should expose balances in a typed structure that supports multiple assets and clear display metadata.

Suggested Implementation

Review account balance helpers and design a model for native, issued, unavailable, and unknown balance states.

Files or Areas Likely Affected

src/accounts/
src/wallet/
src/types/
tests/
docs/

Acceptance Criteria

  • A multi-asset balance model is added or documented.
  • Native and issued assets are represented distinctly.
  • Unavailable and unknown states are handled.
  • Tests cover multiple balance examples.
  • Documentation explains the balance model for UI consumers.

Additional Notes

This should support future mobile asset display.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked for GrantFox OSS contributionMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Official GrantFox campaign labelexpertExpert difficultyfeatureFeature worksdkSDK related workstellarStellar ecosystem workwalletWallet related work

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions