From a5b42a48fdac6d1a3cdea3ae194ec31759710755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Parcerisas?= Date: Mon, 11 Dec 2023 12:07:25 +0100 Subject: [PATCH] Update mainnet-account-setup.md I made some grammatical adjustments and clarified a few sentences for better readability. Feel free to incorporate these changes as needed. --- docs/tutorials/mainnet-account-setup.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/docs/tutorials/mainnet-account-setup.md b/docs/tutorials/mainnet-account-setup.md index 01fd78389d..ca3db56e51 100644 --- a/docs/tutorials/mainnet-account-setup.md +++ b/docs/tutorials/mainnet-account-setup.md @@ -4,26 +4,25 @@ sidebar_label: Mainnet Account Setup sidebar_position: 5 --- -In order to deploy your smart contracts to the mainnet, you need to register, fund, and setup a new account. +To deploy your smart contracts to the mainnet, follow the steps below to register, fund, and set up a new account. -> **Note**: This account will be used for production purposes. Make sure you handle keys appropriately. Using a Key Management Service is the best practice. By default, this command generates an ECDSA key pair on the P-256 curve. Keep in mind the 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 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. ## Create an account -You can easily create a new funded account on mainnet using the Flow CLI. You only need to run a single command `flow accounts create` and select a name for the account and the network, which in this case is `mainnet`. After that the account private key is saved into a seperate file called `{name}.pkey`. We advice switching to KMS system for production use which you [can read more about here](../tools/flow-cli/flow.json/configuration.md#advanced-format-1). +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). -``` +```bash flow accounts create Enter an account name: mike βœ” Testnet -πŸŽ‰ New account created with address 0x77e6ae4c8c2f1dd6 and name mike on Testnet network. +πŸŽ‰ New account created with address 0x77e6ae4c8c2f1dd6 and the name 'mike' on the Testnet network. 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. + - Saved the private key to 'mike.pkey'. + - 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).