A
A
Ankr Docs
Search…
Fantom Full Node
Fantom is a high-performance, scalable, customizable, and secure smart-contract platform. Fantom is permissionless, decentralized, and open-source.
Lachesis consensus algorithm: is an asynchronous, Byzantine Fault-Tolerant algorithm designed to achieve instant transaction finality.
The Fantom Opera mainnet has served more than 40M transactions with a daily growth of more than 500k transactions.

Quick Links

This guide will walk you through setting up and launching a Fantom Full Node that is Read only.
00 Prerequisites - Describes recommended and minimum hardware requirements 01 Install Dependencies - Download all the necessary dependencies required to set up and launch a Fantom Full Node. 02. Checkout and build go-opera 03 Launch your Node

00 Prerequisites

Minimal Hardware Requirements
4 core 8 RAM 1.5TB SSD
Recommended Hardware Requirements
8 core 16 RAM 1.5TB SSD
Ubuntu Server 20.04 LTS (64-bit).

Network Settings

    Open up port 22 for SSH
    Open port 5050 for both TCP and UDP traffic.

01 Install Dependencies

Whilst logged in as the new user via SSH
1.Install required Build Tools
1
# Install build-essentials
2
$ sudo apt-get install -y build-essential
Copied!
2. Install Go
1
# Install go
2
$ wget https://dl.google.com/go/go1.15.10.linux-amd64.tar.gz
3
$ sudo tar -xvf go1.15.10.linux-amd64.tar.gz
4
$ sudo mv go /usr/local
Copied!
    Export the required Go paths:
1
# Export go paths
2
$ vi ~/.bash_aliases
3
4
# Append the following lines
5
export GOROOT=/usr/local/go
6
export GOPATH=$HOME/go
7
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
Copied!
    Verify your Go installation
1
# Verify go installation
2
$ go version
Copied!

02. Checkout and build go-opera

1
# Checkout and build go-opera
2
$ git clone https://github.com/Fantom-foundation/go-opera.git
3
$ cd go-opera/
4
$ git checkout release/1.0.2-rc.5
5
$ make
Copied!
    Verify your Opera installation
1
$./build/opera help​
2
VERSION:1.0.2-rc.5
Copied!
    Ensure you have the latest version of a node for the Opera Network by checking this Fantom repo

03 Launch your Node

1.Download the Genesis file
1
mkdir -p $HOME/fantom
2
wget https://opera.fantom.network/mainnet.g - P $HOME/fantom/
Copied!
2. Start a read-only node
1
./build/opera --metrics --cache 64000 --genesis
2
$HOME/fantom/mainnet.g --nousb --http --http.addr '0.0.0.0' --http.port 8545 --http.corsdomain "*" --http.vhosts "*" --ws --ws.addr '0.0.0.0' --ws.port 8546 --ws.origins '0.0.0.0' --graphql --graphql.corsdomain '*' --graphql.vhosts '*' --datadir "$HOME/fantom/node" --http.api "net,eth,web3" --ws.api "net,eth,web3"
Copied!
Last modified 25d ago