Basic CLI Command
SIX CLI and SIX Protocol chain are building on cosmos-sdk then all basic command and flags of command pretty much the similar to cli of other chain.
Basic Command
# Point the six-testnet rpc endpoint
--node https://rpc1.fivenet.sixprotocol.net:443
# Point the six-mainnet endpoint
--node https://sixnet-rpc.sixprotocol.net:443
# Specify who is signing message
--from <address>
# Specify where can we get the private key to sign // os means local os device
--keyring-backend=os
# Gas limit to set per-transaction
--gas auto
# Adjustment factor to be multiplied against the estimate returned by the tx simulation
--gas-adjustment
# Gas prices in decimal format to determine the transaction fee
--gas-prices
# Skip tx broadcasting prompt confirmation
-yYou can start using cli by typing 'sixd -h' or 'sixd --help' to list the common available commands of sixd. It will show the results.
You can list other available child options by using -h or --help.
such as ‘sixd query -h’
Create Account
To create a fresh new account on SIX Protocol, you can follow this example.
Important write this mnemonic phrase in a safe place. It is the only way to recover your account if you ever forget your password.
Keyring-backend
The private key of your address will be saved locally as a keyring file. There are three types of keyring files: test, os, and file.
The default keyring file will be saved as "test" and located at $home/.six/keyring-test.
The second option for saving the keyring file is 'file'. With this option, the keyring will be saved to $home/.six/keyring-file by default. However, you can save it to any path by using the following command:
Finally, we have the 'os' keyring file. This option binds your key to the device(s).
To use this option, change "keyring-backed" to "os".
Query Command
Due to the large number of available query commands, we will provide examples of some commonly used commands.
Show all of your account
You can put your own option like --keyring-backend and --home
Query balances of your account
Tip: You can check your balance by running a query like this.
Query your individual node reward
Tx Command
Due to the large number of available tx commands, we will provide examples of some commonly used commands for perform transaction.
Sending token to another account
If you create an address with the keyring-backed os or file option, you may need to specify the keyring-backend.
Sending token to EVM account (0x) [EVMxCosmos Transfer]
To use the SIX Protocol EVM with Metamask, you need to wrap your USIX tokens and send them to your EVM account. Please ensure that you have USIX tokens in your account before proceeding.
We provide 2 way to send token from Cosmos to EVM: Wrap and Send to EVM and Send to EVM
Wrap and Send to EVM
You can wrap tokens without sending them to anyone by not specifying a destination address or by inputting your 6x address as the destination.
So then your usix token will convert to asix token.
Send to EVM
If you already have wrapped SIX token (asix) in your account, you can now send wrapped tokens to an EVM address.
Unwrap token (asix to usix)
converting your wrapped SIX Token (asix) to usix
Last updated