Table of Contents

Class TransactionHelpers

Namespace
NArk.Core.Helpers
Assembly
NArk.Core.dll
public static class TransactionHelpers
Inheritance
TransactionHelpers
Inherited Members

Fields

MaxOpReturnOutputs

public const int MaxOpReturnOutputs = 1

Field Value

int

Methods

BuildCsvSpendTransaction(OutPoint, TxOut, BitcoinAddress, Sequence, TapScript, ControlBlock, FeeRate, Network)

Builds a version-2 transaction that spends a single P2TR output via a script-path unilateral exit (CSV timelock). Fee is deducted from the output amount.

public static Transaction BuildCsvSpendTransaction(OutPoint vtxoOutpoint, TxOut vtxoTxOut, BitcoinAddress destinationAddress, Sequence csvDelay, TapScript tapScript, ControlBlock controlBlock, FeeRate feeRate, Network network)

Parameters

vtxoOutpoint OutPoint
vtxoTxOut TxOut
destinationAddress BitcoinAddress
csvDelay Sequence
tapScript TapScript
controlBlock ControlBlock
feeRate FeeRate
network Network

Returns

Transaction