filecoin-lotus

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.

Creating an App using the Control Panel

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.

Deploy to DO

Creating an App using the API

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"

Getting Started After Deploying filecoin-lotus

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.

  1. Check on the status of the lotus daemon. The status should be “active (running)”
snap services
  1. View logs from the lotus daemon
snap logs lotus-filecoin.lotus-daemon
  1. Check that lotus is participating in the network. If you just started your droplet, you might see an error until the initial snapshot is downloaded. Give it some time – the api will start after the initial download.
lotus net peers
  1. Welcome to the Filecoin network!

https://docs.filecoin.io/