Tell computer what do.
We need to create the engine config file.
sudo mkdir -p /etc/chainflip/config
sudo nano /etc/chainflip/config/Default.toml
Copy the following to your
nanoeditor. You also need to replace
IP_ADDRESS_OF_YOUR_NODEwith the public IP Address of your server. To get the public IP of your node you can run this command:
curl -w "\n" ifconfig.me. Also you'll need to provide the
http_node_endpointfor whichever Ethereum client you've selected. It will look different depending on which client you select:
- Rivet -
- Infura -
- Alchemy -
# Default configurations for the CFE
node_key_file = "/etc/chainflip/keys/node_key_file"
ip_address = "IP_ADDRESS_OF_YOUR_NODE"
port = "8078"
ws_endpoint = "ws://127.0.0.1:9944"
signing_key_file = "/etc/chainflip/keys/signing_key_file"
# Ethereum RPC endpoints (websocket and http for redundancy).
ws_node_endpoint = "WSS_ENDPOINT_FROM_ETHEREUM_CLIENT"
http_node_endpoint = "HTTPS_ENDPOINT_FROM_ETHEREUM_CLIENT"
# Ethereum private key file path. This file should contain a hex-encoded private key.
private_key_file = "/etc/chainflip/keys/ethereum_key_file"
db_file = "/etc/chainflip/data.db"
If you followed the instructions in Prerequisites, you will probably have an account with an Ethereum RPC provider (Alchemy, Infura, Rivet, etc.). You must change the
http_node_endpointin the above file to RPC URLs given to you by these services. You must have both a Websocket (wss) and HTTPS connection in order for the software to function.
Important: Make sure that you are not using a mainnet RPC, this will not work!
You can try other node connections as well. Geth with an open websocket server enabled will accept connections through port 8546 by default. If it's running on the same machine as your validator, you can use [
Once you're happy with your configuration file and have inserted a valid endpoint address, exit and save the file by using
CTRL(Control)+xand when prompted type