Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AssetOutPoint

AssetOutPoint consists of transactionHash and index, asset type, and amount.

  • The transaction that it points to must be either AssetMint or AssetTransfer.
  • Index is what decides which Asset to point to amongst the Asset list that transaction creates.
  • The asset type and amount must be identical to the Asset that it points to.

Hierarchy

  • AssetOutPoint

Index

Constructors

constructor

Properties

amount

amount: number

assetType

assetType: H256

index

index: number

Optional lockScriptHash

lockScriptHash: H256

Optional parameters

parameters: Buffer[]

transactionHash

transactionHash: H256

Methods

toEncodeObject

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

toJSON

  • toJSON(): object
  • Convert to an AssetOutPoint JSON object.

    Returns object

    An AssetOutPoint JSON object.

    • amount: number
    • assetType: string
    • index: number
    • transactionHash: string

Static fromJSON

Generated using TypeDoc