Class: MoneroOutputQuery

MoneroOutputQuery(config)

Configuration to query wallet outputs.

Constructor

new MoneroOutputQuery(config)

Construct the output query.

Example:

// get available outputs in account 0 with a minimum amount
let outputs = await wallet.getOutputs({
   isSpent: false,
   isLocked: false,
   accountIndex: 0,
   minAmount: new BigInteger("750000")
});

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

Parameters:
Name Type Description
config object output query configuration (optional)
Properties
Name Type Description
accountIndex int get outputs in this account index
subaddressIndex int get outputs in this subaddress index
subaddressIndices Array.<int> get outputs in these subaddress indices
amount BigInteger get outputs with this amount
minAmount BigInteger get outputs with amount greater than or equal to this amount
maxAmount BigInteger get outputs with amount less than or equal to this amount
isSpent boolean get spent xor unspent outputs
isFrozen boolean get frozen xor thawed outputs
keyImage object | MoneroKeyImage get outputs with a key image matching fields defined in this key image
Properties
Name Type Description
hex string get outputs with this key image hex
signature string get outputs with this key image signature
txQuery object | MoneroTxQuery get outputs whose tx match this tx query
Source:

Extends

Methods

copy()

Overrides:
Source:

getAccountIndex()

Overrides:
Source:

getAmount()

Overrides:
Source:

getIndex()

Overrides:
Source:

getKeyImage()

Overrides:
Source:

getMaxAmount()

Source:

getMinAmount()

Source:

getRingOutputIndices()

Overrides:
Source:

getStealthPublicKey()

Overrides:
Source:

getSubaddressIndex()

Overrides:
Source:

getSubaddressIndices()

Source:

getTx()

Overrides:
Source:

getTxQuery()

Source:

isFrozen()

Indicates if this output has been deemed 'malicious' and will therefore not be spent by the wallet.
Overrides:
Source:
Returns:
Boolean is whether or not this output is frozen

isLocked()

Overrides:
Source:

isSpent()

Overrides:
Source:

meetsCriteria()

Source:

merge(output)

Updates this output by merging the latest information from the given output. Merging can modify or build references to the output given so it should not be re-used or it should be copied before calling this method.
Parameters:
Name Type Description
output is the output to merge into this one
Overrides:
Source:

setAccountIndex()

Overrides:
Source:

setAmount()

Overrides:
Source:

setIndex()

Overrides:
Source:

setIsFrozen()

Overrides:
Source:

setIsSpent()

Overrides:
Source:

setKeyImage()

Overrides:
Source:

setMaxAmount()

Source:

setMinAmount()

Source:

setRingOutputIndices()

Overrides:
Source:

setStealthPublicKey()

Overrides:
Source:

setSubaddressIndex()

Overrides:
Source:

setSubaddressIndices()

Source:

setTx()

Overrides:
Source:

setTxQuery()

Source:

toJson()

Overrides:
Source:

toString()

Overrides:
Source: