LibreBank Lightnode - oracle node used to fetch and push ETH rates to LibreBank emission & exchanger contracts.
- NodeJS v. 7.4+ (https://nodejs.org/en/)
- Build essentials package to your OS (needed for building some deps) For Debian-based linux you need intall build-essential package by apt. For Windows: latest Visual Studio C++ compiler.
- Any Ethereum node with WebSocket supports. We prefer geth (https://github.com/ethereum/go-ethereum/wiki/geth).
- Some Ether used to push data to smart-contract.
- MongoDB 3.0.12+
- Simple clone this repo and install deps using npm
git clone --recursive https://github.com/LibreCash/oracle-lightnode
cd oracle-lightnode
npm install
-
Configurate. Change configuration params at
config/default.json
file. -
Run ETH node in Websocket RPC mode. For geth you can use this command
For Mainnet:
geth --ws --wsapi db,eth,net,web3,personal --wsorigins *
For Rinkeby testnet:
geth --rinkeby --ws --wsapi db,eth,net,web3,personal --wsorigins *
- Run node
node cli/lightnode-cli.js
After installation procedure you need to configure some parameters in config/config.json
.
Project documentation located at docs
subfolder.
If you want to help us get better - create issue and PR.
Code released under the GPL licence.