StreamNFT
Home
  • 👋Taking NFT mainStream!
  • Introduction
    • 👨‍💻StreamNFT Protocol
    • 🏃Roadmap
    • 🔐Security Audit
  • StreamNFT PROTOCOL
    • 🔓Rent Protocol
    • 💰Loan Protocol
      • How does a loan work?
    • 💰Utility Protocol
      • How does it work?
    • 🎮Web3 Gaming Services
      • Matchmaking
        • Token Gated Matchmaking
    • ®️ERC-7066
      • Overview
  • UseCases : Case Studies
    • 🤝NFT Rentals
    • 💎Ephemeral / Consumable NFTs
    • 📝NFT Mandates
    • 🎆Post-Mint Utility
    • 💼Partial Payment at Mint
  • For Developers
    • NFT Rental
    • API Reference
      • ⚙️Utility Integration
        • 👥Client
          • Register
          • Verify
          • Redeem Code
          • Get All Claimed Utility User
        • 👨‍💻Developer
          • Get All Benefits By Collection
      • 👾Rental Integration
        • User NFTs
        • Raw Transactions (Advanced)
      • 💰Loan Integration
        • User Loans
        • Raw Transactions (Advanced)
      • 🛒Marketplace
    • SDK Reference
      • Utility Integration
      • Rental Integration
        • EVM
        • Solana
      • Loan Integration
        • EVM
        • Solana
      • Marketplace
    • On-Chain Reference
    • Wallet Provider Reference
      • 🔏Rental
        • EVM
        • Solana
      • 🔐Loan
        • EVM
        • Solana
    • ⛓️Supported Chains
  • For Users
    • 📚Step By Step Rent Tutorial
    • 📚Step By Step Loan tutorial
    • 📚Step by Step Utility Tutorial
      • Step by Step Utility Creation Tutorial
      • Step by step utility discover tutorial
    • 💡Hedera Token Association
    • 🔏Privacy Policy
    • 🔑Terms of Service
  • Community
    • 🌐Website
    • 👽Discord
    • 🐦Twitter
Powered by GitBook
On this page
  • Initialize
  • [Process]
  • [Cancel]
  • [Expire]

Was this helpful?

  1. For Developers
  2. SDK Reference
  3. Rental Integration

Solana

SDK optional parameters:

true
false

secretKey

sign using secret key

sign using wallet adapter

raw

return raw transaction

execute transaction on-chain

Initialize

Initializes NFT rental

stream.initRent(
  rate: BN, // rent price per minute in lamport
  offerDurationInMinutes: BN, // lend offer duration in minutes
  fixedDurationInMinutes: BN, // fixed rent duration in minutes
  rentIsFixed: boolean, // if a lender decides to define fixed rent duration
  ownerRevenue: BN, // owner share for revenue
  trialType: TrialType | null, // not null if not on trial
  trialFee: BN | null, // not null if on trial
  mint: PublicKey, // mint address of NFT
  whiteList?: PublicKey, //optional
  secretKey?: string, //Optional (providing secret send on-chain transaction)
  raw?: boolean //Optional (return raw transaction)
)

[Process]

Processes NFT rental

processRent(
  timeInMinutes: BN, // rental duration in minutes
  nftMint: PublicKey, // mint address of NFT
  secretKey?: string, //Optional (providing secret send on-chain transaction)
  raw?: boolean //Optional (return raw transaction)
) 

[Cancel]

Cancels the nft rental

cancelRent(
  nftMint: PublicKey, // mint address of NFT
  secretKey?: string, //Optional (providing secret send on-chain transaction)
  raw?: boolean
)

[Expire]

Expire NFT rental. This gets triggered by our revocation system.

expireRent(
  nftMint: PublicKey, // mint address of NFT
  secretKey?: string,
  raw?: boolean
)
PreviousEVMNextLoan Integration

Last updated 6 months ago

Was this helpful?