Skip to content

NiKrause/lighthouse-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple Lighthouse (Filecoin) example https://docs.lighthouse.storage/ for uploading and downloading files to and from Filecoin via lighthouse sdk.

Usage

  1. pnpm install
  2. npm install -g @lighthouse-web3/sdk
  3. lighthouse-web3 --help
  4. lighthouse-web create-wallet # add publicKey to LIGHTHOUSE_PUBLIC_KEY in .env
  5. lighthouse-web api-key --new # add api-key to LIGHTHOUSE_API_KEY .env
  6. pnpm start
  7. curl https://gateway.lighthouse.storage/ipfs/CID # Make sure to replace 'CID' with the actual Content Identifier of your file.Retrieve File: https://docs.lighthouse.storage/lighthouse-1/how-to/retrieve-file

About

A simple lighthouse example to upload and download a file to and from Filecoin!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published