Command Line Interface

TOP

Core Commands

help

Prints the rai_node manpage

rai_node --help

daemon

Starts node daemon

rai_node --daemon

snapshot

Compact database and create snapshot, functions similar to vacuum but does not replace the existing database

rai_node --snapshot

vacuum

Compact database.

rai_node --vacuum

The rai_node should not be running when this command is run.

If data_path is missing, the database in data directory is compacted

version

Prints out rai_node version

rai_node --version

vote_dump

Dump most recent votes from representatives

rai_node --vote_dump

Account Commands

account_create

Insert next deterministic key in to <WALLET>

rai_node --account_create --wallet=<WALLET>

account_get

Get account number for the <KEY>

rai_node --account_get --key=<KEY>

account_key

Get the public key for <ACCOUNT>

rai_node --account_key --account=<ACCOUNT>

data_path

Use the supplied <PATH> as the data directory

rai_node --data_path=<PATH>

Key Commands

key_create

Generates a adhoc random keypair and prints it to stdout

rai_node --key_create

key_expand

Derives public key and account number from <KEY>

rai_node --key_expand --key=<KEY>

Wallet Commands

wallet_add_adhoc

Insert <KEY> in to <WALLET>

rai_node --wallet_add_adhoc --wallet=<WALLET> --key=<KEY>

wallet_create

Creates a new wallet and prints the ID

rai_node --wallet_create

wallet_change_seed

Changes seed for <WALLET> to <KEY>

rai_node --wallet_change_seed --wallet=<WALLET> --key=<KEY>

wallet_decrypt_unsafe

Decrypts <WALLET> using <PASSWORD>.

rai_node --wallet_decrypt_unsafe --wallet=<WALLET> --password=<PASSWORD>

WARNING: THIS WILL PRINT YOUR PRIVATE KEY AND SEED TO STDOUT

Note: If you haven't set a password yet, use --wallet_decrypt_unsafe --wallet=<WALLET>

wallet_destroy

Destroys <WALLET> and all keys it contains

rai_node --wallet_destroy --wallet=<WALLET>

wallet_import

Imports keys in <FILE_PATH> using <PASSWORD> in to <WALLET>

rai_node --wallet_import --file=<FILE_PATH> --wallet=<WALLET> --password=<PASSWORD>

wallet_list

Dumps wallet IDs and public keys to stdout

rai_node --wallet_list

wallet_remove

Remove <ACCOUNT> from <WALLET>

rai_node --wallet_remove --wallet=<WALLET> --account=<ACCOUNT>

wallet_representative_get

Prints default representative for <WALLET>

rai_node --wallet_representative_get --wallet=<WALLET>

wallet_representative_set

Set <ACCOUNT> as the default representative for <WALLET>

rai_node --wallet_representative_set --wallet=<WALLET> --account=<ACCOUNT>

Debug Commands

diagnostics

Runs internal diagnostics

rai_node --diagnostics

debug_block_count

Display the number of block

rai_node --debug_block_count

debug_bootstrap_generate

Generate bootstrap sequence of blocks

rai_node --debug_bootstrap_generate

debug_dump_representatives

List representatives and weights

rai_node --debug_dump_representatives

debug_frontier_count

Display the number of accounts

rai_node --debug_frontier_count

debug_mass_activity

Generates fake debug activity

rai_node --debug_mass_activity

debug_profile_generate

Profile work generation

rai_node --debug_profile_generate

debug_profile_verify

Profile work verification

rai_node --debug_profile_verify

debug_profile_kdf

Profile kdf function

rai_node --debug_profile_kdf

debug_verify_profile

Profile signature verification

rai_node --debug_verify_profile

debug_profile_sign

Profile signature generation

rai_node --debug_profile_sign

debug_opencl

Profile OpenCL work generation for <DEVICE> on <PLATFORM> using <THREADS> count.

rai_node --debug_opencl --platform=<PLATFORM> --device=<DEVICE> --threads=<THREADS>

To retrieve available platforms & devices run --diagnostics