How to store files with Boost on Filecoin
This tutorial goes through all the steps required to make a storage deal with Boost on Filecoin.
First, you need to initialise a new Boost client and also set the endpoint for a public Filecoin node. In this example we are using https://glif.io
The init
command will output your new wallet address, and warn you that the market actor is not initialised.
Then you need to send funds to the wallet, and add funds to the market actor (in the example below we are adding 1 FIL
).
You can use the boostx
utilities to add funds to the market actor:
You can confirm that the market actor has funds by running boost init
again.
After that you need to generate a car
file for data you want to store on Filecoin, and note down its payload-cid.
We recommend using go-car
CLI to generate the car file.
Then you need to calculate the commp
and piece size
for the generated car
file:
Place the generated car
file on a public HTTP server, so that a storage provider can later fetch it.
Finally, trigger an online storage deal with a given storage provider:
Last updated