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:
Creation of an ADI
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.
Your account connects to the accumulate mainnet by default.
If you want to connect to the testnet, add this flag and argument -s
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.
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:
./accumulate account generate
Command:
./accumulate account generate
The above command will return an output similar to the following:
accumulate adi create [origin-lite-account] [adi url to create] [public-key or wallet key label] [key-book-name (optional)] [key-page-name (optional)]
Example
./accumulate adi create acc://5a33ebee80f411ec8f9661e86c625ecb81d105aacfe3bd35/ACME acc://Tesla.acme key1234 acc://Tesla.acme/wize
The above command will return an output similar to the following:
Transaction Hash : 1396c5a52c7efd7f0464c9a9ab0e2f29ead9ec7da74009dc32892cfd7ded9e56
Signature 0 Hash : 756538bda02637b83590b1322ccd4218ce141dd4006c6c461b2214164ffd3f86
Simple Hash : ed71a4f1363f5de1137075ae92aff18446b4143586b926e22b5a95f1e75373b1
Error code : ok
Result :
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: