openapi icon indicating copy to clipboard operation
openapi copied to clipboard

Stake Power per Epoch per Stake Address(es).

Open matiwinnetou opened this issue 2 years ago • 1 comments

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.

matiwinnetou avatar Jun 21 '23 20:06 matiwinnetou

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.

mmahut avatar Nov 01 '23 20:11 mmahut