Class MoneroTransferQuery

Configuration to query wallet transfers.

Hierarchy

Constructors

  • Construct the transfer query.

    Example:

    // get incoming transfers to account 0, subaddress 1
    let transfers = await wallet.getTransfers({
       accountIndex: 0,
       subaddressIndex: 0
    });

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

    Parameters

    Returns MoneroTransferQuery

Properties

accountIndex: number
address: string
addresses: string[]
amount: bigint
destinations: MoneroDestination[]
hasDestinations: boolean
isIncoming: boolean
subaddressIndex: number
subaddressIndices: number[]
txQuery: Partial<MoneroTxQuery>

Methods

  • Returns string

  • Returns string[]

  • Returns boolean

  • Returns number

  • Returns number[]

  • Parameters

    Returns boolean

  • Updates this transaction by merging the latest information from the given transaction.

    Merging can modify or build references to the transfer given so it should not be re-used or it should be copied before calling this method.

    Parameters

    Returns MoneroTransfer

    the merged transfer

  • Convenience method to query outputs by the locked state of their tx.

    Parameters

    • isLocked: boolean

      specifies if the output's tx must be locked or unlocked (optional)

    Returns MoneroTransferQuery

    this query for chaining

  • Parameters

    • indent: number = 0

    Returns string

Generated using TypeDoc