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

Account's total tokens value #1624

Open
janmichek opened this issue Nov 8, 2023 · 2 comments
Open

Account's total tokens value #1624

janmichek opened this issue Nov 8, 2023 · 2 comments

Comments

@janmichek
Copy link

For the portfolio page, we are building in aeScan, we would like to display account's total tokens value in AE.
This cannot be counted from the listing as the response is paginated.
Can you introduce a new endpoint or ad to the existing one?

@sborrazas
Copy link
Contributor

@janmichek by total token's value you mean total AE tokens balance? This can be retrieved from the node directly via:

curl https://mainnet.aeternity.io/v3/accounts/ak_wTPFpksUJFjjntonTvwK4LJvDw11DPma7kZBneKbumb8yPeFq
{
  "balance": 26190986100000000000,
  "id": "ak_wTPFpksUJFjjntonTvwK4LJvDw11DPma7kZBneKbumb8yPeFq",
  "kind": "basic",
  "nonce": 11486869,
  "payable": true
}

@janmichek
Copy link
Author

I mean the all tokens value in AE
image

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

No branches or pull requests

2 participants