Skip to content

Common Commands

Check SOMA balance for an address.

soma balance [ADDRESS] [OPTIONS]
ArgumentTypeRequiredDescription
addressSomaAddressNoAddress to check (defaults to active address)
--with-coinsflagNoShow individual coin objects
--jsonflagNoOutput as JSON
soma balance
soma balance 0x1234...5678
soma balance --with-coins

Send SOMA to a recipient.

soma send --to <RECIPIENT> --amount <AMOUNT> [OPTIONS]
ArgumentTypeRequiredDescription
--toKeyIdentityYesRecipient address or alias
--amountSomaAmountYesAmount of SOMA to send
--coinObjectIDNoSpecific coin object to spend
--jsonflagNoOutput as JSON
soma send --to 0x1234...5678 --amount 1
soma send --to my-alias --amount 0.5 --coin 0xABCD...

Transfer an object to a recipient.

soma transfer --to <RECIPIENT> --object-id <OBJECT_ID> [OPTIONS]
ArgumentTypeRequiredDescription
--toKeyIdentityYesRecipient address or alias
--object-idObjectIDYesObject to transfer
--gasObjectIDNoGas coin to use for the transaction
--jsonflagNoOutput as JSON
soma transfer --to 0x1234...5678 --object-id 0xABCD...
soma transfer --to my-alias --object-id 0xABCD... --gas 0xGAS...

Pay SOMA to multiple recipients in a single transaction.

soma pay --recipients <ADDRESSES...> --amounts <AMOUNTS...> [OPTIONS]
ArgumentTypeRequiredDescription
--recipientsVec<KeyIdentity>YesOne or more recipient addresses
--amountsVec<SomaAmount>YesCorresponding amounts for each recipient
--coinsVec<ObjectID>NoSpecific coin objects to spend
--jsonflagNoOutput as JSON
soma pay --recipients 0xABC... --amounts 1
soma pay --recipients 0xABC... 0xDEF... --amounts 1 0.5

Stake SOMA with a validator or model.

soma stake --validator <ADDRESS> | --model <OBJECT_ID> [OPTIONS]
ArgumentTypeRequiredDescription
--validatorSomaAddressMutually exclusive with --modelValidator to stake with
--modelObjectIDMutually exclusive with --validatorModel to stake with
--amountSomaAmountNoAmount to stake (defaults to full balance)
--coinObjectIDNoSpecific coin object to stake
--jsonflagNoOutput as JSON
soma stake --validator 0xVAL... --amount 10
soma stake --model 0xMODEL... --amount 5

Withdraw staked SOMA.

soma unstake <STAKED_SOMA_ID> [OPTIONS]
ArgumentTypeRequiredDescription
staked_soma_idObjectIDYesID of the staked SOMA object
--jsonflagNoOutput as JSON
soma unstake 0xSTAKED_SOMA_ID

Request test tokens from a faucet server.

soma faucet [OPTIONS]
ArgumentTypeRequiredDescription
--addressSomaAddressNoAddress to fund (defaults to active address)
--urlstringNoFaucet server URL
--jsonflagNoOutput as JSON
soma faucet
soma faucet --address 0x1234...5678
soma faucet --url http://127.0.0.1:9123

Show network connection status, version info, and active address.

soma status [OPTIONS]
ArgumentTypeRequiredDescription
--jsonflagNoOutput as JSON
soma status
soma status --json