Skip to content

Commit

Permalink
Merge branch 'adriaparcerisas-patch-5'
Browse files Browse the repository at this point in the history
  • Loading branch information
franklywatson committed Jan 30, 2024
2 parents c17adb1 + 812b1b9 commit 48f0096
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions docs/tutorials/mainnet-account-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,24 @@ sidebar_label: Mainnet Account Setup
sidebar_position: 5
---

To deploy your smart contracts to the mainnet, follow the steps below to register, fund, and set up a new account.
To deploy your smart contracts on the mainnet, follow these steps to register, fund, and set up a new account.

> **Note**: This account will be used for production purposes. Ensure proper key management. Using a Key Management Service (KMS) is the best practice. By default, this command generates an ECDSA key pair on the P-256 curve. Keep in mind that the Flow CLI is intended for development purposes only and is not recommended for production use. Handling keys using a Key Management Service is the best practice.
> **Note**: This account is designated for production purposes. Ensure proper key management by using a Key Management Service (KMS), which is considered best practice. The Flow CLI, by default, generates an ECDSA key pair on the P-256 curve. Keep in mind that the Flow CLI is intended for development purposes only and is not recommended for production use. Leveraging a Key Management Service for handling keys is the recommended approach.
## Create an account
You can easily create a new funded account on the mainnet using the Flow CLI. Execute the following command `flow accounts create` and choose a name for the account and the network, which in this case is `mainnet`. After that, the account private key is saved into a separate file called `{name}.pkey`. We advise switching to a KMS system for production use; you can [read more about it here](../tools/flow-cli/flow.json/configuration.md#advanced-format-1).
## Create an Account
Easily create a newly funded account on the mainnet using the Flow CLI. Execute the command `flow accounts create` and choose a name for the account and the network, in this case, `mainnet`. The account's private key is then saved into a separate file named `{name}.pkey`. For production use, we strongly advise transitioning to a KMS system; you can [find more information here](../tools/flow-cli/flow.json/configuration.md#advanced-format-1).

```bash
flow accounts create

Enter an account name: mike
✔ Testnet

🎉 New account created with address 0x77e6ae4c8c2f1dd6 and the name 'mike' on the Testnet network.
🎉 New account created with the address 0x77e6ae4c8c2f1dd6 and the name 'mike' on the Testnet network.

Heres a summary of all the actions that were taken:
- Added the new account to flow.json.
Here's a summary of all the actions that were taken:
- Added the new account to `flow.json`.
- Saved the private key to 'mike.pkey'.
- Added 'mike.pkey' to .gitignore.
- Added 'mike.pkey' to `.gitignore`.
```

Read more about the command in the [CLI account creation documentation](../tools/flow-cli/accounts/create-accounts.md#interactive-mode).

0 comments on commit 48f0096

Please sign in to comment.