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
coinsArkCoin[]outputsArkTxOut[]cancellationTokenCancellationToken
Returns
EstimateFeeAsync(ArkIntentSpec, CancellationToken)
Estimates the fee for an intent specification (used during intent generation).
Task<long> EstimateFeeAsync(ArkIntentSpec spec, CancellationToken cancellationToken = default)
Parameters
specArkIntentSpeccancellationTokenCancellationToken