EstimateFeeResponse

@Serializable
data class EstimateFeeResponse(val gasConsumed: Felt, val gasPrice: Felt, val dataGasConsumed: Felt, val dataGasPrice: Felt, val overallFee: Felt, val feeUnit: PriceUnit? = null)

Constructors

Link copied to clipboard
constructor(gasConsumed: Felt, gasPrice: Felt, dataGasConsumed: Felt, dataGasPrice: Felt, overallFee: Felt, feeUnit: PriceUnit? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val feeUnit: PriceUnit? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun toMaxFee(multiplier: Double = 1.5): Felt

Convert estimated fee to max fee with applied multiplier.

Link copied to clipboard
fun toResourceBounds(amountMultiplier: Double = 1.5, unitPriceMultiplier: Double = 1.5): ResourceBoundsMapping

Convert estimated fee to resource bounds with applied multipliers.