Class TxTree
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
rootPSBTchildrenDictionary<int, TxTree>
Properties
Children
public Dictionary<int, TxTree> Children { get; }
Property Value
Root
public PSBT Root { get; }
Property Value
- PSBT
Methods
Create(List<TxTreeNode>)
public static TxTree Create(List<TxTreeNode> chunks)
Parameters
chunksList<TxTreeNode>
Returns
Find(uint256)
public TxTree? Find(uint256 txid)
Parameters
txiduint256
Returns
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
Update(uint256, Action<PSBT>)
public void Update(uint256 txid, Action<PSBT> fn)
Parameters
txiduint256fnAction<PSBT>
Validate()
public void Validate()