Fantom
Set up your Fantom Opera node.
Prerequisites
- Setup your Axelar validator
- Minimum hardware requirements: 4 vCPU+, 100GB+ free storage space.
- MacOS or Ubuntu 18.04+
- Build-essential packages
- Golang
- Official Documentation
Install required dependencies
In order to build the go-opera
, you first need to install all of the required dependencies.
1. Update and install build-essential
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y build-essential
2. Install golang
wget https://dl.google.com/go/go1.17.5.linux-amd64.tar.gz
sudo tar -xvf go1.17.5.linux-amd64.tar.gz -C /usr/local/
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
Install Go-Opera
1. Checkout and build go-opera
Use the commands below to clone the go-opera
repository, checkout correct version and compile the binary.
git clone https://github.com/Fantom-foundation/go-opera.git
cd go-opera/
git checkout release/1.0.2-rc.5
make
2. Download the genesis file
cd build/
wget https://opera.fantom.network/testnet.g
3. Start the Fantom Opera node
In this guide we are using tmux
to run the opera-go
process in the background. In case you don't have tmux installed, then you can do so with:
apt install tmux
Now create a new session called fantom
:
tmux new -s fantom
Once you're inside the newly created tmux session, start the opera-go
:
./opera --genesis testnet.g --http --http.addr=0.0.0.0 --http.vhosts="*" --http.corsdomain="*" --ws --ws.origins="*"
Your node will now start to synchronize with the network. It will take several hours before the node is fully synced.
Important: To detach from your current tmux session and keep it running in the background, use CTRL + B D
. If you want to re-attach to the existing session, then use tmux attach-session -t fantom
Test your Fantom RPC connection
Once your node is fully synced, you can run a cURL request to see the status of your node:
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "eth_syncing", "params":[]}' localhost:18545
If the node is successfully synced, the output from above will print {"jsonrpc":"2.0","id":1,"result":false}
EVM RPC endpoint URL
In order for Axelar Network to connect to your Fantom node, your rpc_addr
should be exposed in this format:
http://IP:PORT
Example:
http://192.168.192.168:18545