Skip to Content
19 November 2026: gateway operators, apply the nginx2root CVE mitigation.

nym-cli Binary Commands

nym-cli queries the Nyx blockchain and the Nym smart contracts, and sends transactions to them. Each command group has subcommands.

CommandWhat it does
account createCreates a new mnemonic. The account appears on the chain only after its address is used in a transaction.
account balanceShows the balance of an account.
account pub-keyShows the public key of an account.
account sendSends tokens to another account.
account send-multipleSends tokens to several accounts, listed in an input file, in one transaction.
signature signSigns a message with the account key.
signature verifyVerifies a signed message.
ecash issue-ticket-bookPays a deposit from the account and gets a ticketbook issued, into the credential store of a client or into a file.
ecash recover-ticket-bookRecovers ticketbooks whose deposits were made but whose issuance did not finish.
ecash import-ticket-bookImports a ticketbook into a client’s credential store.
ecash generate-ticketPrints the ticketbook data and a payment for one of its tickets, for a given provider.
ecash import-coin-index-signaturesImports the coin index signatures that ticketbooks need into a client’s store.
ecash import-expiration-date-signaturesImports the expiration date signatures that ticketbooks need into a client’s store.
ecash import-master-verification-keyImports the master verification key that ticketbooks need into a client’s store.
block getPrints the details of a block as JSON.
block timeShows the block time at a height.
block current-heightShows the current block height.
cosmwasm uploadUploads a smart contract WASM blob.
cosmwasm initInstantiates an uploaded contract.
cosmwasm generate-init-messageGenerates the instantiate message of a Nym contract: ecash bandwidth, DKG, mixnet, multisig or vesting.
cosmwasm migrateMigrates a contract to new code.
cosmwasm executeCalls a method of a contract.
cosmwasm raw-contract-statePrints the raw state of a contract.
tx getGets a transaction by hash.
tx querySearches for transactions.
vesting-schedule createCreates a vesting schedule.
vesting-schedule queryShows a vesting schedule.
vesting-schedule vested-balanceShows the vested amount that is free to withdraw, delegate or bond.
vesting-schedule withdraw-vestedWithdraws vested tokens. The amount excludes tokens that are delegated or bonded.
mixnet queryQueries the mixnet directory for mixnodes and gateways.
mixnet delegatorsLists, makes and removes delegations, and claims their rewards.
mixnet operatorsManages a Nym Node, a legacy mixnode or a legacy gateway that you operate, and signs messages with its identity key.
generate-figPrints a Fig  completion spec.

Global options

These options apply to each nym-cli command.

OptionWhat it does
--mnemonicThe mnemonic of the account that signs. When a command signs a transaction, such as account send, the MNEMONIC environment variable takes precedence over this flag, so clear MNEMONIC before choosing the signing account with --mnemonic. Prefer the variable anyway: a flag value shows in the process list.
--config-env-fileA file of environment variables that sets the network. A variable that is set in the environment wins over the file. setup_env skips the file entirely when CONFIGURED is already set, so unset CONFIGURED when you want the file loaded.
--nyxd-urlThe nyxd endpoint. It overrides the legacy NYMD_VALIDATOR variable and the config file.
--nym-api-urlThe Nym API endpoint. It overrides API_VALIDATOR and the config file.
--mixnet-contract-address, --vesting-contract-addressThe contract addresses. They override the environment and the config file.

The ecash commands open the credential store of a client. When that client encrypts its databases, give the same key with --database-key, or better with the NYM_CLIENT_DATABASE_KEY environment variable: a raw 256-bit key as 64 hex characters, which needs a build with SQLCipher. Set the variable in the process environment, because --config-env-file is read only after the arguments are parsed.

Run nym-cli <command> <subcommand> --help for all options.

Last updated on