Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Protected _address

_address: Address

Protected _amount

_amount: number

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 = MAX_FEE_PRICE_1024_BYTES

Protected _remark

_remark: Buffer = Buffer.from([])

Protected _signature

_signature: Buffer = Buffer.from([])

Protected _system_tx

_system_tx: boolean = false

Protected _time

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

Protected _txData

_txData: ITxDataWithdrawData = {} as any

Protected _type

_type: TransactionType = TransactionType.Withdraw

Methods

Protected addOutput

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

address

amount

  • amount(amount: number): this

Protected calculateFee

  • calculateFee(): number

change

  • change(address: string): this

Protected clearSignatures

  • clearSignatures(): void

Protected coinData

config

depositHash

  • depositHash(hash: Hash): this

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(): 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