Class MoneroTxWallet

Models a Monero transaction with wallet extensions.

Hierarchy

Constructors

Properties

Methods

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

Constructors

Properties

changeAddress: string
changeAmount: bigint
extra: Uint8Array
extraHex: string
fee: bigint
fullHex: string
hash: string
inTxPool: boolean
incomingTransfers: MoneroIncomingTransfer[]
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
maxUsedBlockHash: string
maxUsedBlockHeight: number
metadata: string
note: string
numConfirmations: number
numDummyOutputs: number
outgoingTransfer: MoneroOutgoingTransfer
outputIndices: number[]
outputSum: bigint
outputs: MoneroOutput[]
paymentId: string
prunableHash: string
prunableHex: string
prunedHex: string
rctSigPrunable: any
rctSignatures: any
receivedTimestamp: number
relay: boolean
ringSize: number
signatures: string[]
size: number
unlockTime: bigint
version: number
weight: number
DEFAULT_PAYMENT_ID: "0000000000000000" = "0000000000000000"

Methods

  • Returns string

    change address

  • Returns bigint

    change amount

  • Returns Uint8Array

    tx extra

  • Returns string

    tx extra as hex

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

    Returns string

    full tx hex

  • Returns boolean

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

  • Returns bigint

    amount received in the tx

  • Returns bigint

    sum of tx inputs

  • Returns boolean

    true if the tx is confirmed, false otherwise

  • Returns boolean

    true if a double spend has been seen, false otherwise

  • Returns boolean

    true if the tx failed, false otherwise

  • Returns boolean

    true if the tx has incoming funds, false otherwise

  • Returns boolean

    true if kept by a block, false otherwise

  • Returns boolean

    true if the tx is locked, false otherwise

  • Returns boolean

    true if the tx is a miner tx, false otherwise

  • Returns boolean

    true if the tx has outgoing funds, false otherwise

  • Returns boolean

    true if the tx is relayed, false otherwise

  • Returns string

    tx note

  • Returns number

    number of dummy outputs

  • Returns bigint

    amount spent in the tx

  • Returns bigint

    sum of tx outputs

  • 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 transaction to unlock

  • 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

    • changeAddress: string

      change address

    Returns MoneroTxWallet

    this tx for chaining

  • Parameters

    • isIncoming: boolean

      true if the tx has incoming funds, false otherwise

    Returns MoneroTxWallet

    this tx for chaining

  • Parameters

    • isLocked: boolean

      true if the tx is locked, false otherwise

    Returns MoneroTxWallet

    this tx for chaining

  • Parameters

    • isOutgoing: boolean

      true if the tx has outgoing funds, false otherwise

    Returns MoneroTxWallet

    this tx for chaining

  • Parameters

    • numDummyOutputs: number

      number of dummy outputs

    Returns MoneroTxWallet

    this tx for chaining

  • Returns any

    json representation of this tx

  • 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

  • Parameters

    • transfers: any
    • transfer: any

    Returns void

Generated using TypeDoc