How to create a Lite Account and Keys on Mainnet / Testnet

Creating a Lite Account and Keys on mainnet or testnet is an important step for anyone interested in using Accumulate. Lite Accounts are a type of account that can be used to transact and interact with blockchain networks, while Keys are used to authenticate and signing transactions on these networks.

This guide will walk you through creating a Lite Account and Keys on both mainnet and testnet. We will cover the basic concepts and tools required to create a Lite Account, including a wallet and private keys.

By the end of this guide, you will have a better understanding of how to create a Lite Account and Keys, and you will be equipped with the knowledge and tools necessary to start using Accumulate protocol. To use the Accumulate Mainnet, you need to have a lite token account. This is the network where all the real transactions occur (as opposed to the Testnet, which is only for testing purposes). A lite token account is a basic account type in Accumulate and is needed to create an ADI where the more advanced Accumulate features are available.

Creating a lite account with Mainnet and Testnet follows same steps.

Creating a lite token account on Mainnet/ Testnet is easy and only takes a few minutes. In two simple steps, this article will show you how to create an account using CLI:

  • Create a wallet

  • Generate a key

This guide requires you to set up the Accumulate CLI on your computer. If you have not yet installed the CLI, please click here.

In the Accumulate CLI, there are two ways of generating a lite account, ./accumulate account generate, and ./accumulate key generate [key name].

The first command will generate the lite account with a key and use the public key as the name, which is much less user-friendly, while the second command will generate a lite account with a custom key name.

Make sure you are running on Mainnet before continuing. Run ./accumulate to see all the flags; check the --server flag. If you see testnet; kindly run the command below to change it to mainnet

export ACC_API=https://mainnet.accumulatenetwork.io/v2

Create a wallet

This command will create an Accumulate wallet in your CLI.

./accumulate wallet init create  

For more information on creating a wallet, check our CLI setup

2. You will create a lite account, and that can be done using the two commands:

  • Generate a lite account

  • Generate a key

Generate random Lite Identity and ACME Lite Token Account

Syntax:

./accumulate account generate

Command:

./accumulate account generate 

The above command will return an output similar to the following:

name : e1a69cb98d884975a857cb73b0f47981cf032459db2d26ee 
lite account : acc://e1a69cb98d884975a857cb73b0f47981cf032459db2d26ee/ACME 
public key : 4332e43d1b603db967fe7a465dbd43c44c633b86a40bfb7582ac14df4ea728ae 
key type : ed25519 

It is necessary to create a key in Accumulate protocol because you will use it in many things:

Also, you can view your public key using the key list and account list commands.

This command displays the list of keys available in your wallet.

Command

./accumulate key list 

The above command will return an output similar to the following:

Public Key Key name 
4332e43d1b603db967fe7a465dbd43c44c633b86a40bfb7582ac14df4ea728ae e1a69cb98d884975a857cb73b0f47981cf032459db2d26ee 
6170f96898f7bc80ff3a72a0191926ac90e96197b9f977d56c1e855c7a43fe44 john 
d940d2a803e50f40be208c3629ece56949236f7c5c256f641f9f4cbd3fca337a paul 
10d22def144a041cf2a02f020a6e1bdb567d72cfa06c32c70658df858bfa855b paulf 
90161fe58540c3d5cbbc6c00fa70a96531679e8a3722c0d584825b2feff0f7e1 paulff 
6eb9dfa41b3400d4ea226a52a0c93484ae61e3cd02ccee27c5373a8d2049d732 wise 
d23254ea7a4f66c8974d618beecba891b46b9617770e85fb4d8412a35185dba7 wiset 
44bb5f8f4412c66b3dbd1541a417d87a65a5c414f278eef1172f82b2ffb3153e wisez 

Last updated