Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Staking and nomination pools runtime API improvements #13069

@gpestana

Description

@gpestana

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A3-in_progressPull request is in progress. No review needed at this stage.B1-note_worthyChanges should be noted in the release notesC1-lowPR touches the given topic and has a low impact on builders.J2-unconfirmedIssue might be valid, but it’s not yet known.T2-APIThis PR/Issue is related to APIs.

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions