Table of Contents

Class TxTree

Namespace
NArk.Core.Batches
Assembly
NArk.Core.dll

Represents a graph of bitcoin transactions used in settlement sessions

public class TxTree : IEnumerable<TxTree>, IEnumerable
Inheritance
TxTree
Implements
Inherited Members

Constructors

TxTree(PSBT, Dictionary<int, TxTree>?)

public TxTree(PSBT root, Dictionary<int, TxTree>? children = null)

Parameters

root PSBT
children Dictionary<int, TxTree>

Properties

Children

public Dictionary<int, TxTree> Children { get; }

Property Value

Dictionary<int, TxTree>

Root

public PSBT Root { get; }

Property Value

PSBT

Methods

Create(List<TxTreeNode>)

public static TxTree Create(List<TxTreeNode> chunks)

Parameters

chunks List<TxTreeNode>

Returns

TxTree

Find(uint256)

public TxTree? Find(uint256 txid)

Parameters

txid uint256

Returns

TxTree

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<TxTree> GetEnumerator()

Returns

IEnumerator<TxTree>

An enumerator that can be used to iterate through the collection.

Leaves()

public IEnumerable<PSBT> Leaves()

Returns

IEnumerable<PSBT>

NodeCount()

public int NodeCount()

Returns

int

Update(uint256, Action<PSBT>)

public void Update(uint256 txid, Action<PSBT> fn)

Parameters

txid uint256
fn Action<PSBT>

Validate()

public void Validate()