Function createContractTx

  • Parameters

    • nftId: number

      The NFT Id of the contract.

    • duration: DurationType

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

    • acceptanceType: 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: RentFeeType

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

    • renterCancellationFee: 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: 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}`>

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

    Name

    createContractTx

    Summary

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

Generated using TypeDoc