but i want to get all the baking rights for a cycle. I do not want to iterate over every block to check this. Is there currently a workaround for RPC? tzkt and tzstats are working fine in that regard ^^. How do they solve this issue? How should we address this issue? Thanks in advance!
There is currently a
429 Too Many Requests
error when I am trying to query the baking rights of a specific baker via public RPC for a past cycle.E.g.: https://mainnet-tezos.giganode.io/chains/main/blocks/head/helpers/baking_rights?cycle=515&delegate=tz1NRGxXV9h6SdNaZLcgmjuLx3hyy2f8YoGN&max_round=2
I can query the baking rights specifically for a block via: https://mainnet-tezos.giganode.io/chains/main/blocks/2632823/helpers/baking_rights?delegate=tz1NRGxXV9h6SdNaZLcgmjuLx3hyy2f8YoGN&max_round=2
but i want to get all the baking rights for a cycle. I do not want to iterate over every block to check this. Is there currently a workaround for RPC? tzkt and tzstats are working fine in that regard ^^. How do they solve this issue? How should we address this issue? Thanks in advance!
I discovered this issue during test tests refactoring of the rpc reward provider api https://github.com/tezos-reward-distributor-organization/tezos-reward-distributor/pull/610. I reported the issue to the tezos devs here.