Table of Contents

Interface ISweepPolicy

Namespace
NArk.Core.Sweeper
Assembly
NArk.Core.dll

Determines which coins should be consolidated (swept) into a single VTXO. Register multiple policies to combine different consolidation strategies (e.g., time-based expiry, dust collection, fee optimization).

public interface ISweepPolicy

Methods

SweepAsync(IEnumerable<ArkCoin>, CancellationToken)

Yields coins that should be swept from the given set.

IAsyncEnumerable<ArkCoin> SweepAsync(IEnumerable<ArkCoin> coins, CancellationToken cancellationToken = default)

Parameters

coins IEnumerable<ArkCoin>
cancellationToken CancellationToken

Returns

IAsyncEnumerable<ArkCoin>