-
-
Notifications
You must be signed in to change notification settings - Fork 10
Installation and configuration
Command below will install adamant-console globally:
npm install -g adamant-console
Console will be installed to the /usr/lib/node_modules/adamant-console/
path.
For update, check currently installed adamant-console:
npm list -g adamant-console | grep adamant
or the same using Console:
adm client version
Check latest available adamant-console in npm:
npm view adamant-console version
If newer version is available, update adamant-console:
npm update -g adamant-console
If you want to build it from source, clone the repository and install dependencies.
git clone https://github.com/Adamant-im/adamant-console/ #fetching code from github
npm install #installing dependencies
chmod a+x index.js #making executable
link index.js /usr/local/bin/adm #create symlink
Then you can use Adamant-console as adm
, alternatively you can run it without making executable:
node index.js
Config is in JSON format.
System searches for custom config file in these locations (order priority):
~/.adm/config.json
, ./config.json
.
If no config is found, config.default.json
is taken.
Data in custom config is merged with config.default.json
, so you don't need to define already defined values, if you don't want to override them.
Config file name (config.json) can be overwritten using ADM_CONFIG_FILENAME environment variable.
Default config file name location (~/.adm) can be overwritten using ADM_CONFIG_PATH environment variable.
By default, network
parameter set to testnet
. If you want to work with mainnet, set the value to mainnet
.
Adamant-console connects to ADAMANT nodes on your choice, it can be any node, locally installed on your machine, or from other side of the Earth. As Console doesn’t transfer passphrases to nodes, it is safe to connect to any node. Important thing, node you connect should have API enabled.
So, you do not need ADAMANT node installed, while you still can do that.
If you prefer to use JSON RPC, you may set port for communication using rpc
/ port
parameter. Default is 5080.
You can choose ADAMANT account (wallet) to interact (i. e., to send tokens from) by setting passPhrase
parameter in config.
Note, that --passPhrase
command parameter has more priority, than passPhrase
parameter in config.