Skip to content

Latest commit

 

History

History
97 lines (63 loc) · 2.14 KB

README.md

File metadata and controls

97 lines (63 loc) · 2.14 KB

intmax rollup CLI

ATTENTION: The Intmax testnet is still a pre-alpha version, so we will not commit data to L1 Network.

Setup

For Ubuntu: Install Guide (Ubuntu)

git clone [email protected]:InternetMaximalism/intmax-rollup-cli.git -b staging
cd intmax-rollup-cli
cargo --version # 1.65.0-nightly
cargo build --release
alias intmax='./target/release/intmax'
intmax config aggregator-url https://prealpha.testnet.intmax.io/

Update

If the CLI version has been updated, the following commands can be used to synchronize.

git checkout staging # only for users who have been using v1.0.2-alpha or earlier
git pull origin staging

For more information on the release, check here.

Getting Started

Help

Display the help page.

intmax -h

Create your account

Initializing your wallet and delete your all accounts.

intmax account reset

Add default account (private key is selected randomly).

intmax account add --default

Mint your token

Mint your token. The token address is the same with your address and the token id can be selected from 0x00 to 0xff.

intmax deposit --amount 10 -i 0x00

Send your assets

Merge your assets and Send your token to other accounts.

intmax tx send --amount 1 -i 0x00 --receiver-address 0x714bdc6f38947e6da5ee9596c50b2e06e4e01c8885f98cf29d9c2f656eb3b45d

Display your assets

Display your owned assets.

intmax assets

Bulk-mint

You can issue new token according to the contents of the file. Up to 16 tokens can be sent together in the testnet.

intmax tx bulk-mint -f ./tests/airdrop/example.csv

Bulk-transfer

You can transfer owned tokens according to the contents of the file. You can send several tokens together in one transaciton. The number of this aggregation is limited to 8 tokens in the testnet, and will be set to maximum 1024 in the mainnet.

intmax tx bulk-mint -f ./tests/airdrop/example2.csv
intmax tx bulk-transfer -f ./tests/airdrop/example3.csv

How to Use

Interface Guide