Basic Usage



  • Rust rustc >= 1.58.1
  • Rust WASM target wasm32-unknown-unknown
rustup install stable
rustup target add wasm32-unknown-unknown
  • OS Base-Devel/Build-Essential
  • Clang compiler
  • OpenCL bindings
# Ubuntu
sudo apt install build-essential clang

# Archlinux
sudo pacman -S base-devel clang


make release

Forest Import Snapshot Mode

Before running forest in the normal mode you must seed the database with the Filecoin state tree from the latest snapshot. To do that, we will download the latest snapshot provided by Protocol Labs and start forest using the --import-snapshot flag. After the snapshot has been successfully imported, you can start forest without the --import-snapshot flag.


Download the latest snapshot provided by Protocol Labs:

curl -sI | perl -ne '/x-amz-website-redirect-location:\s(.+)\.car/ && print "$1.sha256sum\n$"' | xargs wget

If desired, you can check the checksum using the instructions here.

Import the snapshot using forest:

forest --target-peer-count 50 --encrypt-keystore false --import-snapshot /path/to/snapshot/file

Forest Synchronization Mode



Start the forest node:

forest --target-peer-count 50 --encrypt-keystore false