Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Fee Service #76

Open
austbot opened this issue Oct 28, 2024 · 0 comments
Open

Create a Fee Service #76

austbot opened this issue Oct 28, 2024 · 0 comments
Assignees

Comments

@austbot
Copy link
Contributor

austbot commented Oct 28, 2024

Fees are a crucial part of the solana blockchain. They have recently become more dynamic with the advent of priority fees. These are account based and represent the demand on a specific set of accounts.
Alot of factors go into if a transaction will be picked up by the leader, with priority fees being a big one.

As a prover I need to ensure that I'm profitable given that I must do the work of execution and proving. I need a way to estimate the cost of sending claim and proving transactions to add them to the cost calculation that helps me determine if its worth proving. I need to know before claiming the cost of the fee tier to ensure my best possibility of winning the claim. I also need to calculate the cost of sending the proving transaction before deciding to claim. This means that we will need to have two calls to getRecentPrioritizationFees RPC Method.

Because the priority fee of the proving transaction will be based on all accounts involved we must call this prior to proving. Since proving takes on the order of seconds and getting fee information is on the order of milliseconds in most cases, this should be doable and cheap.

@jac18281828 jac18281828 self-assigned this Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants