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 delegation information for validators endpoint: delegation outputs (Nova) [medium] #1359

Closed
begonaalvarezd opened this issue Feb 27, 2024 · 1 comment

Comments

@begonaalvarezd
Copy link
Member

begonaalvarezd commented Feb 27, 2024

Description

Priority: medium

This is part 1 of 2 of a feature we need for delegation information for validators/stakers. The idea of this endpoint is to provide the list of delegation outputs a staker has referecencing to it.
It would be nice, if possible, adding to the paginated response the total number of outputs so we know how much to expect without exhausting the cursor.

  • URL: /api/explorer/v3/delegation/by-address/[bech32address]
  • Response: {"outputIds": string[]}
  • Reponse example:
       {"outputIds": [ 0xbe3dc84501b369aa61780e784712df33aad11362ce9aca41749b23e65efdf406382300000500, 0x2ce1ab7feb616fb1ecda46c62368e19e18aacee25fb5467d8a2c846cffd3133adf6300000000]}
    

The 2 parts are:

  1. delegation outputs
  2. delegators

Motivation

Provide delegation information for validators

Requirements

Open questions (optional)

Are you planning to do it yourself in a pull request?

No.

@begonaalvarezd
Copy link
Member Author

Not needed, provided by indexer already

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

1 participant