Class: MoneroTxQuery

MoneroTxQuery(config)

Configuration to query transactions.

Constructor

new MoneroTxQuery(config)

Construct the transaction query.

Example:

// get transactions with unlocked incoming transfers to account 0
let txs = await wallet.getTxs({
   isLocked: false,
   transferQuery: {
     isIncoming: true,
     accountIndex: 0
   }
});

All configuration is optional. All transactions are returned except those that don't meet criteria defined in this query.

Parameters:
Name Type Description
config object tx query configuration
Properties
Name Type Description
hash string get a tx with this hash
txHashes Array.<string> get txs with these hashes
height int get txs with this height
minHeight int get txs with height greater than or equal to this height
maxHeight int get txs with height less than or equal to this height
isConfirmed boolean get confirmed or unconfirmed txs
inTxPool boolean get txs in or out of the tx pool
relay boolean get txs with the same relay status
isRelayed boolean get relayed or non-relayed txs
isFailed boolean get failed or non-failed txs
isMinerTx boolean get miner or non-miner txs
isLocked boolean get locked or unlocked txs
isIncoming boolean get txs with or without incoming transfers
isOutgoing boolean get txs with or without outgoing transfers
paymentId string get txs with this payment ID
paymentIds string get txs with a payment ID among these payment IDs
hasPaymentId boolean get txs with or without payment IDs
transferQuery object | MoneroTransferQuery get txs with transfers matching this transfer query
inputQuery object | MoneroOutputQuery get txs with inputs matching this input query
outputQuery object | MoneroOutputQuery get txs with outputs matching this output query
Source:

Extends

Methods

copy()

Overrides:
Source:

filterOutputs()

Overrides:
Source:

filterTransfers()

Overrides:
Source:

getBlock()

Overrides:
Source:

getChangeAddress()

Overrides:
Source:

getChangeAmount()

Overrides:
Source:

getExtra()

Overrides:
Source:

getExtraHex()

Overrides:
Source:

getFee()

Overrides:
Source:

getFullHex() → {string}

Get full transaction hex. Full hex = pruned hex + prunable hex.
Overrides:
Source:
Returns:
is full transaction hex
Type
string

getHash()

Overrides:
Source:

getHashes()

Source:

getHeight()

Overrides:
Source:

getIncludeOutputs()

Source:

getIncomingAmount()

Overrides:
Source:

getIncomingTransfers()

Overrides:
Source:

getInputQuery()

Source:

getInputs()

Overrides:
Source:

getInputSum()

Overrides:
Source:

getKey()

Overrides:
Source:

getLastFailedHash()

Overrides:
Source:

getLastFailedHeight()

Overrides:
Source:

getLastRelayedTimestamp()

Overrides:
Source:

getMaxHeight()

Source:

getMaxUsedBlockHash()

Overrides:
Source:

getMaxUsedBlockHeight()

Overrides:
Source:

getMetadata()

Overrides:
Source:

getMinHeight()

Source:

getNote()

Overrides:
Source:

getNumConfirmations()

Overrides:
Source:

getNumDummyOutputs()

Overrides:
Source:

getOutgoingAmount()

Overrides:
Source:

getOutgoingTransfer()

Overrides:
Source:

getOutputIndices()

Overrides:
Source:

getOutputQuery()

Source:

getOutputs()

Overrides:
Source:

getOutputSum()

Overrides:
Source:

getPaymentId()

Overrides:
Source:

getPaymentIds()

Source:

getPrunableHash()

Overrides:
Source:

getPrunableHex() → {string}

Get prunable transaction hex which is hex that is removed from a pruned transaction. Full hex = pruned hex + prunable hex.
Overrides:
Source:
Returns:
is the prunable transaction hex
Type
string

getPrunedHex() → {string}

Get pruned transaction hex. Full hex = pruned hex + prunable hex.
Overrides:
Source:
Returns:
is pruned transaction hex
Type
string

getRctSignatures()

Overrides:
Source:

getRctSigPrunable()

Overrides:
Source:

getReceivedTimestamp()

Overrides:
Source:

getRelay()

Overrides:
Source:

getRingSize()

Overrides:
Source:

getSignatures()

Overrides:
Source:

getSize()

Overrides:
Source:

getTransferQuery()

Source:

getTransfers()

Overrides:
Source:

getTxSet()

Overrides:
Source:

getUnlockHeight()

Overrides:
Source:

getVersion()

Overrides:
Source:

getWeight()

Overrides:
Source:

hasPaymentId()

Source:

inTxPool()

Overrides:
Source:

isConfirmed()

Overrides:
Source:

isDoubleSpendSeen()

Overrides:
Source:

isFailed()

Overrides:
Source:

isIncoming()

Overrides:
Source:

isKeptByBlock()

Overrides:
Source:

isLocked()

Overrides:
Source:

isMinerTx()

Overrides:
Source:

isOutgoing()

Overrides:
Source:

isRelayed()

Overrides:
Source:

meetsCriteria()

Source:

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:
Source:

setBlock()

Overrides:
Source:

setChangeAddress()

Overrides:
Source:

setChangeAmount()

Overrides:
Source:

setExtra()

Overrides:
Source:

setExtraHex()

Overrides:
Source:

setFee()

Overrides:
Source:

setFullHex()

Overrides:
Source:

setHash()

Overrides:
Source:

setHashes()

Source:

setHasPaymentId()

Source:

setHeight()

Source:

setIncludeOutputs()

Source:

setIncomingTransfers()

Overrides:
Source:

setInputQuery()

Source:

setInputs()

Overrides:
Source:

setInputSum()

Overrides:
Source:

setInTxPool()

Overrides:
Source:

setIsConfirmed()

Overrides:
Source:

setIsDoubleSpend()

Overrides:
Source:

setIsFailed()

Overrides:
Source:

setIsIncoming()

Overrides:
Source:

setIsKeptByBlock()

Overrides:
Source:

setIsLocked()

Overrides:
Source:

setIsMinerTx()

Overrides:
Source:

setIsOutgoing()

Overrides:
Source:

setIsRelayed()

Overrides:
Source:

setKey()

Overrides:
Source:

setLastFailedHash()

Overrides:
Source:

setLastFailedHeight()

Overrides:
Source:

setLastRelayedTimestamp()

Overrides:
Source:

setMaxHeight()

Source:

setMaxUsedBlockHash()

Overrides:
Source:

setMaxUsedBlockHeight()

Overrides:
Source:

setMetadata()

Overrides:
Source:

setMinHeight()

Source:

setNote()

Overrides:
Source:

setNumConfirmations()

Overrides:
Source:

setNumDummyOutputs()

Overrides:
Source:

setOutgoingTransfer()

Overrides:
Source:

setOutputIndices()

Overrides:
Source:

setOutputQuery()

Source:

setOutputs()

Overrides:
Source:

setOutputSum()

Overrides:
Source:

setPaymentId()

Overrides:
Source:

setPaymentIds()

Source:

setPrunableHash()

Overrides:
Source:

setPrunableHex()

Overrides:
Source:

setPrunedHex()

Overrides:
Source:

setRctSignatures()

Overrides:
Source:

setRctSigPrunable()

Overrides:
Source:

setReceivedTimestamp()

Overrides:
Source:

setRelay()

Overrides:
Source:

setRingSize()

Overrides:
Source:

setSignatures()

Overrides:
Source:

setSize()

Overrides:
Source:

setTransferQuery()

Source:

setTxSet()

Overrides:
Source:

setUnlockHeight()

Overrides:
Source:

setVersion()

Overrides:
Source:

setWeight()

Overrides:
Source:

toJson()

Overrides:
Source:

toString()

Overrides:
Source: