Table of Contents

Interface IActiveScriptsProvider

Namespace
NArk.Abstractions.Scripts
Assembly
NArk.Abstractions.dll

Provides the set of scripts (hex-encoded) that the VTXO synchronization service should actively monitor for incoming VTXOs. Both IVtxoStorage and IContractStorage implement this interface.

public interface IActiveScriptsProvider

Methods

GetActiveScripts(CancellationToken)

Returns the current set of scripts to monitor.

Task<HashSet<string>> GetActiveScripts(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<HashSet<string>>

Events

ActiveScriptsChanged

Raised when the set of active scripts changes (e.g., a new contract is derived).

event EventHandler? ActiveScriptsChanged

Event Type

EventHandler