How to create a Custom Token/Token Issuer using CLI

Creating a custom token involves writing and deploying smart contract code to a blockchain network. The smart contract defines the properties and behavior of the token, such as its name, symbol, and total supply.

  • Basic understanding of Command line

  • Basic understanding of Accumulate CLI commands

To create a custom token, you will need to have a basic understanding of the Accumulate commands (CLI) and access to a development environment. The steps typically involved in creating a custom token are:

  1. Creation of an ADI

  2. Creation of your token

Creating a custom token in Accumulate via CLI is straightforward. You do that by creating an ADI and using the ADI information to create your custom token.

circle-info

Your account connects to the accumulate mainnet by default.

If you want to connect to the testnet, add this flag and argument -s https://testnet.accumulatenetwork.io/v2arrow-up-right

Example:

I will use the faucet command for this example.

./accumulate faucet acc://5c33543157a40920252fa27d20079925807f611a9c4746c4/ACME -s 
https://testnet.accumulatenetwork.io/v2

Create an ADI

There are two ways to create an ADI in Accumulate: "Create new ADI for another ADI" and." Create New ADI from Lite Account " for this tutorial. You will use a lite account to create your ADI.

ADI create (Create New ADI from Lite Account)

Follow the steps below to create an ADI from a lite account

  • Generate a lite account

  • Get Faucets

  • Add credits to your lite account

  • Choose a name for the ADI

  • Generate a key

  • Create your ADI

  • Credit your keypage.

circle-info

To be able to process this transaction, you must have at least 500 credits of ACME

1: Generate a lite account

Generate random Lite Identity and ACME Lite Token Account

Syntax:

Command:

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

2: Get ACME from Faucets

Syntax:

Example of a lite account: acc://809050d340268983b1cc6a4c2ea57faef7ad96823588ce48/ACME

Command

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

3: Add credits to your lite account

Syntax:

Command:

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

4: Generate a key

Syntax:

Command:

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

5: Create an ADI

Syntax:

Example

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

To create a token, you will need to credit your keypage with at least 100 credits. Because your keypage was generated by the system, it will look similar to this:

6: Credits your keypage

Syntax

Command

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

Create your custom token

Syntax

Example

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

You can view it on Accumulate explorerarrow-up-right using the tx hash

Last updated

Was this helpful?