Reference Testnet · v1.10 · all tests passing
Estimated read time: 7 minutes

CLI Reference

Conventions

The CLI binary is valdium-cli. Every command takes the form valdium-cli <group> <verb> [args] [flags]. Run with no args to see the top-level help; run with --help on any subcommand for that command's flags.

Flags that are common to most commands:

wallet

CommandWhat it does
wallet create [name]Generate a new Dilithium3 keypair, save to keystore
wallet import [name]Import from a 24-word recovery phrase
wallet listList known wallets and their addresses
wallet show <name>Print the address and metadata of a wallet
wallet export <name>Print the recovery phrase (prompts for passphrase)
wallet remove <name>Delete a wallet from the keystore
wallet rename <old> <new>Rename a wallet in the keystore

balance

valdium-cli balance <address|wallet-name> [--at <block>]

Print the VLD balance of an address. Use --at with a block number or latest / pending.

send

valdium-cli send <to> <amount> [--data 0x...] [--from name]

Build, sign, and broadcast a VLD transfer. amount is in VLD (e.g. 1.5) — converted to wei internally.

tx

CommandWhat it does
tx show <hash>Pretty-print a transaction and its receipt
tx wait <hash>Block until the tx is mined; exit non-zero on revert
tx replace <hash> --gas <n>Bump gas on a stuck pending tx
tx cancel <hash>Submit a 0-value self-send at the same nonce to cancel a pending tx

contract

CommandWhat it does
contract call <addr> <fn> [args]Read call — no signing, no gas
contract send <addr> <fn> [args]Write call — signs and broadcasts
contract show <addr>Print code, ABI (if verified), deployed block
contract verify <addr>Submit source for verification — see Verifying Contracts

deploy

valdium-cli deploy <path> [--constructor-args ...] [--verify]

Compile, deploy, and optionally verify. Path is the entry file; the bundler walks imports. The deployed address prints to stdout.

stake

CommandWhat it does
stake delegate --to <validator> --amount <vld>Delegate to a validator
stake undelegate --from <validator> --amount <vld>Begin a 14-day unbond
stake redelegate --from <a> --to <b> --amount <vld>Move stake without unbonding
stake claimPull accrued rewards to the spending balance
stake statusShow delegations, pending unbonds, claimable rewards

validator

CommandWhat it does
validator key newGenerate a fresh validator key
validator key showPrint public validator info — address, pubkey
validator bond --amount <vld>Bond the validator (registers in the active-set queue)
validator unbondExit the active set (14-day cooldown)
validator statusStake, missed slots, jail state, rewards earned
validator unjailRe-enter the active set after a downtime jail

node

CommandWhat it does
node statusHeight, peers, sync state, uptime
node peersList connected peers with version + ping
node startStart the local node (if not running under systemd)
node stopClean shutdown
node reset --confirmWipe chain data, keep keystore

chain

CommandWhat it does
chain headLatest block, one line
chain block <n|hash>Full block
chain total-supply [--at block]Current circulating supply
chain emission [--epoch n]Validator pool emission for an epoch

config

CommandWhat it does
config set rpc <url>Default RPC endpoint
config set default-wallet <name>Default --from wallet
config showPrint effective config
config pathPrint the config file location

test

valdium-cli test [path] [--coverage] [--watch]

Run the in-process VM test runner. See Testing Contracts for the full surface.

version

valdium-cli version prints the CLI version, node binary version, and protocol version separately. Useful when filing bug reports.