blockfrost / openapi

OpenAPI specification for Blockfrost.io service
https://docs.blockfrost.io
MIT License
22 stars 15 forks source link

Stake Power per Epoch per Stake Address(es). #308

Open matiwinnetou opened 1 year ago

matiwinnetou commented 1 year ago

Blockfrost gives us ability to read stake power for a given pool per given epoch but... it returns all addresses in a given epoch. It would be nice if one could narrow this down to one stake address or a given list of stake addresses. Simply the list is too big and in many cases use cases are interested in the subset of stake addresses. I would keep the existing endpoint but also add a new one.

As a user I would like to have a blockfrost endpint where I specify which stake addresses I want to see the balance in the given epoch, either one or multiple.

...get_stake_power?stake_address=1&stake_address=2

PS Endpoint name is silly, it is just an illustration.

mmahut commented 10 months ago

As the Blockfrost endpoints are build for cachability, any custom processing on our backends compromises future performance.

However, you might be looking to use the /accounts endpoint directly, if you know the list of stake addresses instead picking them from a stake pool list.