Last updated 3 months ago

Interact with the headless Zen Node via the Command Line Interface

Open your terminal and run zen-node

Now you can open another tab and your terminal and run zen-cli commands

USAGE: zen-cli [--help] [--port <port>] [<subcommand> [<options>]]
balance <options> get wallet balance
history <options> list wallet transactions
address <options> get wallet address
resync <options> resync wallet
import <options> import wallet seed from mnemonic sentence.
First word is the password and the rest are the
mnemonic phrase
send <options> send asset to address
activate <options> activate contract
extend <options> extend contract activation
execute <options> execute contract
active <options> list active contracts
publishblock <options>
publish a block to the network
accountexists <options>
check for an existing account
checkpassword <options>
check a password
mnemonicphrase <options>
get the mnemonic phrase
Use 'zen-cli <subcommand> --help' for additional information.
--port <port> port of zen-node API
--help display this list of options.


Check your balances

> zen-cli balance
Asset | Balance
0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 | 1900000000

Get wallet address

> zen-cli address

Send Transaction

> zen-cli spend 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 1000000 tp1q7n4l3dldcv69wfyqm32mpkwvf56q5kjdv7ma5p2668z05ljcv2gsq3ke4q
Ok "Binary [||]"

Import Wallet

> zen-cli import mypassword ability able about above absent absorb abstract absurd abuse access accident account accuse achieve acid acoustic acquire across act action actor actress actual adapt

Resync Blockchain

> zen-cli resync