This guide for running Aptos Public Fullnode.
Guide was successfully tested on Hetzner dedicated servers AX41-NVMe, AX51-NVMe, AX101.
Requirements
This is official requirement for fullnode:
- CPU: 8 cores, 16 threads (Intel Xeon Skylake or newer).
- RAM: 32GB
- SSD: 2TB
Installation from source
Step 1. Install packages and updates.
sudo apt update && sudo apt upgrade -y
sudo apt install make clang pkg-config libssl-dev libclang-dev build-essential git curl ntp jq llvm tmux htop screen unzip cargo cmake -y
Step 2. Prepare your development environment.
git clone https://github.com/aptos-labs/aptos-core.git
cd aptos-core
./scripts/dev_setup.sh
source ~/.cargo/env
Step 3. Setup your fullnode.
1) Check out the mainnet branch using:
git checkout --track origin/mainnet
2) cd into aptos-core directory:
cd aptos-core
3) Create a copy of the public fullnode configuration YAML template:
cp config/src/config/test_data/public_full_node.yaml fullnode.yaml
4) Download genesis.blob and waypoint.txt:
curl -O https://raw.githubusercontent.com/aptos-labs/aptos-networks/main/mainnet/genesis.blob
curl -O https://raw.githubusercontent.com/aptos-labs/aptos-networks/main/mainnet/waypoint.txt
5) Edit the fullnode.yaml:
- Specify the correct path to the waypoint.txt you just downloaded by editing the base.waypoint.from_file in the fullnode.yaml (By default it points to waypoint.txt in the current working directory).
- Provide the full path to the genesis.blob file for genesis_file_location key
- Specify the directory where on your server you want to store database for the data_dir key in the base list:
data_dir: «</home/my-aptos-node/data>»
6) Run the command via terminal for start your aptos public fullnode:
cargo run -p aptos-node --release -- -f ./fullnode.yaml
Congrats! You’ve successfully runned the aptos fullnode.