Interface IOnchainSweepHandler
- Namespace
- NArk.Abstractions.Services
- Assembly
- NArk.Abstractions.dll
Allows host applications to override the default onchain sweep behavior for expired boarding/unrolled UTXOs.
public interface IOnchainSweepHandler
Methods
HandleExpiredUtxoAsync(string, ArkVtxo, ArkContractEntity, CancellationToken)
Called when an unrolled/boarding UTXO's CSV has expired and needs sweeping. Return true if handled (sweep was performed), false to use default behavior.
Task<bool> HandleExpiredUtxoAsync(string walletId, ArkVtxo vtxo, ArkContractEntity contract, CancellationToken cancellationToken)
Parameters
walletIdstringThe wallet identifier that owns the UTXO.
vtxoArkVtxoThe expired VTXO.
contractArkContractEntityThe contract entity associated with the VTXO.
cancellationTokenCancellationTokenCancellation token.