explorer icon indicating copy to clipboard operation
explorer copied to clipboard

[Bug] Distribution Tab Missing?

Open philetos opened this issue 1 year ago • 2 comments

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 avatar Aug 19 '23 02:08 philetos

I think I removed this because it wasn't working on mainnet. See https://github.com/solana-labs/explorer/issues/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: https://github.com/solana-labs/solana-program-library/issues/2547

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

mcintyre94 avatar Aug 21 '23 10:08 mcintyre94

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

philetos avatar Aug 23 '23 15:08 philetos