How to get accounts from dev node?
By default dev node start with accounts derived from mnemonic
bottom drive obey lake curtain smoke basket hold race lonely fit walk
As mentioned here
How can I get predefined built-in account‘s key pair from polkadotjs app? Such as Alice and Bob
However you can also change those accounts (derivation path) or mnemonic.
polkadot.js.org app gets those accounts using direct storage calls.
For example Alice account is fetched by
state.getStorage('0x5c0d1176a568c1f92944340dbfed9e9c530ebca703c85910e7164cb7d1c9e47b')
Which more flexible solution than hardcoding mnemonic in app. However I don't know where that storage key comes from..
Any idea how to programmatically fetch all managed accounts?
EDIT:
What I'm trying to do - I want to get those accounts with RPC call.
It is possible to change those accounts in dev node (in code) and I don't want to reflect those changes in testing env. It is for sure possible cuz polkadot.js.org (using on local node) gets those accounts.