Skip to content

Interactive creation of accounts #537

@devbugging

Description

@devbugging

We need to support creation of accounts on testnet and mainnet to be more seamless integrated into the Flow CLI and not required multiple steps.
We should have this notion of interactive commands in case where the command doesn't get passed the correct arguments or flags, which for this case would be just running the

flow accounts create

This would open up a prompt first making you choose which network you want to create the account for, after it would create an account on:

  • emulator: would just generate the keys, create an account by sending tx with service signer, save to flow.json
  • testnet: would generate the key, open up a faucet with already profiled values and make you fill in the captcha, after that it would monitor the network for new account creation event and get the newly created address, it would then save that account in flow.json
  • mainnet: it would be similar to testnet flow, but would use flow port for creation of account, and after we get back the address it would encrypt the key part of the account in flow.json

We should look into making faucet expose an API for above action, so the user doesn't have to click on the website.

Metadata

Metadata

Labels

FeatureA new user feature or a new package API

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions