This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Staking and nomination pools runtime API improvements #13069
Labels
A3-in_progress
Pull request is in progress. No review needed at this stage.
B1-note_worthy
Changes should be noted in the release notes
C1-low
PR touches the given topic and has a low impact on builders.
J2-unconfirmed
Issue might be valid, but it’s not yet known.
T2-API
This PR/Issue is related to APIs.
As discussed in this Polkadot forum thread and elsewhere, it would be useful for the staking pallet to expose a few runtime APIs that can be called through the
state_call
RPC to help UIs and clients to query dynamic onchain data that is required for showing stats in UIs and help building extrinsic parameters.Examples of RPC methods:
StakingApi_nominationsQuota
: Returns the number of nominations quota per bonded balance, to help UIs calculating the max nominations for the account (implemented in this PR);NominationPoolsApi_balance_to_point
NominationPoolsApi_points_to_balance
The text was updated successfully, but these errors were encountered: