clymene v0.1.0
Clymene Blockchain Application
Clymene is a next-generation crypto-currency and decentralized application platform, written entirely in JavaScript. It has bond and real estate market place modules
Index
Installation
Dependencies
The following dependencies need to be installed in order to run applications created with the clymene SDK:
Dependencies | Version |
---|---|
NodeJS | 12.22.1 |
From NPM
$ npm install -g clymene
$ clymene COMMAND
running command...
$ clymene (-v|--version|version)
clymene/0.0.8-rc-1 linux-x64 node-v12.22.3
$ clymene --help [COMMAND]
USAGE
$ clymene COMMAND
...
Command Topics
clymene account
- Commands relating to clymene accounts.clymene autocomplete
- display autocomplete installation instructionsclymene block
- Commands relating to clymene blocks.clymene blockchain
- Commands relating to clymene blockchain data.clymene config
- Commands relating to clymene node configuration.clymene forger-info
- Commands relating to clymene forger-info data.clymene forging
- Commands relating to clymene forging.clymene genesis-block
- Creates genesis block file.clymene hash-onion
- Create hash onions to be used by the forger.clymene help
- display help for clymeneclymene node
- Commands relating to clymene node.clymene passphrase
- Commands relating to clymene passphrases.clymene start
- Start Phaeton Core Node.clymene transaction
- Commands relating to clymene transactions.
Managing clymene Node
To start a clymene node as a background process, we recommend using a process management tool, such as PM2.
Example using PM2
npm i -g pm2
pm2 start "clymene start" --name clymene-mainnet
pm2 status
pm2 logs clymene-mainnet
For a more advanced options refer to PM2 documentation.
Configuring clymene Node
clymene start
supports flag and environment variable options to configure a node.
Also, custom configuration through JSON file is available through the --config, -c
flag.
Example
With custom config file ./custom-config.json
below
{
"network": {
"port": 5000,
},
"transactionPool": {
"maxTransactions": 8096,
"maxTransactionsPerAccount": 1024,
},
"forging": {
"delegates": [{
"encryptedPassphrase": "iterations=10&cipherText=0dbd21ac5c154dbb72ce90a4e252a64b692203a4f8e25f8bfa1b1993e2ba7a9bd9e1ef1896d8d584a62daf17a8ccf12b99f29521b92cc98b74434ff501374f7e1c6d8371a6ce4e2d083489&iv=98a89678d1ccd054b85e3b3c&salt=c9cb4e7783cacca6c0e1c210cb9252e1&tag=5c66c5e75a6241538695fb16d8f0cdc9&version=1",
"hashOnion": {
"count": 10000,
"distance": 1000,
"hashes": [
"aaf012545a584890a169cf57d8f7e688",
"f7a3fb976e50d882c709edb63bde4d9c",
"1bd121882cb1dee1107699001c2676fb",
"c4ad7d98da02c94ef8bda2f80d35290a",
"096f0e77f963face5e99b9db460ce45f",
"de3d0c34bdcbdcfa2b7b1871c99d4948",
"5deb5e369a98510932835d74768cf86c",
"c0cd6ce3f75256149c8fe5d0bffdc99a",
"1a32706893f1523db0c7bb81be5e55ac",
"7e8f1ea4aa317993152e1a6b55b16f25",
"5e5100bbd2c2d5e00197d4ec19102dd6"
]
},
"address": "9cabee3d27426676b852ce6b804cb2fdff7cd0b5"
}],
},
"plugins": {
"httpApi": {
"port": 7000,
},
},
}
Running a command will overwrite the default config and use the specified options.
clymene start -n devnet -c ./custom-config.json
For a more detailed understanding of configuration read this online documentation.
Tests
Automated tests
All automated tests will run with the below command.
npm test
Running a local development node
In order to run a node for a local test, in a root folder of clymene, run below command.
./bin/run start -n devnet --data-path ./devnet-data --port 3333 --api-ws --enable-http-api-plugin --http-api-plugin-port 3334 --enable-forger-plugin
This command will start a clymene node using data path ./devent-data
with HTTPAPI and Forger Plugins.
Data on the node can be obtained by commands like
./bin/run node:info --data-path ./devnet-data
./bin/run block:get 3 --data-path ./devnet-data