Lighthouse
  • 👋Introduction
  • Quick Start
  • How To
    • 🔑Create an API Key
    • 🔼Upload Data
      • 📁File
      • 🔤Text/JSON
      • 🔀Buffer
    • 🔒Upload Encrypted Data
      • 📁File
      • 🔤Text/JSON
      • 🔐Encryption Authentication
        • 📝Method 1: Signed Message
        • ⚕️Method 2: JWT
        • 📲Method 3: Passkey
    • Encryption Features
      • 👯Share File
      • ❌Revoke Access
      • 🔑Check Access Conditions
      • 🚪Token Gating
      • Chains Supported
      • 📃Access Control Conditions
      • 🔓Decrypt File
        • 🌐Browser Decrypt File
        • 💻NodeJS Decrypt File
      • 🚪Access control with zkTLS
      • 👬Account Delegation Tutorial
    • 📂List Files
    • 💁File Info
    • 💰Get Balance
    • 🔁Retrieve File
    • 💾Check for Filecoin Deals
    • 🔄IPNS - Handle Mutable Data
    • 📦Migrate Files
    • 📌Pin CID
    • 💸Pay per use
    • Resize Image
    • 💻Use CLI Tools
  • zkTLS
  • 🤝Account Delegation
  • 💾Filecoin First
    • Usage
    • 💰Pay Per Deal
  • Tutorials
    • 💸Pay to View Application
    • Use Python SDK
    • 📝Update Content with Lighthouse IPNS
    • 📹Add Video Player in UI
    • ✅Document Verification with PoDSI
    • 🎨Minting NFTs on EVM Chains
    • 🪙Minting NFTs on Solana
    • 👩‍💻Programmable Storage with Lighthouse SDK and Filecoin
    • 🔐Secure File Sharing
    • Upload Encrypted Files
    • 📄Token Gating and Custom Contract
    • 🔑Token Gating NFTs
    • 🏖️Pushing File Metadata Onchain
    • Use Radix Wallet on Lighthouse Filesdapp
  • Concepts
    • Glossary
    • IPFS CID Transition to v1
  • Support
    • 📞Contact
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Filecoin First

Self Hosted RaaS

Last updated 1 year ago

Was this helpful?

Alternatively, developers can also self-host their own RaaS (Repair, Replication, Renewal worker).

A user deploys a smart contract that inherits from (refer ) which allows them to rely on their own contract deployment to submit and complete data deals.

Interacting with the Smart Contracts

Start an instance of the self-hosted RaaS by deploying a contract that inherits from IAggregatorOracle (yarn deploy in the )

The comes with a frontend that allows you to upload your file to Lighthouse, get a CID for the uploaded file, then seamlessly submit the CID to the smart contract (accessible via yarn start).

To use this, do yarn service in the terminal and proceed through the frontend as you normally would - uploading any random file and then registering the workers using the autocompleted CID that appears in the box.

If you want to register the workers manually for a job that you didn't upload, simply paste in the known CID of your file and register the jobs anyway. Hosting your own Raas would give you freedom to configure many specs along with using different aggregator as well.

If you're hosting your own RaaS service (specifically, the one in the ), there's an event listener inside that you can use to listen for new deal requests.

For more information on self-hosting RaaS, check out the .

💾
👮‍♀️
RaaS Starter Kit
RaaS Starter Kit README
IAggregatorOracle.sol
here
RaaS Starter Kit
RaaS Starter Kit
RaaS Starter Kit Frontend