How to create an ADI via CLI
Last updated
Was this helpful?
Last updated
Was this helpful?
Accumulate Digital Identifiers are human-readable addresses similar to website URLs that are chosen by individuals or assigned by organizations to represent their presence on the blockchain. Digital identifiers assign unique digital identities to assets, individuals, or entities on the blockchain.
Using ADIs, Accumulate can serve as the de-facto communication and audit layer between blockchains, enabling the seamless transfer of tokens or other digital assets between ADIs across different chains regardless of their consensus mechanism.
Prerequisites
Basic knowledge of Accumulate(Accumulate link)
Basic knowledge of CLI
Basic knowledge of Rest API
Basic knowledge of VueJS, Javascript
installed.
JavaScript package manager, you’ll use npm as your JavaScript package manager, which is included when you install Node.
According to the whitepaper, “Accumulate by-passes the trilemma of security, scalability, and decentralization by implementing a chain-of-chains architecture in which digital identities with the ability to manage keys, tokens, data, and other identities are treated as their independent blockchains.”
Each ADI is made up of a collection of independent sub-chains that are managed by four account types:
Token Accounts: For issuing tokens and tracking deposits and withdrawals from a token account.
Data Accounts: For tracking and organizing data approved by an ADI
Staking Accounts: For staking Accumulate’s ACME tokens to participate in consensus and secure the network
Scratch Accounts: For accruing data needed to build consensus across the Accumulate network and enable the coordination of multisig
validation.
Any number of accounts or sub-ADIs can be nested within an ADI. Accounts and sub-ADIs are independent of each other and possess their own sets of keys with which they can manage their assets. The parent ADI possesses an administrative key set that can add, delete, transfer, or modify the security of its accounts or sub-ADIs. Data and token accounts are terminal, meaning they cannot have nested accounts. However, sub-ADIs and accounts can be nested within another sub-ADI.
An nth generation ADI that is created within another ADI.
This tutorial will create your ADI using an Accumulate lite account.
Steps:
Generate lite account
Add a faucet
Generate a key
Add credit
Create ADI
This command will generate a new lite account.
Run command
The above command will return an output similar to the following:
This command will add a faucet to your account.
The default number of faucets added to your account per transaction is 50.
Run command
The above command will return an output similar to the following:
This command will generate a new key
Run command
The above command will return an output similar to the following:
This command will add credit(link) to your lite account
Run command
The above command will return an output similar to the following:
This command creates a new ADI from a lite token account.
Syntax
Lite account: You will use the generated lite account; it’s mandatory
adi url: You will choose your ADI url; it’s mandatory
key name: You will use the generated key; it’s mandatory
key-book: it’s optional because the system will create one for you, except you created a key book to add.
Run Command
The above command will return an output similar to the following: