- Runs requests in parallel for maximum fee earning
- Configurable staking amount
- Automatic pruning of data to keep the node small
- Automatic claiming of fees and unstaking unbonded outcomes
- Re-staking on a mallicious stake
The validator node requires you to have node.js installed. After installing you can run:
npm installAfter this you need to login with your near credentials using:
npm install -g near-cli
near loginCopy the .env.example and name it .env and change the following options:
NEAR_MAX_STAKE_AMOUNTto the maximum amount you want to stake per resolution window. Default is 2.5 FLXNEAR_CREDENTIALS_STORE_PATHto the path where your.near-credentialsare stored. Must be the full path (Usually it's located in your home directory)NEAR_ACCOUNT_IDto the account id you previously logged in with (usingnear login)NEAR_CONTRACT_IDto the current oracle contractNEAR_NETWORK_IDeithertestnetormainnet
npm startIf everything went correctly you should see something like the following:
2021-04-28 10:30:37 info: 🤖 Starting oracle node v1.0.0 for NEAR..
2021-04-28 10:30:37 info: 🛠 Staking per request 2.50 FLX
2021-04-28 10:30:37 info: 🛠 Listening to all contracts
2021-04-28 10:30:37 info: 🔄 Syncing for near starting from request id 0
2021-04-28 10:30:59 info: ✅ Syncing completed for near
2021-04-28 10:30:37 info: 💸 Balance: 1440800.53 FLX, Staking: 0.00 FLX, Profit: 0.00 FLX, Jobs actively watching: 0
It can take some time for syncing to complete. Once it's finished it will start looking for jobs and execute them.