Configuration File

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

Editing the Config

Copy the following to your nano editor. You also need to replace IP_ADDRESS_OF_YOUR_NODE with the public IP Address of your server. To get the public IP of your node you can run this command: curl -w "\n" Also you'll need to provide the ws_node_endpoint, and http_node_endpoint for whichever Ethereum client you've selected. It will look different depending on which client you select:
  • Rivet - wss://
  • Infura - wss://
  • Alchemy - wss://
# 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://"
signing_key_file = "/etc/chainflip/keys/signing_key_file"
# Ethereum RPC endpoints (websocket and http for redundancy).
# 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"

Pointing to the Ethereum Client

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 ws_node_endpoint and http_node_endpoint in 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 [ws|http]://[6|5]

Saving the File

Once you're happy with your configuration file and have inserted a valid endpoint address, exit and save the file by using CTRL(Control)+x and when prompted type Y then hit Enter.