Table of Contents

Interface IIntentScheduler

Namespace
NArk.Abstractions.Intents
Assembly
NArk.Abstractions.dll

Decides which intents to submit on the next batch cycle. Implement this to drive automatic VTXO rollover (e.g. refresh before expiry).

public interface IIntentScheduler

Methods

GetIntentsToSubmit(IReadOnlyCollection<ArkCoin>, CancellationToken)

Given the current unspent coins, returns the set of intents to submit. Called periodically by the SDK's intent generation loop (default every 5 minutes).

Task<IReadOnlyCollection<ArkIntentSpec>> GetIntentsToSubmit(IReadOnlyCollection<ArkCoin> unspentVtxos, CancellationToken cancellationToken = default)

Parameters

unspentVtxos IReadOnlyCollection<ArkCoin>
cancellationToken CancellationToken

Returns

Task<IReadOnlyCollection<ArkIntentSpec>>