This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 293
feat(rpc): Implement starknet_estimateMessageFee #1301
Labels
enhancement
New feature or request
Comments
Can i take this one sir ? |
Yes! @Tbelleng could you please provide an expected behavior under here? |
Nice! glhf tell me if you need anything |
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. |
Im gonna do it since missing implems are now live on madara |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Feature Request
feat(rpc): Implement starknet_estimateMessageFee
This PR aims to implement
starknet_estimateMessageFee
rpc call introduced in v0.4.0-rc1 according to the v0.5.1 RPC specs described in #1291starknet_estimateMessageFee
Estimates the L2 fee of a message sent on L1.
This function estimates the resources required by the l1_handler
transaction induced by the message.
Arguments
message
: The message's parameters.MSG_FROM_L1
.block_id
: The hash of the requested block, or number (height) of the requested block,or a block tag, for the block referencing the state or call the transaction on.
BLOCK_ID
.Returns
Returns the fee estimation as defined in
FEE_ESTIMATE
.Errors
This function might return the following errors:
CONTRACT_ERROR
- An error related to the contract's execution or state.BLOCK_NOT_FOUND
- The specified block could not be found.The text was updated successfully, but these errors were encountered: