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.

RPC account_nextIndex name is confusing #7429

@xlc

Description

@xlc

We have RPC system_accountNextIndex / account_nextIndex, but the method is returning nonce.

#[rpc(name = "system_accountNextIndex", alias("account_nextIndex"))]
fn nonce(&self, account: AccountId) -> FutureResult<Index>;

And we have another AccountIndex

/// The type for looking up accounts. We don't expect more than 4 billion of them.
pub type AccountIndex = u32;

IMO account_nextIndex means give me the next AccountIndex, not the next account nonce.

Feel free to close this if I am the only one found this confusing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    J0-enhancementAn additional feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions