Table of Contents

Class IntentGenerationService

Namespace
NArk.Core.Services
Assembly
NArk.Core.dll
public class IntentGenerationService : IIntentGenerationService, IAsyncDisposable
Inheritance
IntentGenerationService
Implements
Inherited Members

Constructors

IntentGenerationService(IClientTransport, IFeeEstimator, ICoinService, IWalletProvider, IIntentStorage, ISafetyService, IContractStorage, IVtxoStorage, IIntentScheduler, IOptions<IntentGenerationServiceOptions>?, ILogger<IntentGenerationService>?)

public IntentGenerationService(IClientTransport clientTransport, IFeeEstimator feeEstimator, ICoinService coinService, IWalletProvider walletProvider, IIntentStorage intentStorage, ISafetyService safetyService, IContractStorage contractStorage, IVtxoStorage vtxoStorage, IIntentScheduler intentScheduler, IOptions<IntentGenerationServiceOptions>? options = null, ILogger<IntentGenerationService>? logger = null)

Parameters

clientTransport IClientTransport
feeEstimator IFeeEstimator
coinService ICoinService
walletProvider IWalletProvider
intentStorage IIntentStorage
safetyService ISafetyService
contractStorage IContractStorage
vtxoStorage IVtxoStorage
intentScheduler IIntentScheduler
options IOptions<IntentGenerationServiceOptions>
logger ILogger<IntentGenerationService>

Methods

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

public ValueTask DisposeAsync()

Returns

ValueTask

A task that represents the asynchronous dispose operation.

GenerateManualIntent(string, ArkIntentSpec, CancellationToken)

public Task<string> GenerateManualIntent(string walletId, ArkIntentSpec spec, CancellationToken cancellationToken = default)

Parameters

walletId string
spec ArkIntentSpec
cancellationToken CancellationToken

Returns

Task<string>

StartAsync(CancellationToken)

public Task StartAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task