# 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 49

#### 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 312

#### getExtraHex()

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

#### getFee()

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

#### getFullHex() → {string}

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

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

##### Returns:

is full transaction hex

Type
  string

#### getHash()

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

#### getHeight()

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

#### 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 197

#### getLastFailedHash()

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

#### getLastFailedHeight()

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

#### getLastRelayedTimestamp()

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

#### getMaxUsedBlockHash()

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

#### getMaxUsedBlockHeight()

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

#### getMetadata()

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

#### getNote()

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

#### getNumConfirmations()

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

#### 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 294

#### 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 89

#### getPrunableHash()

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

#### 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 240

##### 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 225

##### Returns:

is pruned transaction hex

Type
  string

#### getRctSigPrunable()

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

#### getRctSignatures()

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

#### getReceivedTimestamp()

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

#### getRelay()

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

#### getRingSize()

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

#### getSignatures()

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

#### getSize()

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

#### getTransfers()

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

#### getTxSet()

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

#### getUnlockHeight()

Overrides:
  - MoneroTx#getUnlockHeight
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 161

#### getVersion()

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

#### getWeight()

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

#### inTxPool()

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

#### isConfirmed()

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

#### isDoubleSpendSeen()

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

#### isFailed()

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

#### isIncoming()

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

#### isKeptByBlock()

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

#### isLocked()

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

#### isMinerTx()

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

#### isOutgoing()

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

#### isRelayed()

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

#### 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 53

#### 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 316

#### setExtraHex()

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

#### setFee()

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

#### setFullHex()

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

#### setHash()

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

#### setInTxPool()

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

#### 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 138

#### setIsDoubleSpend()

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

#### setIsFailed()

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

#### setIsIncoming()

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

#### setIsKeptByBlock()

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

#### setIsLocked()

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

#### setIsMinerTx()

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

#### setIsOutgoing()

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

#### setIsRelayed()

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

#### setKey()

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

#### setLastFailedHash()

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

#### setLastFailedHeight()

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

#### setLastRelayedTimestamp()

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

#### setMaxUsedBlockHash()

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

#### setMaxUsedBlockHeight()

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

#### setMetadata()

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

#### setNote()

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

#### setNumConfirmations()

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

#### 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 298

#### 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 93

#### setPrunableHash()

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

#### setPrunableHex()

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

#### setPrunedHex()

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

#### setRctSigPrunable()

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

#### setRctSignatures()

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

#### setReceivedTimestamp()

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

#### setRelay()

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

#### setRingSize()

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

#### setSignatures()

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

#### setSize()

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

#### setTxSet()

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

#### setUnlockHeight()

Overrides:
  - MoneroTx#setUnlockHeight
Source:
  - src/main/js/daemon/model/MoneroTx.js, line 165

#### setVersion()

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

#### setWeight()

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

#### 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