Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AssetMintTransaction

Creates a new asset type and that asset itself.

The owner of the new asset created can be assigned by a lock script hash and parameters.

  • A metadata is a string that explains the asset's type.
  • Supply defines the quantity of asset to be created. If set as null, it will be set as the maximum value of a 64-bit unsigned integer by default.
  • If approver exists, the approver must be the Signer of the Transaction when sending the created asset through AssetTransferTransaction.
  • If registrar exists, the registrar can transfer without unlocking.

Hierarchy

  • AssetMintTransaction

Index

Constructors

constructor

  • Parameters

    • data: object
      • allowedScriptHashes: H160[]

        Allowed lock script hashes of the asset.

      • approver: PlatformAddress | null

        A approver of the asset.

      • metadata: string | object

        A metadata of the asset.

      • networkId: NetworkId

        A network ID of the transaction.

      • output: AssetMintOutput
      • registrar: PlatformAddress | null

        A registrar of the asset.

      • shardId: number

        A shard ID of the transaction.

    Returns AssetMintTransaction

Properties

allowedScriptHashes

allowedScriptHashes: H160[]

approver

approver: PlatformAddress | null

metadata

metadata: string

networkId

networkId: NetworkId

output

registrar

registrar: PlatformAddress | null

shardId

shardId: number

Methods

rlpBytes

  • rlpBytes(): Buffer

toEncodeObject

  • toEncodeObject(): (string | number | string[] | Buffer[])[]

toJSON

Generated using TypeDoc