get Estimate Message Fee
abstract fun getEstimateMessageFee(message: MessageL1ToL2, blockHash: Felt): Request<EstimateFeeResponse>
Estimate a message fee.
Estimate the L2 fee of a provided message sent on L1.
Parameters
message
message, for which the fee is to be estimated.
block Hash
a hash of the block in respect to what the query will be made
Throws
abstract fun getEstimateMessageFee(message: MessageL1ToL2, blockNumber: Int): Request<EstimateFeeResponse>
Estimate a message fee.
Estimate the L2 fee of a provided message sent on L1.
Parameters
message
message, for which the fee is to be estimated.
block Number
a number of the block in respect to what the query will be made
Throws
abstract fun getEstimateMessageFee(message: MessageL1ToL2, blockTag: BlockTag): Request<EstimateFeeResponse>
Estimate a message fee.
Estimate the L2 fee of a provided message sent on L1.
Parameters
message
message, for which the fee is to be estimated.
block Tag
a tag of the block in respect to what the query will be made