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" ifconfig.me. 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://SOME_LONG_SECRET_INFORMATION.goerli.ws.rivet.cloud
  • Infura - wss://goerli.infura.io/ws/v3/SOME_LONG_SECRET_INFORMATION
  • Alchemy - wss://eth-goerli.g.alchemy.com/v2/SOME_LONG_SECRET_INFORMATION
# Default configurations for the CFE
[node_p2p]
node_key_file = "/etc/chainflip/keys/node_key_file"
ip_address = "IP_ADDRESS_OF_YOUR_NODE"
port = "8078"
[state_chain]
ws_endpoint = "ws://127.0.0.1:9944"
signing_key_file = "/etc/chainflip/keys/signing_key_file"
[eth]
# 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"
[signing]
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]://127.0.0.1:854[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.