What is seid CLI?
The seid CLI is the command-line tool for interacting with the Sei blockchain. It allows you to manage wallets, send transactions, query network data, and perform validator operations.
Prerequisites
- Go 1.23+: Installation instructions are available here.
Installation
To install seid, locate the version you wish to use on the sei-chain releases page. A list of the currently used versions on mainnet and testnet are displayed right below.
Then, execute the following commands with the version that you picked:
You can verify that seid was installed correctly by running:
Troubleshooting Installation
If you encounter an error like command not found: seid, you may need to set your GOPATH environment variable.
- Use
go env GOPATH to find your GOPATH
- Add the following lines to your
~/.bashrc or ~/.zshrc:
For more information see here.
Command Overview
Seid supports all the commands you need to interact with the chain. To see a list of available commands and explanations of what they do, run seid:
Adding a Wallet
You can create a new wallet using the seid keys command:
Output:
Please replace $NAME with the name you would like to use for this key. This will generate a seed phrase and store the account in the CLI for use.
Important: Write this mnemonic down and store it in a safe place. Never share your seed phrase with anyone.
Alternatively, if you would like to import an existing seed phrase, you can add the --recover flag:
Output:
This will prompt you to enter your seed phrase, allowing you to import an existing wallet into the CLI.
EVM Wallet Compatibility
Understanding Coin Types
Sei supports two coin types:
- Coin type 118 (default): Standard Cosmos address format
- Coin type 60: Ethereum-compatible address format for EVM wallets
Creating an EVM-Compatible Wallet
To create a new wallet that’s compatible with EVM wallets like MetaMask:
Output:
evm_address is shown as empty here because it’s only displayed after the key first broadcasts a transaction or is associated on-chain. The 0x address is deterministically derived from the secp256k1 public key.
Importing an Existing EVM Wallet
To import an existing wallet from MetaMask or other EVM wallets:
Output:
You’ll be prompted to enter your existing 12 or 24-word mnemonic phrase.
Use coin type 60 when you want to use the same address across EVM-compatible chains or import from MetaMask. Use the default coin type 118 for standard Cosmos operations.
Managing Wallets
To see your local wallets, you can run:
Output:
to see a list of all wallets added, or
Output:
to see details about a specific wallet.
Deleting Wallets
To delete a wallet/key, you can use the following command:
Output:
This will remove the specified wallet from your local keyring. Be cautious, as this action cannot be undone.
Uninstalling seid
If you need to remove seid from your system, you can delete the binary from your $GOPATH/bin directory: