Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Unified Tokenlist / Pricing and Balance API #114

Open
4 of 11 tasks
tombeckenham opened this issue Mar 6, 2025 · 0 comments
Open
4 of 11 tasks

[FEATURE] Unified Tokenlist / Pricing and Balance API #114

tombeckenham opened this issue Mar 6, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@tombeckenham
Copy link
Collaborator

Feature

We'd like to introduce a unified tokenlist / pricing and balance API then refactor the client code on all 3 clients to use this new function

Expected Outcomes

  • A single API call should replace at least 3 calls on the client side to compile this information
  • There should be an API for EVM and an API for Cadence / Child accounts
  • The API should take an address, network, and currency as parameters. It's ok to only support USD as the currency for the moment.
  • The API should return coin balances as fixed strings with the correct number of decimal places. It should exactly match what is returned by fcl.
  • The API should calculate the total balance in the currency supplied for, return all the information needed to send and / or display tokens.
  • The API should return the maximum available balance for each of the tokens as well - in the case of Flow for a main Cadence account this should be the amount of flow that is available to send - that isn't used for storage.
  • It should return the information about decimals, and any information needed to send the token - address logo etc.

Platforms

  • Server (FRW-Web-Next)
  • iOS
  • Android
  • Extension

Screenshots

The API should provide everything needed for these screen elements - and to transfer tokens:

Image Image Image Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants