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: return transfers and fees count on acocunt detail #1357

Closed
selankon opened this issue Jul 26, 2024 · 0 comments · Fixed by #1360
Closed

feature: return transfers and fees count on acocunt detail #1357

selankon opened this issue Jul 26, 2024 · 0 comments · Fixed by #1360
Labels
enhancement New feature or request

Comments

@selankon
Copy link
Contributor

Describe the feature

Add transfers and fees count when retrieving account detail

Motivation

To avoid additional calls on the explorer, a transfers and fees count could be added when calling account detail count. On this way, we could show this information on the account detail page, without retrieving the first page of the list.

Proposal

Api should return something like:

➜ curl 'https://api-dev.vocdoni.net/v2/accounts/94ec63c0c708a3b77fc7358ccd90a31f27ff2c4f' -s | jq                                                                                      
{
  "address": "94ec63c0c708a3b77fc7358ccd90a31f27ff2c4f",
  "nonce": 1,
  "balance": 9995,
  "electionIndex": 1,
  "transfers": 1,
  "fees": 1,
//...
}
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

Successfully merging a pull request may close this issue.

1 participant