starknet_estimateMessageFee
estimate the L2 fee of a message sent on L1
Parameters:
OBJECT - The transaction call object
from_address -
The address of the L1 contract sending the messageto_address -
The target L2 address the message is sent toentry_point_selector-
The selector of the l1_handler to invoke in the target contractpayload
- The payload of the message
BLOCK_PARAM - Expected one of block_number
, block_hash
, latest
, pending
Returns:
the fee estimation
Example:
Last updated