Class MosaicGlobalRestrictionTransactionV1Descriptor

Type safe descriptor used to generate a descriptor map for MosaicGlobalRestrictionTransactionV1Descriptor.

Set global rules to transfer a restrictable mosaic (V1, latest).

Constructors

Properties

Methods

Constructors

  • Creates a descriptor for MosaicGlobalRestrictionTransactionV1.

    Parameters

    • mosaicId: UnresolvedMosaicId

      Identifier of the mosaic being restricted. The mosaic creator must be the signer of the transaction.

    • referenceMosaicId: UnresolvedMosaicId

      Identifier of the mosaic providing the restriction key. The mosaic global restriction for the mosaic identifier depends on global restrictions set on the reference mosaic. Set reference_mosaic_id to 0 if the mosaic giving the restriction equals the mosaic_id.

    • restrictionKey: bigint

      Restriction key relative to the reference mosaic identifier.

    • previousRestrictionValue: bigint

      Previous restriction value.

    • newRestrictionValue: bigint

      New restriction value.

    • previousRestrictionType: MosaicRestrictionType

      Previous restriction type.

    • newRestrictionType: MosaicRestrictionType

      New restriction type.

    Returns MosaicGlobalRestrictionTransactionV1Descriptor

Properties

rawDescriptor: {
    mosaicId: UnresolvedMosaicId;
    newRestrictionType: MosaicRestrictionType;
    newRestrictionValue: bigint;
    previousRestrictionType: MosaicRestrictionType;
    previousRestrictionValue: bigint;
    referenceMosaicId: UnresolvedMosaicId;
    restrictionKey: bigint;
    type: string;
}

Type declaration

Methods

  • Builds a representation of this descriptor that can be passed to a factory function.

    Returns object

    Descriptor that can be passed to a factory function.