PostQ
$POSTQ
AppDashboardCanary$POSTQDocs

CLI reference

node cli/vault.mjs <command> [options]

#Global options

Option
--cluster devnet|mainnet|<url>Network. Mainnet's public RPC limits requests: pass your own URL for heavy use
--keypair <path>Fee payer keypair (JSON)
--seed-file <path>File with the 24 words. The words are never taken as an argument
--vault <address>The vault

#Commands

Command
keygen [--out <file>]New 24 words; --out writes them with 0600 permissions
open [--cosigner]Open a vault from the words
deposit sol --amount <SOL>Send SOL to the vault
deposit token --mint <MINT> --amount <N>Send a token to the vault
execute sol --to <ADDR> --amount <SOL>Withdraw SOL
execute token --mint <MINT> --to <OWNER> --amount <N>Withdraw a token to the owner's token account
execute close-account --mint <MINT> --rent-to <ADDR>Close an empty token account
execute --actions-file <json>Up to eight actions under one signature
rotate [--new-seed-file <path>]Next epoch with the same words, or new words
close --rent-to <ADDR>Close an empty vault
statusAssets, epoch, next leaf, leaves left