starknet_estimateMessageFee
Estimates the resources required by the l1_handler transaction induced by the message.
Path parameters
apiKey
Request
This endpoint expects an object.
MSG_FROM_L1
The Message from L1 object
block_id
The hash of the requested block, the block number (height) of the requested block, or a block tag (latest or pending)
Response
Array of fee estimation results
l1_data_gas_consumed
The amount of Layer 1 data gas consumed by the transaction
l1_data_gas_price
The price per unit of Layer 1 data gas (in WEI)
l1_gas_consumed
The amount of Layer 1 execution gas consumed by the transaction
l1_gas_price
The price per unit of Layer 1 execution gas (in WEI)
l2_gas_consumed
The amount of Layer 2 gas consumed by the transaction
l2_gas_price
The price per unit of Layer 2 gas (in WEI)
overall_fee
The total estimated fee for the transaction in WEI, computed using all gas consumed and respective prices
unit
The unit in which the overall fee is expressed