Table of Contents

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

walletId string

The wallet identifier that owns the UTXO.

vtxo ArkVtxo

The expired VTXO.

contract ArkContractEntity

The contract entity associated with the VTXO.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<bool>