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

Add gas price API #1219

Closed
HDauven opened this issue Dec 20, 2023 · 0 comments · Fixed by #1221
Closed

Add gas price API #1219

HDauven opened this issue Dec 20, 2023 · 0 comments · Fixed by #1221
Assignees
Labels
module:rusk Issues related to rusk module

Comments

@HDauven
Copy link
Member

HDauven commented Dec 20, 2023

Summary

Provide an API for consumers to request the current gas price. This should not focus on the optimal strategy yet.

Possible solution design or implementation

Take the average gas price of all transactions in the mempool, and the average of the last block, and the highest transaction.

The computational cost of recomputing this value is something that should be taken into account. Indexing the gas price for a transaction must be done.

@HDauven HDauven self-assigned this Dec 20, 2023
@HDauven HDauven added team:Core module:rusk Issues related to rusk module labels Dec 20, 2023
herr-seppia added a commit that referenced this issue Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:rusk Issues related to rusk module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant