https://parseclabs.readthedocs.io/en/latest/
npm install parsec-nodehttps://parseclabs.readthedocs.io/en/latest/
- Node.js 8+
- build-essential
- Python 2.X (required by node-gyp, only for building)
npm install parsec-node -g or yarn global add parsec-node
parsec [ARGS] --config=path-to-config.json
To enable logs use DEBUG env variable (see: https://www.npmjs.com/package/debug). Debug namepaces:
- tendermint
- parsec
- parsec:period
- parsec:tx
- abci (built-in from js-abci)
Example: DEBUG=tendermint,parsec:tx parsec
- no-validators-updates — disabling validators set updates (default: false)
- port — tx endpoint port (default: 3000)
- rpcaddr — host for http RPC server (default: localhost)
- rpcport — port for http RPC server (default: 8645)
- wsaddr — host for websocket RPC server (default: localhost)
- wsport — port for websocket RPC server (default: 8646)
- p2pPort — port for p2p connection (default: random)
- config — path to config file
- version — print version of the node
- bridgeAddr — parsec bridge contract address
- rootNetwork — ethereum provider url
- genesis — genesis string
- network — network id
- peers — array of peers
Dev config file: parsec-testnet-beta.json
Testnet config file: N/A
Mainnet config file: N/A
You can use Terraform to spin up an Amazon EC2 instance with the node. You will need an SSH keypair to access the EC2 instance. Generate a new keypair or use an existing one.
```
terraform init setup/cloud
terraform apply -var ssh_public_file="~/.ssh/parsec-testnet.pub" -var ssh_private_file="~/.ssh/parsec-testnet" -var network="testnet-beta" setup/cloud
Some useful commands once it is up and running:
- check the logs: ssh ubuntu@ssh ubuntu@
- start/stop/restart/status:
https://github.com/parsec-labs/parsec-contracts/wiki/Setting-up-local-development-environment
Dev: http://stake-dev.parseclabs.org/
Testnet: N/A
Mainnet: N/A