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

[Bug] Distribution Tab Missing? #285

Open
philetos opened this issue Aug 19, 2023 · 2 comments
Open

[Bug] Distribution Tab Missing? #285

philetos opened this issue Aug 19, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@philetos
Copy link

philetos commented Aug 19, 2023

There was a Distribution Tab where we could view top token holders and the relative distribution. Is this intentionally missing now?

Seems like this was available in the old create react app implementation

 {
      slug: "largest",
      title: "Distribution",
      path: "/largest",
 }
@philetos philetos added the bug Something isn't working label Aug 19, 2023
@mcintyre94
Copy link
Collaborator

mcintyre94 commented Aug 21, 2023

I think I removed this because it wasn't working on mainnet. See #210. The JSON RPC function used for this is getTokenLargestAccounts. The RPC provider that we're using for Explorer (and AFAICT, most RPC providers) don't index token accounts on mainnet:

{
    "jsonrpc": "2.0",
    "error": {
        "code": -32010,
        "message": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA excluded from account secondary indexes; this RPC method unavailable for key"
    },
    "id": "cf555c33-087d-419c-9dd3-36e5df2bf16f"
}

See related: solana-labs/solana-program-library#2547

Did you have a use case where this tab was providing useful data previously?

@philetos
Copy link
Author

philetos commented Aug 23, 2023

Did you have a use case where this tab was providing useful data previously?

I am building an experience where the users earn various community tokens in their PDA Wallet...and I expose a link to the account on chain from within the app. From there it is nice to have the top token distribution visible from the associated Mint accounts for transparency.

Would be a nice way to encourage trust as we are all looking to onboard "non" crypto natives :]

IMG_5571

IMG_5572

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants