-
Notifications
You must be signed in to change notification settings - Fork 21
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
Provide getFeeStats
as a new endpoint on RPC
#114
Comments
inclusion fee stats
as a new endpoint on RPCgetFeeStats
as a new endpoint on RPC
@janewang do you want to take into account |
@2opremio The |
What problem does your feature solve?
getFeeStats
: An endpoint for inclusion fee should be made available to help developers understand how to set inclusion fee.We propose a separate endpoint as the inclusion fee below is provided over a set of transactions instead of uniquely tied to a specific transaction, as in simulateTransaction. Furthermore, we want to avoid providing a single number, but provide a percentile distribution of fees such that the developer could have a sense of the current fees distribution and choose a bid that’s most appropriate for this transaction.
Types of transaction:
For Soroban transactions and Stellar transactions, they each have their own inclusion fees and own surge pricing. For example, classic transactions can be at base fee of 100, while Soroban fee goes through surge pricing. Thus we need one data set for Soroban transactions and one data set for Stellar transactions in the lookback period. It doesn’t make sense to mix these two types of transactions.
Lookback period:
We propose a lookback period of 50 ledgers for Soroban transactions and keep the same 5 ledger lookback period for Stellar transactions. Both of these variables should be configurable, but the values here are the default values. On a lower time scale, Soroban inclusion fees are highly volatile and cannot provide a predictive basis for analytics. We propose to reevaluate the lookback period as Soroban capacity increases and fees become less bumpy ledger to ledger.
What would you like to see?
Example response for soroban inclusion fees and stellar inclusion fees:
We should update public documentation to include usage of this endpoint.
What alternatives are there?
The text was updated successfully, but these errors were encountered: