Skip to main content
100%

Gist 4b02d1558eb34ecad764c3ccf5289600

✓ Published0🌍 Public
Aandrewxhill
Last edited Aug 27, 2021
Created on Aug 27, 2021

This example demonstrates a web interface for managing decentralized file storage on Filecoin, showing how users interact with a bridge API to store, deposit, release, and check the status of files. The code uses React hooks like `useState` and calls to a custom `api` object with methods such as `.store()`, `.addDeposit()`, `.releaseDeposit()`, and `.status()`, which handle file uploads, bridge deposits, fund releases, and deal status queries. Uploads are tracked in a state array, and responses include IPFS CIDs, while alerts and console warnings report errors or confirm actions. The visualization relies on the API's JSON responses rather than a rendering library.

AI-generated description

Similar vizzes