Table of Contents

Class VirtualTx

Namespace
NArk.Abstractions.VirtualTxs
Assembly
NArk.Abstractions.dll

A single virtual transaction in the VTXO tree.

public record VirtualTx : IEquatable<VirtualTx>
Inheritance
VirtualTx
Implements
Inherited Members

Constructors

VirtualTx(string, string?, DateTimeOffset?, ChainedTxType)

A single virtual transaction in the VTXO tree.

public VirtualTx(string Txid, string? Hex, DateTimeOffset? ExpiresAt, ChainedTxType Type = ChainedTxType.Unspecified)

Parameters

Txid string

Transaction id (hex).

Hex string

PSBT-encoded transaction body, or null when only the txid + metadata are stored (Lite mode, or for on-chain commitments the indexer doesn't expose hex for).

ExpiresAt DateTimeOffset?

When the operator's pre-signature on this tx expires; null if not applicable (e.g. a confirmed commitment tx).

Type ChainedTxType

Tx type as reported by arkd's chain indexer. Lets consumers tell apart the on-chain commitment root from the off-chain tree / Ark / checkpoint nodes without re-querying the indexer.

Properties

ExpiresAt

When the operator's pre-signature on this tx expires; null if not applicable (e.g. a confirmed commitment tx).

public DateTimeOffset? ExpiresAt { get; init; }

Property Value

DateTimeOffset?

Hex

PSBT-encoded transaction body, or null when only the txid + metadata are stored (Lite mode, or for on-chain commitments the indexer doesn't expose hex for).

public string? Hex { get; init; }

Property Value

string

Txid

Transaction id (hex).

public string Txid { get; init; }

Property Value

string

Type

Tx type as reported by arkd's chain indexer. Lets consumers tell apart the on-chain commitment root from the off-chain tree / Ark / checkpoint nodes without re-querying the indexer.

public ChainedTxType Type { get; init; }

Property Value

ChainedTxType