export = MoneroOutputQuery; /** * Configuration to query wallet outputs. * * @extends {MoneroOutputWallet} */ declare class MoneroOutputQuery extends MoneroOutputWallet { /** *

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.

* * @param {object} config - output query configuration (optional) * @param {int} config.accountIndex - get outputs in this account index * @param {int} config.subaddressIndex - get outputs in this subaddress index * @param {int[]} config.subaddressIndices - get outputs in these subaddress indices * @param {BigInteger} config.amount - get outputs with this amount * @param {BigInteger} config.minAmount - get outputs with amount greater than or equal to this amount * @param {BigInteger} config.maxAmount - get outputs with amount less than or equal to this amount * @param {boolean} config.isLocked - get locked xor unlocked outputs * @param {boolean} config.isSpent - get spent xor unspent outputs * @param {object|MoneroKeyImage} config.keyImage - get outputs with a key image matching fields defined in this key image * @param {string} config.keyImage.hex - get outputs with this key image hex * @param {string} config.keyImage.signature - get outputs with this key image signature * @param {object|MoneroTxQuery} config.txQuery - get outputs whose tx match this tx query */ constructor(config: { accountIndex: any; subaddressIndex: any; subaddressIndices: any[]; amount: BigInteger; minAmount: BigInteger; maxAmount: BigInteger; isLocked: boolean; isSpent: boolean; keyImage: object | any; }); getMinAmount(): any; setMinAmount(minAmount: any): MoneroOutputQuery; getMaxAmount(): any; setMaxAmount(maxAmount: any): MoneroOutputQuery; getTxQuery(): any; setTxQuery(txQuery: any): MoneroOutputQuery; getSubaddressIndices(): any; setSubaddressIndices(subaddressIndices: any): MoneroOutputQuery; /** * Convenience method to query outputs by the locked state of their tx. * * @param isLocked specifies if the output's tx must be locked or unlocked (optional) * @return {MoneroOutputQuery} this query for chaining */ setIsLocked(isLocked: any): MoneroOutputQuery; meetsCriteria(output: any, queryParent: any): boolean; } declare namespace MoneroOutputQuery { const _EMPTY_OUTPUT: MoneroOutputWallet; } import MoneroOutputWallet = require("./MoneroOutputWallet"); import BigInteger = require("../../common/biginteger");