# Class: MoneroTx

## MoneroTx(state)

Represents a transaction on the Monero network.

## Constructor

#### new MoneroTx(state)

Construct the model.

##### Parameters:

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

Source:
  - src/main/js/daemon/model/MoneroTx.js, line 11

### Methods

#### copy()

Source:
  - src/main/js/daemon/model/MoneroTx.js, line 415

#### getBlock()

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

#### getExtra()

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

#### getFee()

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

#### getFullHex() → {string}

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

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

##### Returns:

is full transaction hex

Type
  string

#### getHash()

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

#### getHeight()

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

#### getInputs()

Source:
  - src/main/js/daemon/model/MoneroTx.js, line 289

#### getKey()

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

#### getLastFailedHash()

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

#### getLastFailedHeight()

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

#### getLastRelayedTimestamp()

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

#### getMaxUsedBlockHash()

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

#### getMaxUsedBlockHeight()

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

#### getMetadata()

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

#### getNumConfirmations()

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

#### getOutputIndices()

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

#### getOutputs()

Source:
  - src/main/js/daemon/model/MoneroTx.js, line 298

#### getPaymentId()

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

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

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.

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

##### Returns:

is pruned transaction hex

Type
  string

#### getRctSigPrunable()

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

#### getRctSignatures()

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

#### getReceivedTimestamp()

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

#### getRelay()

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

#### getRingSize()

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

#### getSignatures()

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

#### getSize()

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

#### getUnlockTime() → {BigInteger}

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

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

##### Returns:

the minimum height or timestamp for the transactin to unlock

Type
  BigInteger

#### getVersion()

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

#### getWeight()

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

#### inTxPool()

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

#### isConfirmed()

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

#### isDoubleSpendSeen()

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

#### isFailed()

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

#### isKeptByBlock()

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

#### isMinerTx()

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

#### isRelayed()

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

#### merge(tx) → {MoneroTx}

Updates this transaction by merging the latest information from the given transaction.

##### Parameters:

Name | Type | Description
--- | --- | ---
`tx` |  | is the transaction to update this transaction with

Source:
  - src/main/js/daemon/model/MoneroTx.js, line 443

##### Returns:

this for method chaining

Type
  MoneroTx

#### setBlock()

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

#### setExtra()

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

#### setFee()

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

#### setFullHex()

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

#### setHash()

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

#### setInTxPool()

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

#### setInputs()

Source:
  - src/main/js/daemon/model/MoneroTx.js, line 293

#### setIsConfirmed()

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

#### setIsDoubleSpend()

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

#### setIsFailed()

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

#### setIsKeptByBlock()

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

#### setIsMinerTx()

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

#### setIsRelayed()

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

#### setKey()

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

#### setLastFailedHash()

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

#### setLastFailedHeight()

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

#### setLastRelayedTimestamp()

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

#### setMaxUsedBlockHash()

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

#### setMaxUsedBlockHeight()

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

#### setMetadata()

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

#### setNumConfirmations()

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

#### setOutputIndices()

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

#### setOutputs()

Source:
  - src/main/js/daemon/model/MoneroTx.js, line 302

#### setPaymentId()

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

#### setPrunableHash()

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

#### setPrunableHex()

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

#### setPrunedHex()

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

#### setRctSigPrunable()

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

#### setRctSignatures()

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

#### setReceivedTimestamp()

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

#### setRelay()

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

#### setRingSize()

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

#### setSignatures()

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

#### setSize()

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

#### setUnlockTime()

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

#### setVersion()

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

#### setWeight()

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

#### toJson()

Source:
  - src/main/js/daemon/model/MoneroTx.js, line 419

#### toString()

Source:
  - src/main/js/daemon/model/MoneroTx.js, line 545