âī¸Quick Start
Last updated
Last updated
In this section, we will see how to
This guidance is in Nodejs, but in case you are using any other language, refer to the how-to section to get APIs that can be called directly.
1. Login into Lighthouse files dapp (https://files.lighthouse.storage/) 2. Go to the API key section and generate the key
You can also generate the API key from CLI
1. Install the lighthouse package in your Node application 2. Run the following script
You will get a response like this once file is successfully uploaded:
The file can be viewed from an IPFS gateway https://gateway.lighthouse.storage/ipfs/QmWC9AkGa6vSbR4yizoJrFMfmZh4XjZXxvRDknk2LdJff
The Filecoin deal can take up to 2 days to show up once the file is uploaded. To get Filecoin deal use the following function of the SDK
The response will look like this
Lighthouse aggregates files uploaded by multiple users into a 32GB CAR file and stores this CAR with a storage provider. To verify that your file was part of the Filecoin deal, you can use the PODSI verification. Refer to the Filecoin Virtual Machine section for more details.