Options
All
  • Public
  • Public/Protected
  • All
Menu

Class to handle the protocol TxDataReward type http://dev.nuls.io/protocol/transaction.html#TX-TYPE-COINBASE

Hierarchy

Index

Properties

Methods

Properties

Static PLACE_HOLDER

PLACE_HOLDER: Buffer = PLACE_HOLDER

Methods

Static read

Static size

  • size(): number

Static write

  • write(buf: Buffer, offset: number): number
  • Writes txDataReward to buf at the specified offset

    Parameters

    • buf: Buffer

      Buffer object where the txDataReward will be written

    • offset: number

      Number of bytes to skip before starting to write.

    Returns number

    Offset plus the number of bytes that has been written