Skip to content

Unified Get Account Balances Abstraction #1165

@aristidesstaffieri

Description

@aristidesstaffieri

Is your feature request related to a problem? Please describe.
Wallets and dApps have traditionally needed account data from G addresses which makes the horizon sdk a good fit for their data source. More recently, discussions around support for contract accounts has been gaining traction.
There are several problems with moving from a G account workflow to a G or C account workflow but one core issue is a missing abstraction for getting an account's balance wether it is a G or a C account.

Describe the solution you'd like
An addition to the RPC sdk that allows a client to pass in a address(G or C) and get back the accounts balances for classic assets.

Describe alternatives you've considered
Using a different library for balances in a post contract account implementation, like https://jsr.io/@creit-tech/stellar-assets-sdk

Additional context
Conversation about dApp support for contract accounts
https://discord.com/channels/897514728459468821/1357489706618847314

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    To Do

    Status

    Backlog (Not Ready)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions