export = MoneroTxQuery; /** *

Configuration to query transactions.

* * @class * @extends {MoneroTxWallet} */ declare class MoneroTxQuery extends MoneroTxWallet { /** *

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.

* * @param {object} config - tx query configuration * @param {string} config.hash - get a tx with this hash * @param {string[]} config.txHashes - get txs with these hashes * @param {int} config.height - get txs with this height * @param {int} config.minHeight - get txs with height greater than or equal to this height * @param {int} config.maxHeight - get txs with height less than or equal to this height * @param {boolean} config.isConfirmed - get confirmed or unconfirmed txs * @param {boolean} config.inTxPool - get txs in or out of the tx pool * @param {boolean} config.relay - get txs with the same relay status * @param {boolean} config.isRelayed - get relayed or non-relayed txs * @param {boolean} config.isFailed - get failed or non-failed txs * @param {boolean} config.isMinerTx - get miner or non-miner txs * @param {boolean} config.isLocked - get locked or unlocked txs * @param {boolean} config.isIncoming - get txs with or without incoming transfers * @param {boolean} config.isOutgoing - get txs with or without outgoing transfers * @param {string} config.paymentId - get txs with this payment ID * @param {string} config.paymentIds - get txs with a payment ID among these payment IDs * @param {boolean} config.hasPaymentId - get txs with or without payment IDs * @param {object|MoneroTransferQuery} config.transferQuery - get txs with transfers matching this transfer query * @param {object|MoneroOutputQuery} config.outputQuery - get txs with outputs matching this output query */ constructor(config: { hash: string; txHashes: string[]; height: any; minHeight: any; maxHeight: any; isConfirmed: boolean; inTxPool: boolean; relay: boolean; isRelayed: boolean; isFailed: boolean; isMinerTx: boolean; isLocked: boolean; isIncoming: boolean; isOutgoing: boolean; paymentId: string; paymentIds: string; hasPaymentId: boolean; transferQuery: object | MoneroTransferQuery; outputQuery: object | MoneroOutputQuery; }); getHashes(): any; setHashes(hashes: any): MoneroTxQuery; hasPaymentId(): any; setHasPaymentId(): MoneroTxQuery; getPaymentIds(): any; setPaymentIds(paymentIds: any): MoneroTxQuery; setHeight(height: any): MoneroTxQuery; getMinHeight(): any; setMinHeight(minHeight: any): MoneroTxQuery; getMaxHeight(): any; setMaxHeight(maxHeight: any): MoneroTxQuery; getIncludeOutputs(): any; setIncludeOutputs(includeOutputs: any): MoneroTxQuery; getTransferQuery(): any; setTransferQuery(transferQuery: any): MoneroTxQuery; getOutputQuery(): any; setOutputQuery(outputQuery: any): MoneroTxQuery; meetsCriteria(tx: any, queryChildren: any): boolean; } import MoneroTxWallet = require("./MoneroTxWallet"); import MoneroTransferQuery = require("./MoneroTransferQuery"); import MoneroOutputQuery = require("./MoneroOutputQuery");