Class MoneroTx

Represents a transaction on the Monero network.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

extra: Uint8Array
fee: bigint
fullHex: string
hash: string
inTxPool: boolean
inputs: MoneroOutput[]
isConfirmed: boolean
isDoubleSpendSeen: boolean
isFailed: boolean
isKeptByBlock: boolean
isMinerTx: boolean
isRelayed: boolean
key: string
lastFailedHash: string
lastFailedHeight: number
lastRelayedTimestamp: number
maxUsedBlockHash: string
maxUsedBlockHeight: number
metadata: string
numConfirmations: number
outputIndices: number[]
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 Uint8Array

    tx extra

  • Returns bigint

    tx fee

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

    Returns string

    full tx hex

  • Returns string

    tx hash

  • Returns number

    tx height

  • Returns boolean

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

  • 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 kept by a block, false otherwise

  • Returns boolean

    true if the tx is a miner tx, false otherwise

  • Returns boolean

    true if the tx is relayed, false otherwise

  • Returns string

    tx key

  • Returns string

    block hash of the last tx failure

  • Returns number

    block height of the last tx failure

  • Returns number

    timestamp the tx was last relayed from the node

  • Returns string

    max used block hash

  • Returns number

    max used block height

  • Returns string

    tx metadata

  • Returns number

    number of block confirmations

  • Returns number[]

    tx output indices

  • Returns string

    tx payment id

  • Returns string

    prunable tx hash

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

    prunable RCT signature data

  • Returns any

    RCT signatures

  • Returns number

    timestamp the tx was received at the node

  • Returns boolean

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

  • Returns number

    tx ring size

  • Returns string[]

    tx signatures

  • Returns number

    tx size

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

    Returns bigint

    the minimum height or timestamp for the transaction to unlock

  • Returns number

    tx version

  • Returns number

    tx weight

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

    Parameters

    • tx: MoneroTx

      the transaction to update this transaction with

    Returns MoneroTx

    this for method chaining

  • Parameters

    • extra: Uint8Array

      tx extra

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • fee: bigint

      tx fee

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • fullHex: string

      full tx hex

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • hash: string

      tx hash

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • inTxPool: boolean

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

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • isConfirmed: boolean

      true if the tx is confirmed, false otherwise

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • isDoubleSpendSeen: boolean

      true if a double spend has been seen, false otherwise

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • isFailed: boolean

      true if the tx failed, false otherwise

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • isKeptByBlock: boolean

      true if kept by a block, false otherwise

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • miner: boolean

      true if the tx is a miner tx, false otherwise

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • isRelayed: boolean

      true if the tx is relayed, false otherwise

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • key: string

      tx key

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • lastFailedHash: string

      block hash of the last tx failure

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • lastFailedHeight: number

      block height of the last tx failure

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • lastRelayedTimestamp: number

      timestamp the tx was last relayed from the node

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • maxUsedBlockHash: string

      max used block hash

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • maxUsedBlockHeight: number

      max used block height

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • metadata: string

      tx metadata

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • numConfirmations: number

      number of block confirmations

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • outputIndices: number[]

      tx output indices

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • paymentId: string

      tx payment id

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • prunableHash: string

      prunable tx hash

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • prunableHex: string

      prunable tx hex

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • prunedHex: string

      pruned tx hex

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • rctSigPrunable: any

      prunable RCT signature data

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • rctSignatures: any

      RCT signatures

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • receivedTimestamp: number

      timestamp the tx was received at the node

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • relay: boolean

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

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • ringSize: number

      tx ring size

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • signatures: string[]

      tx signatures

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • size: number

      tx size

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • unlockTime: string | number | bigint

    Returns MoneroTx

  • Parameters

    • version: number

      tx version

    Returns MoneroTx

    this tx for chaining

  • Parameters

    • weight: number

      tx weight

    Returns MoneroTx

    this tx for chaining

  • Returns any

    json representation of this tx

  • Parameters

    • Optional indent: number = 0

      starting indentation

    Returns string

    string representation of this tx

Generated using TypeDoc