Spin up a lite-node
Lite-nodes are a simplified node option that allows developers to perform lightweight tasks on a local node. This page covers how to spin up a lite node on your local machine.
Prerequisites
brew install go jq pkg-config hwloc coreutils rust
sudo apt update -y sudo apt install mesa-opencl-icd ocl-icd-opencl-dev gcc git jq pkg-config curl clang build-essential hwloc libhwloc-dev wget -ywget https://go.dev/dl/go1.21.7.linux-amd64.tar.gz sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.21.7.linux-amd64.tar.gz echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc && source ~/.bashrccurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh source "$HOME/.cargo/env"
Pre-build
git clone https://github.com/filecoin-project/lotus.git cd lotus/git tag -l 'v*' | grep -v '-' | sort -V -r | head -n 1v1.34.1git checkout v1.34.1
git clone https://github.com/filecoin-project/lotus.git cd lotusgit tag -l 'v*' | grep -v '-' | sort -V -r | head -n 1v1.34.1git checkout v1.34.1export LIBRARY_PATH=/opt/homebrew/lib export FFI_BUILD_FROM_SOURCE=1 export PATH="$(brew --prefix coreutils)/libexec/gnubin:/usr/local/bin:$PATH"
Build the binary
Start the node
Expose the API
Create a key
Send requests
Next steps
Last updated