Skip to content

Get accounts by index instead of name #968

@braydonf

Description

@braydonf

Currently the internal API can get an account by index (number) instead of the name, however when these are available over HTTP and RPC the value is assumed to be a string and the name of the account instead of the index.

As the account index can be restored from the seed, and the name cannot, I think this value should be preferred, if not the only option. The account name I think is informational only, rather than a reference point.

Handling both cases could potentially cause an issue if an account name was actually a number, so if both were an option it should be possible to specify which is being used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    walletWallet related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions