Files
pezkuwi-subxt/substrate/frame
Ankan 73b9a8391f [Staking] Runtime api if era rewards are pending to be claimed (#4301)
closes https://github.com/paritytech/polkadot-sdk/issues/426.
related to https://github.com/paritytech/polkadot-sdk/pull/1189.

Would help offchain programs to query if there are unclaimed pages of
rewards for a given era.

The logic could look like below

```js
// loop as long as all era pages are claimed.
while (api.call.stakingApi.pendingRewards(era, validator_stash)) {
  api.tx.staking.payout_stakers(validator_stash, era)
}
```
2024-04-28 12:35:51 +00:00
..
2024-04-10 06:44:46 +00:00
2024-04-10 06:44:46 +00:00
2024-04-10 06:44:46 +00:00
2024-04-10 06:44:46 +00:00
2024-04-10 06:44:46 +00:00
2024-04-10 06:44:46 +00:00
2024-04-10 06:44:46 +00:00
2023-09-04 12:02:32 +03:00

FRAME

The FRAME development environment provides modules (called "pallets") and support libraries that you can use, modify, and extend to build the runtime logic to suit the needs of your blockchain.

Documentation

https://docs.substrate.io/reference/frame-pallets/

Issues

https://github.com/orgs/paritytech/projects/40