Table of Contents

Class PostSpendVtxoPollingHandler

Namespace
NArk.Core.Events
Assembly
NArk.Core.dll

Event handler that polls for VTXO updates after a successful spend transaction broadcast. This ensures the local VTXO state reflects the new outputs from the transaction.

public class PostSpendVtxoPollingHandler : IEventHandler<PostCoinsSpendActionEvent>
Inheritance
PostSpendVtxoPollingHandler
Implements
Inherited Members

Constructors

PostSpendVtxoPollingHandler(VtxoSynchronizationService, IClientTransport, IOptions<VtxoPollingOptions>, ILogger<PostSpendVtxoPollingHandler>?)

Event handler that polls for VTXO updates after a successful spend transaction broadcast. This ensures the local VTXO state reflects the new outputs from the transaction.

public PostSpendVtxoPollingHandler(VtxoSynchronizationService vtxoSyncService, IClientTransport transport, IOptions<VtxoPollingOptions> options, ILogger<PostSpendVtxoPollingHandler>? logger = null)

Parameters

vtxoSyncService VtxoSynchronizationService
transport IClientTransport
options IOptions<VtxoPollingOptions>
logger ILogger<PostSpendVtxoPollingHandler>

Methods

HandleAsync(PostCoinsSpendActionEvent, CancellationToken)

Handles the event asynchronously.

public Task HandleAsync(PostCoinsSpendActionEvent @event, CancellationToken cancellationToken = default)

Parameters

event PostCoinsSpendActionEvent
cancellationToken CancellationToken

Returns

Task