getEstimateMessageFee

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.

blockHash

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.

blockNumber

a number of the block in respect to what the query will be made

Throws


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.

blockTag

a tag of the block in respect to what the query will be made

Throws