Class TreeTxEvent
- Namespace
- NArk.Abstractions.Batches.ServerEvents
- Assembly
- NArk.Abstractions.dll
Server-published virtual transaction node in the batch tree.
public record TreeTxEvent : BatchEvent, IEquatable<BatchEvent>, IEquatable<TreeTxEvent>
- Inheritance
-
TreeTxEvent
- Implements
- Inherited Members
Constructors
TreeTxEvent(string, int, Dictionary<uint, string>, IReadOnlyCollection<string>, string, string)
Server-published virtual transaction node in the batch tree.
public TreeTxEvent(string Id, int BatchIndex, Dictionary<uint, string> Children, IReadOnlyCollection<string> Topic, string Tx, string TxId)
Parameters
IdstringBatch ID.
BatchIndexintWhich subtree this node belongs to: 0 = VTXO tree, 1 = connectors tree.
ChildrenDictionary<uint, string>Map of output-index → child txid.
TopicIReadOnlyCollection<string>Stream topics this event targets.
TxstringPSBT of this tree node (base64).
TxIdstringTransaction ID of this node.
Properties
BatchIndex
Which subtree this node belongs to: 0 = VTXO tree, 1 = connectors tree.
public int BatchIndex { get; init; }
Property Value
Children
Map of output-index → child txid.
public Dictionary<uint, string> Children { get; init; }
Property Value
Id
Batch ID.
public string Id { get; init; }
Property Value
Topic
Stream topics this event targets.
public IReadOnlyCollection<string> Topic { get; init; }
Property Value
Tx
PSBT of this tree node (base64).
public string Tx { get; init; }
Property Value
TxId
Transaction ID of this node.
public string TxId { get; init; }