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 block explorer visualization of validator list #9

Open
LexaMichaelides opened this issue Jan 23, 2025 · 2 comments
Open

Add block explorer visualization of validator list #9

LexaMichaelides opened this issue Jan 23, 2025 · 2 comments

Comments

@LexaMichaelides
Copy link
Member

separate page: block explorer page with just the validator list? https://explorer.polypore.xyz/provider/staking

@tripledoublev
Copy link
Member

tripledoublev commented Jan 27, 2025

I explored polypore's endpoint and managed to get validator address, pub_key, voting_power, and proposer_priority from:

https://rpc.provider-sentry-02.ics-testnet.polypore.xyz/validators?page=1&per_page=100

Example response:

 {
      "address": "",
      "pub_key": {
        "type": "tendermint/PubKeyEd25519",
        "value": ""
      },
      "voting_power": "",
      "proposer_priority": ""
    }

However, I couldn’t find an endpoint to retrieve validator names (moniker?). It’s unclear if this data requires querying an alternative endpoint or modifying configurations to include names in the /validators response.

@tripledoublev
Copy link
Member

tripledoublev commented Jan 27, 2025

I found the /net_info? endpoint which contains monikers.

https://rpc.provider-sentry-02.ics-testnet.polypore.xyz/net_info?

Further mapping is needed to associate monikers with validator addresses, possibly by deriving the id from pub_key.value using SHA256 hashing.

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