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
|
Extends
Methods
copy()
- Overrides:
- Source:
getAccountIndex()
- Overrides:
- Source:
getAmount()
- Overrides:
- Source:
getIndex()
- Overrides:
- Source:
getKeyImage()
- Overrides:
- Source:
getMaxAmount()
getMinAmount()
getRingOutputIndices()
- Overrides:
- Source:
getStealthPublicKey()
- Overrides:
- Source:
getSubaddressIndex()
- Overrides:
- Source:
getSubaddressIndices()
getTx()
- Overrides:
- Source:
getTxQuery()
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()
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()
setMinAmount()
setRingOutputIndices()
- Overrides:
- Source:
setStealthPublicKey()
- Overrides:
- Source:
setSubaddressIndex()
- Overrides:
- Source:
setSubaddressIndices()
setTx()
- Overrides:
- Source:
setTxQuery()
toJson()
- Overrides:
- Source:
toString()
- Overrides:
- Source: