Interface Guide
This page describes how to use it.
Creates a new account. If the
default
flag is given, it is used if user-address
is omitted in commands that require it. A hex string with 0x-prefix of less than or equal to 32 bytes can be given as private key. intmax account add [--default] [--private-key <private-key>]
Add default account (private key is selected randomly)
intmax account add --default
Add default account with private key
intmax account add --default --private-key 0x1234
success response
new account added: 0x30cc462351a42c905ad6e846d939e1afb8677735480459975965dc8bb23570ad
set above account as default
You can check the account list.
intmax account list
Initializing your wallet and delete your all accounts. Reset locally configured account information.
intmax account reset
You can change the account used as default.
intmax account set-default [user-address]
intmax account set-default 0x714bdc6f38947e6da5ee9596c50b2e06e4e01c8885f98cf29d9c2f656eb3b45d
success response
set default account: 0x714bdc6f38947e6da5ee9596c50b2e06e4e01c8885f98cf29d9c2f656eb3b45d
You can issue amount of tokens determined by a
token-id
with the same token address as your user address.intmax tx mint -i <token-id> --amount <amount>
Deposit your assets (the token contract address is the same with your address, the token id can be selected
0x00
- 0xff
and amount should be an integer less than 2^56)intmax deposit -i 0x00 --amount 1000000
You can issue NFT. The token id can be selected from 0x01 to 0xff.
intmax tx mint --nft -i 0x01
success response
deposit successfully
The token determined by
token-address
and token-id
is transferred to the receiver-address
in amount. As in the case of issuing a token, if token-address
is omitted, it is treated as the same address as the receiver's own address.intmax tx send --receiver-address <receiver-address> [-a <token-address>] -i <token-id> --amount <amount>
Send your 1000000 fungible token to address
0x714bdc6f38947e6da5ee9596c50b2e06e4e01c8885f98cf29d9c2f656eb3b45d
.intmax tx send --receiver-address 0x714bdc6f38947e6da5ee9596c50b2e06e4e01c8885f98cf29d9c2f656eb3b45d --amount 1000000
Send your NFT (token ID is 0x01) to address
0x714bdc6f38947e6da5ee9596c50b2e06e4e01c8885f98cf29d9c2f656eb3b45d
.intmax tx send --receiver-address 0x714bdc6f38947e6da5ee9596c50b2e06e4e01c8885f98cf29d9c2f656eb3b45d --nft -i 0x01
success response
WARNING: DO NOT interrupt execution of this program while a transaction is being sent.
start proving: user_tx_proof
prove: 2.886 sec
transaction hash is 0x2d5b0466183df693bbad9660b687e8d51e163b19ebde11fc5ded24e5a33d5584
broadcast transaction successfully
start proving: received_signature
prove: 0.004 sec
send received signature successfully
Displays all currently owned assets.
intmax account assets
success response
User: 0x714bdc6f38947e6da5ee9596c50b2e06e4e01c8885f98cf29d9c2f656eb3b45d
--------------------------------------------------------------------------------------
No assets held
--------------------------------------------------------------------------------------
User: 0x714bdc6f38947e6da5ee9596c50b2e06e4e01c8885f98cf29d9c2f656eb3b45d
--------------------------------------------------------------------------------------
Token Address | 0x3d4dcb332de1452f4f3de0612cb1c8a3ac892701f3e23627a634f2d962dc0712
Token ID | 0x01
Amount | 1
--------------------------------------------------------------------------------------
You can issue new token according to the contents of the file. Up to 16 tokens can be sent together. For more information, see Bulk-transfer File Format.
intmax tx bulk-mint -f <file-path>
intmax tx bulk-mint -f ./tests/airdrop/example2.csv
You can transfer owned tokens according to the contents of the file. Up to 8 tokens can be sent together. For more information, see Bulk-transfer File Format.
intmax tx bulk-transfer -f <file-path>
intmax tx bulk-transfer -f ./tests/airdrop/example2.csv
success response
deposit successfully
WARNING: DO NOT interrupt execution of this program while a transaction is being sent.
start proving: user_tx_proof
prove: 2.861 sec
transaction hash is 0xb71cf8dcd05da384dcba305ae5055a1ae0072572683be6dd11d7e5d74e2eb091
no purging transaction given
start proving: received_signature
prove: 0.003 sec
send received signature successfully
You can transfer owned tokens according to the contents of the file. Up to 8 tokens can be sent together. For more information, see Bulk-transfer File Format.
intmax tx bulk-transfer -f <file-path>
intmax tx bulk-transfer -f ./tests/airdrop/example3.csv
success response
WARNING: DO NOT interrupt execution of this program while a transaction is being sent.
start proving: user_tx_proof
prove: 2.821 sec
transaction hash is 0x94039632d3af99ef06d750509d6153d1958720ead3f1dbd98f987059eea4eb5d
broadcast transaction successfully
start proving: received_signature
prove: 0.006 sec
send received signature successfully
Display the help page.
intmax -h
Last modified 1mo ago