Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • Request to purchase content operation constructor

    Parameters

    • uri: string

      uri of the content

    • consumer: ChainObject

      chain object id of the buyer's account

    • price: AssetAmount

      price of content, can be equal to or higher then specified in content

    • publicElGamal: PubKey

      public el gamal key

    • Default value regionCode: Regions = Regions.All

      region code of the consumer

    • Optional fee: Fee

      fee for the operation or asset id, if left undefined the fee will be computed in DCT asset. When set, the request might fail if the asset is not convertible to DCT or conversion pool is not large enough

    Returns PurchaseContentOperation

Properties

consumer

consumer: ChainObject

extensions

extensions: any[] = []

Optional fee

Optional feeAssetId

feeAssetId: ChainObject

price

publicElGamal

publicElGamal: PubKey

regionCode

regionCode: number

type

uri

uri: string

Methods

setFee

  • setFee(fee?: Fee): void

Static create

Generated using TypeDoc