EstimateFeeResponse

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

Constructors

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

Properties

Link copied to clipboard
@SerialName(value = "data_gas_consumed")
val dataGasConsumed: Felt
Link copied to clipboard
@SerialName(value = "data_gas_price")
val dataGasPrice: Felt
Link copied to clipboard
@SerialName(value = "unit")
val feeUnit: PriceUnit? = null
Link copied to clipboard
@SerialName(value = "gas_consumed")
val gasConsumed: Felt
Link copied to clipboard
@SerialName(value = "gas_price")
val gasPrice: Felt
Link copied to clipboard
@SerialName(value = "overall_fee")
val overallFee: Felt

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.