starknet_estimateMessageFee
estimate the L2 fee of a message sent on L1
Parameters:
Returns:
Example:
// Request
curl https://starknet.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json"
--data '{
"method": "starknet_estimateMessageFee",
"params": [
"latest",
{
"from_address": "0xAbCdEf0123456789aBcDeF0123456789AbCdEf01",
"to_address": "0x044e5b3f0471a26bc749ffa1d8dd8e43640e05f1b33cf05cef6adee6f5b1b4cf",
"entry_point_selector": "0x00000"
}
]
}'
// Result
{
}Last updated
Was this helpful?