Skip to content

Management Commands

Manage addresses and keypairs.

Show the current active address.

soma wallet active

List all addresses in the keystore.

soma wallet list [OPTIONS]
ArgumentTypeRequiredDescription
--sort-by-aliasflagNoSort output by alias
soma wallet list
soma wallet list --sort-by-alias

Generate a new address and keypair.

soma wallet new [OPTIONS]
ArgumentTypeRequiredDescription
--aliasstringNoHuman-readable alias for the address
--key-schemestringNoSigning scheme (default: ed25519)
--word-lengthstringNoMnemonic word count (default: word12)
--derivation-pathstringNoBIP-44 derivation path
soma wallet new
soma wallet new --alias my-wallet --key-scheme ed25519

Remove an address from the keystore.

soma wallet remove <ALIAS_OR_ADDRESS>
ArgumentTypeRequiredDescription
alias_or_addressstringYesAlias or address to remove
soma wallet remove my-wallet

Switch the active address.

soma wallet switch <ADDRESS>
ArgumentTypeRequiredDescription
addressKeyIdentityYesAddress or alias to switch to
soma wallet switch 0x1234...5678
soma wallet switch my-wallet

Manage network environments.

Show the current active environment.

soma env active

List all configured environments.

soma env list

Add a new environment.

soma env new --alias <ALIAS> --rpc <URL> [OPTIONS]
ArgumentTypeRequiredDescription
--aliasstringYesName for this environment
--rpcstringYesRPC endpoint URL
--basic-authstringNoBasic auth credentials (username:password)
soma env new --alias mainnet --rpc https://rpc.soma.network
soma env new --alias private --rpc https://rpc.example.com --basic-auth user:pass

Switch the active environment.

soma env switch <ALIAS>
ArgumentTypeRequiredDescription
aliasstringYesEnvironment alias to switch to
soma env switch mainnet

Get the chain identifier from the current environment.

soma env chain-id