Daemon Usage
14

Files

Storage

The Wallet Daemon storage file is located in the following folder:

  • Windows: <inline-code>%LOCALAPPDATA%\enjin-wallet-daemon\storage.json<inline-code>
  • macOS: <inline-code>$HOME\enjin-wallet-daemon\storage.json<inline-code>
  • Linux: <inline-code>$HOME\enjin-wallet-daemon\storage.json<inline-code>

Logs

All Wallet Daemon activity is logged in the following files:

  • Windows: <inline-code>%LOCALAPPDATA%\enjin-wallet-daemon\enjin-wallet-daemon-<DATE>.json<inline-code>
  • macOS: <inline-code>$HOME\enjin-wallet-daemon\enjin-wallet-daemon-<DATE>.json<inline-code>
  • Linux: <inline-code>$HOME\enjin-wallet-daemon\enjin-wallet-daemon-<DATE>.json<inline-code>

Command List

  • <inline-code>account new<inline-code>
  • <inline-code>account import <PRIVATE KEY><inline-code>
  • <inline-code>link <CODE><inline-code>
  • <inline-code>run<inline-code>
  • <inline-code>backup <FILENAME><inline-code>
  • <inline-code>decrypt<inline-code>
  • <inline-code>decrypt <FILENAME><inline-code>

account new

Create a new account for this wallet. The wallet must not already have an address. If it does, this command will do nothing and you will get an error.

If you want to create a new wallet address, you have to move or rename the storage file first.

Example:

Bash
node src/main.js account new

acount import

This command takes a single argument: the private key to use with the wallet. The format of the private key must be a 160 bit hexadecimal string prefixed with 0x.

Example:

Bash
node src/main.js account import 0x37986485ee024917a6cb7748c60d5d58214c7ca6e9a1d5d3880e2d94983012b7

link

Connect the wallet daemon with a Trusted Cloud identity. You can link with many different identities, on many different Trusted Clouds.

Example:

Bash
node src/main.js link B3DJF4

run

Start the wallet daemon. This is the default command if none is supplied. The application will keep running until it's stopped (Ctrl-C) or killed.

Example:

Bash
node src/main.js run

backup

Copy the current storage file to the specified location. The file remains safely encrypted.

Example:

Bash
node src/main.js backup C:\Users\User\enjin-wallet-daemon-backup.json

decrypt

Read an encrypted storage file and output its content to the console. If no storage file is specified, the default storage is read.

Examples:

Bash
node src/main.js decrypt C:\Users\User\enjin-wallet-daemon-backup.json
node src/main.js decrypt
Previous
next
On This Page