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

Add holders for TLOS itself - Create /accounts endpoint #927

Open
poplexity opened this issue Jan 7, 2025 · 1 comment
Open

Add holders for TLOS itself - Create /accounts endpoint #927

poplexity opened this issue Jan 7, 2025 · 1 comment
Assignees

Comments

@poplexity
Copy link
Member

poplexity commented Jan 7, 2025

Top Accounts by TLOS Balance Implementation

Problem

We need to display ERC20 holder data that exists in our database but lacks UI representation.

Proposed Solution

Create an /accounts page accessible from the Blockchain header navigation tab (last position).

UI Components

  • Header: "Top Accounts by TLOS Balance"
  • Stats Display: Total accounts with TLOS balance and total TLOS balance
  • Data Table:
# | Address | Name Tag | Balance | Percentage | Txn Count

Table Requirements

  • Sort: Descending by TLOS balance (fixed)
  • Pagination: 25 items per page
  • Address: Links to address page
  • Name Tag: Shows Contract Name or empty string, non-clickable
  • Balance: 2 decimal points
  • Percentage: 2 decimal points
  • Zero balance accounts excluded

Performance Requirements

  • Load time: <1 second
  • Scale: Handle 10k new accounts/day
  • Caching: Implement as needed for performance
  • Refresh: Maximum frequency without performance impact

Technical Requirements

  • Responsive design matching existing tables
  • Error states matching existing tables
  • Standard pagination controls

Questions for Dev Team

  • Do we have all required endpoints?
  • Performance impact assessment needed for:
  • Server
  • Indexer
  • Database
  • Caching strategy requirements?
  • Index creation needed?
  • Do we want export functionality? @poplexity @jbuice
    @Viterbo @poplexity
@pmjanus pmjanus changed the title Add holders for TLOS itself Add holders for TLOS itself - Create /accounts endpoint Jan 8, 2025
@Viterbo Viterbo self-assigned this Jan 10, 2025
Viterbo added a commit that referenced this issue Jan 29, 2025
…self-create-accounts-endpoint

#927 | adding section /accounts for paginated native balances
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

When branches are created from issues, their pull requests are automatically linked.

3 participants
@poplexity @Viterbo and others