Table of Contents

Interface IFeeEstimator

Namespace
NArk.Abstractions.Fees
Assembly
NArk.Abstractions.dll

Estimates Ark transaction fees in satoshis.

public interface IFeeEstimator

Methods

EstimateFeeAsync(ArkCoin[], ArkTxOut[], CancellationToken)

Estimates the fee for spending the given coins to the given outputs.

Task<long> EstimateFeeAsync(ArkCoin[] coins, ArkTxOut[] outputs, CancellationToken cancellationToken = default)

Parameters

coins ArkCoin[]
outputs ArkTxOut[]
cancellationToken CancellationToken

Returns

Task<long>

EstimateFeeAsync(ArkIntentSpec, CancellationToken)

Estimates the fee for an intent specification (used during intent generation).

Task<long> EstimateFeeAsync(ArkIntentSpec spec, CancellationToken cancellationToken = default)

Parameters

spec ArkIntentSpec
cancellationToken CancellationToken

Returns

Task<long>