Function createContractTx

  • Name

    createContractTx

    Summary

    Creates an unsigned unsubmitted Create-Rent-Contract Transaction Hash for an NFT.

    Returns

    Unsigned unsubmitted Create-Rent-Contract Transaction Hash. The Hash is only valid for 5 minutes.

    Parameters

    • nftId: number

      The NFT Id of the contract.

    • duration: Rent.DurationType

      The contract duration : Fixed(EndBlock (a block number)) or Subscription(Period (a block number), MaxDuration (a block number), IsChangeable (a boolean))

    • acceptanceType: Rent.AcceptanceType

      The type of acceptance: automatic or manual (with or without whitelist)

    • renterCanRevoke: boolean

      A boolean to allow renter to cancel the contract once started

    • rentFee: Rent.RentFeeType

      The fee to rent the contract: a token amount or an NFT

    • renterCancellationFee: Rent.CancellationFeeType

      The fee to cancel the contract (due by the renter): No Fee (None), FixedTokens amount, FlexibleTokens (only for Fixed contract) amount or an NFT

    • renteeCancellationFee: Rent.CancellationFeeType

      The fee to cancel the contract (due by the rentee): No Fee (None), FixedTokens amount, FlexibleTokens (only for Fixed contract) amount or an NFT

    Returns Promise<`0x${string}`>

Generated using TypeDoc