ithaca: need a way to query stake snapshot level with rpc for reward distribution
On Hangzhou I can query the roll snapshot:
curl https://rpc.hangzhounet.teztnets.xyz/chains/main/blocks/head/context/raw/bytes/cycle/124/roll_snapshot
Based on this information, as a baker, I can derive the block level, query all my delegator balances at this level (with an archive node). From this data I can calculate reward ratios for the staking balance and distribute their fair share to all my delegators.
On Ithacanet there is no such query:
curl https://rpc.ithacanet.teztnets.xyz/chains/main/blocks/head/context/raw/json/cycle/23/stake_snapshot
returns 404 and
curl https://rpc.ithacanet.teztnets.xyz/chains/main/blocks/head/context/raw/json/cycle/23/
does not have the value I am looking for.
This means that there is no way to do reward distribution on ithaca protocol.