Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

feat(rpc): Implement starknet_estimateMessageFee #1301

Closed
antiyro opened this issue Dec 6, 2023 · 6 comments
Closed

feat(rpc): Implement starknet_estimateMessageFee #1301

antiyro opened this issue Dec 6, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@antiyro
Copy link
Contributor

antiyro commented Dec 6, 2023

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 #1291

starknet_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.
    • This parameter must follow the structure defined in 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.
    • This parameter must follow the structure defined in 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.
@antiyro antiyro added the enhancement New feature or request label Dec 6, 2023
@Tbelleng
Copy link
Contributor

Tbelleng commented Dec 6, 2023

Can i take this one sir ?

@antiyro
Copy link
Contributor Author

antiyro commented Dec 6, 2023

Yes! @Tbelleng could you please provide an expected behavior under here?

@Tbelleng
Copy link
Contributor

Tbelleng commented Dec 6, 2023

Screenshot 2023-12-06 at 4 04 48 PM Yes sir 🫡 !

@antiyro
Copy link
Contributor Author

antiyro commented Dec 6, 2023

Nice! glhf tell me if you need anything

Copy link

github-actions bot commented Jan 6, 2024

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a 👍
Because this issue is marked as stale, it will be closed and locked in 7 days if no further activity occurs.
Thank you for your contributions!

@github-actions github-actions bot added the stale label Jan 6, 2024
@Tbelleng
Copy link
Contributor

Im gonna do it since missing implems are now live on madara

@github-actions github-actions bot removed the stale label Jan 23, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Feb 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants