Class MoneroTxQuery

Configuration to query transactions.

Hierarchy

Constructors

Properties

Methods

copy filterOutputs filterTransfers getBlock getChangeAddress getChangeAmount getExtra getExtraHex getFee getFullHex getHasPaymentId getHash getHashes getHeight getInTxPool getIncludeOutputs getIncomingAmount getIncomingTransfers getInputQuery getInputSum getInputs getInputsWallet getIsConfirmed getIsDoubleSpendSeen getIsFailed getIsIncoming getIsKeptByBlock getIsLocked getIsMinerTx getIsOutgoing getIsRelayed getKey getLastFailedHash getLastFailedHeight getLastRelayedTimestamp getMaxHeight getMaxUsedBlockHash getMaxUsedBlockHeight getMetadata getMinHeight getNote getNumConfirmations getNumDummyOutputs getOutgoingAmount getOutgoingTransfer getOutputIndices getOutputQuery getOutputSum getOutputs getOutputsWallet getPaymentId getPaymentIds getPrunableHash getPrunableHex getPrunedHex getRctSigPrunable getRctSignatures getReceivedTimestamp getRelay getRingSize getSignatures getSize getTransferQuery getTransfers getTxSet getUnlockTime getVersion getWeight meetsCriteria merge setBlock setChangeAddress setChangeAmount setExtra setExtraHex setFee setFullHex setHasPaymentId setHash setHashes setHeight setInTxPool setIncludeOutputs setIncomingTransfers setInputQuery setInputSum setInputs setInputsWallet setIsConfirmed setIsDoubleSpendSeen setIsFailed setIsIncoming setIsKeptByBlock setIsLocked setIsMinerTx setIsOutgoing setIsRelayed setKey setLastFailedHash setLastFailedHeight setLastRelayedTimestamp setMaxHeight setMaxUsedBlockHash setMaxUsedBlockHeight setMetadata setMinHeight setNote setNumConfirmations setNumDummyOutputs setOutgoingTransfer setOutputIndices setOutputQuery setOutputSum setOutputs setOutputsWallet setPaymentId setPaymentIds setPrunableHash setPrunableHex setPrunedHex setRctSigPrunable setRctSignatures setReceivedTimestamp setRelay setRingSize setSignatures setSize setTransferQuery setTxSet setUnlockTime setVersion setWeight toJson toString mergeIncomingTransfer

Constructors

  • 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.

    Parameters

    Returns MoneroTxQuery

Properties

changeAddress: string
changeAmount: bigint
extra: Uint8Array
extraHex: string
fee: bigint
fullHex: string
hasPaymentId: boolean
hash: string
hashes: string[]
height: number
inTxPool: boolean
includeOutputs: boolean
incomingTransfers: MoneroIncomingTransfer[]
inputQuery: Partial<MoneroOutputQuery>
inputSum: bigint
inputs: MoneroOutput[]
isConfirmed: boolean
isDoubleSpendSeen: boolean
isFailed: boolean
isIncoming: boolean
isKeptByBlock: boolean
isLocked: boolean
isMinerTx: boolean
isOutgoing: boolean
isRelayed: boolean
key: string
lastFailedHash: string
lastFailedHeight: number
lastRelayedTimestamp: number
maxHeight: number
maxUsedBlockHash: string
maxUsedBlockHeight: number
metadata: string
minHeight: number
note: string
numConfirmations: number
numDummyOutputs: number
outgoingTransfer: MoneroOutgoingTransfer
outputIndices: number[]
outputQuery: Partial<MoneroOutputQuery>
outputSum: bigint
outputs: MoneroOutput[]
paymentId: string
paymentIds: string[]
prunableHash: string
prunableHex: string
prunedHex: string
rctSigPrunable: any
rctSignatures: any
receivedTimestamp: number
relay: boolean
ringSize: number
signatures: string[]
size: number
transferQuery: Partial<MoneroTransferQuery>
unlockTime: bigint
version: number
weight: number
DEFAULT_PAYMENT_ID: "0000000000000000" = "0000000000000000"

Methods

  • Get full transaction hex. Full hex = pruned hex + prunable hex.

    Returns string

    full tx hex

  • Returns boolean

  • Returns string[]

  • Returns boolean

    true if the tx is in the memory pool, false otherwise

  • Returns boolean

  • Returns number

  • Returns number

  • Returns string[]

  • Get prunable transaction hex which is hex that is removed from a pruned transaction. Full hex = pruned hex + prunable hex.

    Returns string

    prunable tx hex

  • Get pruned transaction hex. Full hex = pruned hex + prunable hex.

    Returns string

    pruned tx hex

  • Returns boolean

    true if the tx is set to be relayed, false otherwise

  • Get the minimum height or timestamp for the transactions to unlock.

    Returns bigint

    the minimum height or timestamp for the transactin to unlock

  • Parameters

    Returns boolean

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

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

    Parameters

    Returns MoneroTxWallet

  • Parameters

    • Optional indent: number = 0

      starting indentation

    • Optional oneLine: boolean = false

      string is one line if true, multiple lines if false

    Returns string

    string representation of this tx

Generated using TypeDoc