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 /extended/v2/mempool/fee-rates endpoint #2176

Open
aryzing opened this issue Nov 25, 2024 · 2 comments
Open

Create /extended/v2/mempool/fee-rates endpoint #2176

aryzing opened this issue Nov 25, 2024 · 2 comments

Comments

@aryzing
Copy link

aryzing commented Nov 25, 2024

It's great that we have the /extended/v2/mempool/fees endpoint to get a sense for what a reasonable transaction fee should be.

However, transaction sizes may vary. It would be great if we could have a similar endpoint, e.g. /extended/v2/mempool/fee-rates which returned average lom/mid/high fee rates for the different transaction types.

@smcclellan
Copy link
Contributor

@aryzing Thank you for filing this. Could you share more about how you might use this?

@aryzing
Copy link
Author

aryzing commented Dec 17, 2024

The two use-cases would be,

  1. Displaying in an app's UI
  2. Setting the transaction fee based on the size of a transaction

The assumption here is that a tx's size matters to miners when considering whether to include it in a block based on the fee. Does it matter though? Are transactions with larger fee rates selected first to be included in a block, or is the total fee amount the only number that matters?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants