Filecoin
Set up your Filecoin Mainnet or Testnet Hyperspace node.
Prerequisites
- Setup your Axelar validator
- Minimum hardware requirements: 8-core CPU and 32 GiB RAM. Models with support for Intel SHA Extensions (AMD Zen or Intel Ice Lake or newer) will significantly speed things up.
- MacOS or Linux
- Build-essential packages
- Golang
- Official Documentation Testnet Hyperspace
- Official Documentation
Install required dependencies
In order to build lotus
, you first need to install all of the required dependencies.
1. Build lotus from source
You can view the official documentation for details on how to build lotus from source here. Instructions below are for Ubuntu.
Install dependencies
Install Rustup
Install Golang
You must compile the lotus daemon with the required Go version.
Clone the lotus repository
If you have an AMD Zen or Intel Ice Lake CPU (i.e 10th gen Intel Core/3rd gen Xeon) or newer, enable FFI optimizations by setting the env vars below.
Checkout the correct release and build the daemon.
git checkout releases;
make clean all;
sudo make install
git checkout v1.20.3-hyperspace-nv21-rpc-p01;
make clean hyperspacenet;
sudo make install
2. Starting the Daemon
For systemd service files, the makefile provides a template that can be installed.
Download the latest pruned snapshot.
aria2c -x5 https://forest-archive.chainsafe.dev/latest/mainnet/
aria2c -x5 https://forest-archive.chainsafe.dev/latest/calibnet/
Import the snapshot
Modify the lotus config file ~/.lotus/config.toml
. First, enable the Eth RPC needed by vald. Also set the P2P configuration to use a static port with your public IP.
You also need to enable the SplitStore
feature to reduce disk usage. You can read more on this here.
ColdStoreType
needs to be set to messages
to allow querying FEVM transactions.
For systemd service files, the makefile provides a template that can be installed.
In the generated systemd file /etc/systemd/system/lotus-daemon.service
, under [Service]
,
set the LOTUS_PATH
env variable to the config folder (e.g. /home/ubuntu/.lotus
).
Start the daemon
Tail the logs to see if the daemon is syncing
You should eventually (approx 5-10 minutes) see something like this in the logs:
You can also run the following command to wait on the status of your node, you will have to wait a few minutes before this command runs:
3. Test your Filecoin RPC connection
Once the node is running you can test the RPC.
Once your node is fully synced, query the latest block number using the following EVM query:
Verify that the block number matches the latest block number on the explorer.
Configure vald
In order for vald
to connect to your Filecoin node, your rpc_addr
should be exposed in
vald’s config.toml