Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Output

A transaction output.

Hierarchy

  • Output

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Output(owner: string, amount: BN): Output
  • Parameters

    • owner: string
    • amount: BN

    Returns Output

Properties

amount

amount: BN

The value of this output.

owner

owner: string

The new owner of this output.

Methods

hash

  • hash(): Buffer
  • Returns the hash of this output for use in signatures.

    Returns Buffer

toArray

  • toArray(): Buffer[]
  • Serializes the output to an array that can be encoded as RLP.

    Returns Buffer[]

Static zero

  • Returns a 'zero' output - that is, an output whose fields are all zero. Used in TransactionBody objects to represent null outputs.

    Returns Output

Generated using TypeDoc