Filecoin is a distributed storage protocol. The lotus daemon provided in this image is a Filecoin implementation. Running the lotus daemon will enable users to participate in the Filecoin network by running the ’lotus’ command-line or through the lotus API. For users who wish to develop an application with the Filecoin blockchain, a daemon such as the one in this image is critical infrastructure.
Click the Deploy to DigitalOcean button to create a Droplet based on this 1-Click App. If you aren’t logged in, this link will prompt you to log in with your DigitalOcean account.
In addition to creating a Droplet from the filecoin-lotus 1-Click App using the control panel, you can also use the DigitalOcean API. As an example, to create a 4GB filecoin-lotus Droplet in the SFO2 region, you can use the following curl
command. You need to either save your API access token) to an environment variable or substitute it in the command below.
curl -X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer '$TOKEN'' -d \
'{"name":"choose_a_name","region":"sfo2","size":"s-2vcpu-4gb","image": "protocollabs-filecoinlotus-20-04"}' \
"https://api.digitalocean.com/v2/droplets"
The filecoin daemon in this image is configured to start automatically and sync with the filecoin blockchain.
ssh root@your_droplet_public_ipv4
if you are logging in immediately after creating the image, you might be surprised to see that the lotus daemon isn’t ready yet. This step involves downloading a large (30G) file. Don’t fret, it might take 15 or 20 minutes to download the initial chain snapshot, but the lotus API will start normally as soon as this step is finished.
snap services
snap logs lotus-filecoin.lotus-daemon
lotus net peers