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 number of stackers to /pox/cycles/{cycle_number} endpoint #1953

Closed
1 of 3 tasks
BLuEScioN opened this issue Apr 17, 2024 · 1 comment · Fixed by #1987
Closed
1 of 3 tasks

Add number of stackers to /pox/cycles/{cycle_number} endpoint #1953

BLuEScioN opened this issue Apr 17, 2024 · 1 comment · Fixed by #1987
Assignees

Comments

@BLuEScioN
Copy link
Collaborator

BLuEScioN commented Apr 17, 2024

Slack context: https://hiropbc.slack.com/archives/C03UFUA5Q65/p1713303894476729

I am trying to build this UI. From inspecting the new api endpoints, it seems the data available looks like this:
{
"signing_key": "0x0343b909be3379621d5e68a883e6c74c2222666f4bf6cc38fade2c9d1c57d92213",
"weight": 2,
"stacked_amount": "3286590000000000",
"weight_percent": 66.66666666666666,
"stacked_amount_percent": 66.66666666666667
}
This enables me to fill out some of the information in the design but not all of it. The data I am missing is:

  • Signer key associated address
  • Last vote slot
  • The number of addresses stacking

Image

Regarding signer key associated addresses:
From Matt:
this endpoint will give you stackers/addresses for a given signing_key /extended/v2/pox/cycles/{cycle_number}/signers/{signer_key}/stackers
https://stacks-blockchain-api.vercel.app/#tag/Proof-of-Transfer/operation/get_pox_cycle_signer_stackers

Regarding last vote slot:
It sounds like there is some confusion here. What does this mean? @andresgalante can you elaborate here?

Regarding # addresses stacking:
From Matt:
I think this might be a property we can add to the /extended/v2/pox/cycles/{cycle_number} endpoint --
@rafael
what do you think?

@andresgalante
Copy link
Member

The last vote seems to have been taken during the design phase from Solana's dashboard https://solanabeach.io/validators, which was mentioned as a resource here.

We can remove it.

@zone117x zone117x changed the title Add data to api for Explorer Signers page Add number of stackers to /pox/cycles/{cycle_number} endpoint Apr 18, 2024
@zone117x zone117x self-assigned this Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants