getFeeStats
Statistics for charged inclusion fees. The inclusion fee statistics are calculated from the inclusion fees that were paid for the transactions to be included onto the ledger.
This method will use 10 Compute Units.
Reference: Here
Parameters
None
Returns
sorobanInclusionFee object: Inclusion fee distribution statistics for Soroban transactions containing the following fields:
maxstring Maximum feeminstring Minimum feemodestring Fee value which occurs the most oftenp10string 10th nearest-rank fee percentilep20string 20th nearest-rank fee percentilep30string 30th nearest-rank fee percentilep40string 40th nearest-rank fee percentilep50string 50th nearest-rank fee percentilep60string 60th nearest-rank fee percentilep70string 70th nearest-rank fee percentilep80string 80th nearest-rank fee percentilep90string 90th nearest-rank fee percentilep95string 95th nearest-rank fee percentilep99string 99th nearest-rank fee percentiletransactionCountnumber How many transactions are part of the distributionledgerCountnumber How many consecutive ledgers form the distribution
inclusionFee object: Fee distribution statistics for Stellar (i.e. non-Soroban) transactions. Statistics are normalized per operation. Object contains the following fields:
maxstring Maximum feeminstring Minimum feemodestring Fee value which occurs the most oftenp10string 10th nearest-rank fee percentilep20string 20th nearest-rank fee percentilep30string 30th nearest-rank fee percentilep40string 40th nearest-rank fee percentilep50string 50th nearest-rank fee percentilep60string 60th nearest-rank fee percentilep70string 70th nearest-rank fee percentilep80string 80th nearest-rank fee percentilep90string 90th nearest-rank fee percentilep95string 95th nearest-rank fee percentilep99string 99th nearest-rank fee percentiletransactionCountnumber How many transactions are part of the distributionledgerCountnumber How many consecutive ledgers form the distribution
latestLedger number. The sequence number of the latest ledger known to Stellar RPC at the time it handled the request.
// Result
{
"jsonrpc": "2.0",
"id": 8675309,
"result": {
"sorobanInclusionFee": {
"max": "210",
"min": "100",
"mode": "100",
"p10": "100",
"p20": "100",
"p30": "100",
"p40": "100",
"p50": "100",
"p60": "100",
"p70": "100",
"p80": "100",
"p90": "120",
"p95": "190",
"p99": "200",
"transactionCount": "10",
"ledgerCount": 50
},
"inclusionFee": {
"max": "100",
"min": "100",
"mode": "100",
"p10": "100",
"p20": "100",
"p30": "100",
"p40": "100",
"p50": "100",
"p60": "100",
"p70": "100",
"p80": "100",
"p90": "100",
"p95": "100",
"p99": "100",
"transactionCount": "7",
"ledgerCount": 10
},
"latestLedger": 4519945
}
}curl https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0","id": 8675309,"method": "getFeeStats"}'Last updated
Was this helpful?