Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Protected _blockHeight

_blockHeight: number = -1

Protected _blockVersion

_blockVersion: number = BlockVersion.NotDefined

Protected _changeAddress

_changeAddress: string

Protected _coinData

_coinData: CoinData = new CoinData()

Protected _extraFee

_extraFee: number = 0

Protected _fee_price

_fee_price: number = MIN_FEE_PRICE_1024_BYTES

Protected _remark

_remark: Buffer = Buffer.from([])

Protected _signature

_signature: Buffer = Buffer.from([])

Protected _system_tx

_system_tx: boolean = true

Protected _time

_time: number = new Date().getTime()

Protected _txData

_txData: ITxDataYellowCardData = {} as any

Protected _type

_type: TransactionType = TransactionType.YellowCard

Methods

Protected addOutput

  • addOutput(address: string, amount: number, lockTime?: undefined | number): number

Protected calculateFee

  • calculateFee(): number

change

  • change(address: string): this

Protected clearSignatures

  • clearSignatures(): void

Protected coinData

config

fee

  • fee(amount: number): this

getDigest

getFee

  • getFee(): number

getHash

getType

remark

  • remark(remark: string | Buffer): this

Protected resetInputs

  • resetInputs(): void

send

serialize

sign

  • sign(privateKey: string): this

Protected size

  • size(): number

time

  • time(time: number): this

toBytes

  • toBytes(): Buffer

toObject

toRawData

Protected updateInputsAndOutputs

  • updateInputsAndOutputs(extraFee?: number): void

Protected validate

  • validate(): boolean

Static _fromRawData

Static Protected fromAddress

Static fromBytes

Static fromRawData

Static fromUtxos

Object literals

Protected _config

_config: object

blocksMinedTimeout

blocksMinedTimeout: any = cfg.nuls.api.blocksMinedTimeout

safeCheck

safeCheck: true = true