Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TransferAsset

Hierarchy

Implements

Index

Constructors

constructor

Methods

addApproval

  • addApproval(approval: string): void

addBurns

addInputs

addOrder

  • addOrder(params: object): this
  • Add an Order to create.

    Parameters

    • params: object
      • inputIndices: number[]

        The indices of inputs affected by the order

      • order: Order

        An order to apply to the transfer transaction.

      • outputIndices: number[]

        The indices of outputs affected by the order

      • spentQuantity: U64Value

        A spent quantity of the asset to give(from) while transferring.

    Returns this

addOutputs

burn

burns

fee

  • fee(): U64 | null

getTransferredAsset

  • getTransferredAsset(index: number): Asset

getTransferredAssets

  • getTransferredAssets(): Asset[]

hashWithoutScript

  • hashWithoutScript(params?: undefined | object): H256
  • Get a hash of the transaction that doesn't contain the scripts. The hash is used as a message to create a signature for a transaction.

    Parameters

    • Optional params: undefined | object

    Returns H256

    A hash.

input

inputs

networkId

orders

output

outputs

rlpBytes

  • rlpBytes(): Buffer

seq

  • seq(): number | null

setFee

  • setFee(fee: U64Value): void

setSeq

  • setSeq(seq: number): void

sign

toEncodeObject

  • toEncodeObject(): any[]

toJSON

tracker

  • tracker(): H256

type

  • type(): string

unsignedHash

  • unsignedHash(): H256

Generated using TypeDoc