Once you have Unchained installed, you need to configure a few things first.
If you are running Unchained with Docker, your configuration file will be at
the following path from in your installation directory:
conf/conf.worker.yaml
You can find your secrets file at:
conf/secrets.worker.yaml
If you are running Unchained directly, you can pass the path to your config file
using -c, and the path to your secrets file using -s. You can also specify the
path to the context DB directory using -x.
The default values are:
- Config file : ./conf.yaml
- Secrets file : ./secrets.yaml
- Context DB : ./context
The minimum required config for running a worker node is the following:
log: info
name: <NODE_NAME>
broker:
uri: wss://shinobi.brokers.kenshi.io
rpc:
ethereum:
- <ETHEREUM_RPC_ADDRESS>
plugins:
uniswap:
schedule:
ethereum: 5000
tokens:
- name: ethereum
chain: ethereum
pair: "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"
delta: 12
invert: true
unit: USDT
send: true
- name: arbitrum
chain: ethereum
pair: "0x59354356Ec5d56306791873f567d61EBf11dfbD5"
delta: 0
invert: false
unit: ETH
send: true
- name: bitcoin
chain: ethereum
pair: "0x9db9e0e53058c89e5b94e29621a205198648425b"
delta: 2
invert: false
unit: USDT
send: true
Please note that the value <NODE_NAME> and <ETHEREUM_RPC_ADDRESS>
values need to be modified.
This section is a work in progress. See
A Practical Guide to Unchained: Index Events and Token Prices on Any EVM Chain .