FeeEstimator

abstract class FeeEstimator

Constructors

Link copied to clipboard
fun FeeEstimator(gasPrices: Map<String, Decimal>)
Link copied to clipboard
fun FeeEstimator(gasPricesProvider: GasPricesProvider)

Functions

Link copied to clipboard
suspend fun estimate(gasAmount: Long, feeDenomination: String = defaultFeeDenomination): Fee
suspend fun estimate(messages: List<Message>, senderAddress: String, senderAccountNumber: Long, senderSequence: Long, feeDenomination: String = defaultFeeDenomination, gasAdjustment: Float = defaultGasAdjustment): Fee

Properties

Link copied to clipboard
var defaultFeeDenomination: String
Link copied to clipboard
var defaultGasAdjustment: Float = 1.4f
Link copied to clipboard
val gasPricesProvider: GasPricesProvider