Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AssetTransferOutput

An AssetTransferOutput consists of:

  • A lock script hash and parameters, which mark ownership of the asset.
  • An asset type and amount, which indicate the asset's type and quantity.

Hierarchy

  • AssetTransferOutput

Index

Constructors

constructor

Properties

amount

amount: number

assetType

assetType: H256

lockScriptHash

lockScriptHash: H256

parameters

parameters: Buffer[]

Methods

shardId

  • shardId(): number

toEncodeObject

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

toJSON

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

    Returns object

    An AssetTransferOutput JSON object.

    • amount: number
    • assetType: string
    • lockScriptHash: string
    • parameters: number[][]

Static fromJSON

Generated using TypeDoc