# Class: MoneroTxWallet

## MoneroTxWallet(state)

Models a Monero transaction with wallet extensions.

## Constructor

#### new MoneroTxWallet(state)

Construct the model.

##### Parameters:

Name | Type | Description
--- | --- | ---
`state` | MoneroTxWallet | object | is existing state to initialize from (optional)

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 15

### Extends

- MoneroTx

### Methods

#### copy()

Overrides:
  - MoneroTx#copy
Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 296

#### filterOutputs()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 208

#### filterTransfers()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 129

#### getBlock()

Overrides:
  - MoneroTx#getBlock
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 50

#### getChangeAddress()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 260

#### getChangeAmount()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 269

#### getExtra()

Overrides:
  - MoneroTx#getExtra
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 325

#### getExtraHex()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 287

#### getFee()

Overrides:
  - MoneroTx#getFee
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 99

#### getFullHex() → {string}

Get full transaction hex. Full hex = pruned hex + prunable hex.

Overrides:
  - MoneroTx#getFullHex
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 224

##### Returns:

is full transaction hex

Type
  string

#### getHash()

Overrides:
  - MoneroTx#getHash
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 63

#### getHeight()

Overrides:
  - MoneroTx#getHeight
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 59

#### getIncomingAmount()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 107

#### getIncomingTransfers()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 152

#### getInputSum()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 242

#### getInputs()

Overrides:
  - MoneroTx#getInputs
Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 170

#### getKey()

Overrides:
  - MoneroTx#getKey
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 210

#### getLastFailedHash()

Overrides:
  - MoneroTx#getLastFailedHash
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 379

#### getLastFailedHeight()

Overrides:
  - MoneroTx#getLastFailedHeight
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 370

#### getLastRelayedTimestamp()

Overrides:
  - MoneroTx#getLastRelayedTimestamp
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 183

#### getMaxUsedBlockHash()

Overrides:
  - MoneroTx#getMaxUsedBlockHash
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 397

#### getMaxUsedBlockHeight()

Overrides:
  - MoneroTx#getMaxUsedBlockHeight
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 388

#### getMetadata()

Overrides:
  - MoneroTx#getMetadata
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 316

#### getNote()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 224

#### getNumConfirmations()

Overrides:
  - MoneroTx#getNumConfirmations
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 153

#### getNumDummyOutputs()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 278

#### getOutgoingAmount()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 114

#### getOutgoingTransfer()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 161

#### getOutputIndices()

Overrides:
  - MoneroTx#getOutputIndices
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 307

#### getOutputSum()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 251

#### getOutputs()

Overrides:
  - MoneroTx#getOutputs
Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 189

#### getPaymentId()

Overrides:
  - MoneroTx#getPaymentId
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 90

#### getPrunableHash()

Overrides:
  - MoneroTx#getPrunableHash
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 262

#### getPrunableHex() → {string}

Get prunable transaction hex which is hex that is removed from a pruned transaction. Full hex = pruned hex + prunable hex.

Overrides:
  - MoneroTx#getPrunableHex
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 253

##### Returns:

is the prunable transaction hex

Type
  string

#### getPrunedHex() → {string}

Get pruned transaction hex. Full hex = pruned hex + prunable hex.

Overrides:
  - MoneroTx#getPrunedHex
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 238

##### Returns:

is pruned transaction hex

Type
  string

#### getRctSigPrunable()

Overrides:
  - MoneroTx#getRctSigPrunable
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 343

#### getRctSignatures()

Overrides:
  - MoneroTx#getRctSignatures
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 334

#### getReceivedTimestamp()

Overrides:
  - MoneroTx#getReceivedTimestamp
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 192

#### getRelay()

Overrides:
  - MoneroTx#getRelay
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 117

#### getRingSize()

Overrides:
  - MoneroTx#getRingSize
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 108

#### getSignatures()

Overrides:
  - MoneroTx#getSignatures
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 406

#### getSize()

Overrides:
  - MoneroTx#getSize
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 271

#### getTransfers()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 118

#### getTxSet()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 80

#### getUnlockTime() → {BigInteger}

Get the minimum height or timestamp for the transactions to unlock.

Overrides:
  - MoneroTx#getUnlockTime
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 167

##### Returns:

the minimum height or timestamp for the transactin to unlock

Type
  BigInteger

#### getVersion()

Overrides:
  - MoneroTx#getVersion
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 72

#### getWeight()

Overrides:
  - MoneroTx#getWeight
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 280

#### inTxPool()

Overrides:
  - MoneroTx#inTxPool
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 144

#### isConfirmed()

Overrides:
  - MoneroTx#isConfirmed
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 135

#### isDoubleSpendSeen()

Overrides:
  - MoneroTx#isDoubleSpendSeen
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 201

#### isFailed()

Overrides:
  - MoneroTx#isFailed
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 361

#### isIncoming()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 89

#### isKeptByBlock()

Overrides:
  - MoneroTx#isKeptByBlock
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 352

#### isLocked()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 233

#### isMinerTx()

Overrides:
  - MoneroTx#isMinerTx
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 81

#### isOutgoing()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 98

#### isRelayed()

Overrides:
  - MoneroTx#isRelayed
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 126

#### merge(tx)

Updates this transaction by merging the latest information from the given transaction. Merging can modify or build references to the transaction given so it should not be re-used or it should be copied before calling this method.

##### Parameters:

Name | Type | Description
--- | --- | ---
`tx` |  | is the transaction to merge into this transaction

Overrides:
  - MoneroTx#merge
Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 309

#### setBlock()

Overrides:
  - MoneroTx#setBlock
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 54

#### setChangeAddress()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 264

#### setChangeAmount()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 273

#### setExtra()

Overrides:
  - MoneroTx#setExtra
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 329

#### setExtraHex()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 291

#### setFee()

Overrides:
  - MoneroTx#setFee
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 103

#### setFullHex()

Overrides:
  - MoneroTx#setFullHex
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 228

#### setHash()

Overrides:
  - MoneroTx#setHash
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 67

#### setInTxPool()

Overrides:
  - MoneroTx#setInTxPool
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 148

#### setIncomingTransfers()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 156

#### setInputSum()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 246

#### setInputs()

Overrides:
  - MoneroTx#setInputs
Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 177

#### setIsConfirmed()

Overrides:
  - MoneroTx#setIsConfirmed
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 139

#### setIsDoubleSpend()

Overrides:
  - MoneroTx#setIsDoubleSpend
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 205

#### setIsFailed()

Overrides:
  - MoneroTx#setIsFailed
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 365

#### setIsIncoming()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 93

#### setIsKeptByBlock()

Overrides:
  - MoneroTx#setIsKeptByBlock
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 356

#### setIsLocked()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 237

#### setIsMinerTx()

Overrides:
  - MoneroTx#setIsMinerTx
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 85

#### setIsOutgoing()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 102

#### setIsRelayed()

Overrides:
  - MoneroTx#setIsRelayed
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 130

#### setKey()

Overrides:
  - MoneroTx#setKey
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 214

#### setLastFailedHash()

Overrides:
  - MoneroTx#setLastFailedHash
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 383

#### setLastFailedHeight()

Overrides:
  - MoneroTx#setLastFailedHeight
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 374

#### setLastRelayedTimestamp()

Overrides:
  - MoneroTx#setLastRelayedTimestamp
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 187

#### setMaxUsedBlockHash()

Overrides:
  - MoneroTx#setMaxUsedBlockHash
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 401

#### setMaxUsedBlockHeight()

Overrides:
  - MoneroTx#setMaxUsedBlockHeight
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 392

#### setMetadata()

Overrides:
  - MoneroTx#setMetadata
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 320

#### setNote()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 228

#### setNumConfirmations()

Overrides:
  - MoneroTx#setNumConfirmations
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 157

#### setNumDummyOutputs()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 282

#### setOutgoingTransfer()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 165

#### setOutputIndices()

Overrides:
  - MoneroTx#setOutputIndices
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 311

#### setOutputSum()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 255

#### setOutputs()

Overrides:
  - MoneroTx#setOutputs
Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 196

#### setPaymentId()

Overrides:
  - MoneroTx#setPaymentId
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 94

#### setPrunableHash()

Overrides:
  - MoneroTx#setPrunableHash
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 266

#### setPrunableHex()

Overrides:
  - MoneroTx#setPrunableHex
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 257

#### setPrunedHex()

Overrides:
  - MoneroTx#setPrunedHex
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 242

#### setRctSigPrunable()

Overrides:
  - MoneroTx#setRctSigPrunable
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 347

#### setRctSignatures()

Overrides:
  - MoneroTx#setRctSignatures
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 338

#### setReceivedTimestamp()

Overrides:
  - MoneroTx#setReceivedTimestamp
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 196

#### setRelay()

Overrides:
  - MoneroTx#setRelay
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 121

#### setRingSize()

Overrides:
  - MoneroTx#setRingSize
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 112

#### setSignatures()

Overrides:
  - MoneroTx#setSignatures
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 410

#### setSize()

Overrides:
  - MoneroTx#setSize
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 275

#### setTxSet()

Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 84

#### setUnlockTime()

Overrides:
  - MoneroTx#setUnlockTime
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 171

#### setVersion()

Overrides:
  - MoneroTx#setVersion
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 76

#### setWeight()

Overrides:
  - MoneroTx#setWeight
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 284

#### toJson()

Overrides:
  - MoneroTx#toJson
Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 65

#### toString()

Overrides:
  - MoneroTx#toString
Source:
  - src/main/js/wallet/model/MoneroTxWallet.js, line 360