<aside> 👀 Refer to this document to learn more about aggregator-driven approaches to creating storage deals on FVM, RaaS, and dapps and DAOs!

</aside>

Quickstart: Upload Your First 🐕 Onto Filecoin via FVM

<aside> 🌌 These instructions operate on the Hyperspace testnet. You can use the Filfox explorer to view the activity on this testnet.

</aside>

[Adopted from *https://www.tldraw.com/r/v2_c_M7QpjoG42dpa5c2E4N2hG*](https://res.craft.do/user/full/1a0bac4f-3e4f-5fb0-1242-ed52acd856c3/doc/135a6e08-8bb4-870e-4715-495775efb1cb/3fdd6e7d-4c8a-4a28-888e-21d0a327d2d2)

Adopted from *https://www.tldraw.com/r/v2_c_M7QpjoG42dpa5c2E4N2hG*

Step 0: Get a Great 🐕 Pic!

Make sure you get a dog image you love! It may last on Filecoin / FVM for a long time! 😃

Step 1: Upload onto the FVM Data Depot

<aside> 👉 The data depot is here: https://data.lighthouse.storage/

</aside>

Think of the data depot as a dog shelter – a temporary place for the dog to sit on the internet while it finds its new home on the Filecoin network.

In addition to acting as temporary storage, the data depot prepares the image for upload to Filecoin. Concretely, it packages the file using content-addressing magic, so that Storage Providers (SPs) can later prove to the Filecoin network that your image is correctly stored by them.

Once the image is prepared, the data depot will give you a link to the package (a CAR file), as well as some additional metadata. You will supply this link and the metadata to deal client smart contract, from where the Storage Provider (SP) will read it.

⬆️ Go and upload an image now!

After you have uploaded the image, you should have:

(A1) An https URL to the prepared package containing your image (CAR file) (carLink) (eg this)

(A2) The size of your image in bytes (pieceSize)

(A3) The size of the CAR file that represents A in bytes (carSize)

(A4) The piece CID of A (commP)

Step 2a: Deploy your own Deal Client Contract

The deal client contract coordinates the handshaking required on FVM to find and download your dog into the Filecoin network.

You can deploy your own simple CC by running yarn hardhat deploy on the fevm-hardhat-kit.

This will happen at the end, when Deploying DealClient... is reached.

You can get the address of your CC by looking at the output to DealClient deployed to:.

Now that it is deployed, you have a powerful agent you own on the FVM blockchain, ready to do your bidding to upload all kinds of data onto FVM.