GetFeeStatsResponse

@Serializable
data class GetFeeStatsResponse(val sorobanInclusionFee: GetFeeStatsResponse.FeeDistribution, val inclusionFee: GetFeeStatsResponse.FeeDistribution, val latestLedger: Long)

Response for JSON-RPC method getFeeStats.

Returns statistics about charged inclusion fees for transactions. This endpoint is useful for estimating appropriate fees for future transactions based on recent network activity.

See also

Constructors

Link copied to clipboard
constructor(sorobanInclusionFee: GetFeeStatsResponse.FeeDistribution, inclusionFee: GetFeeStatsResponse.FeeDistribution, latestLedger: Long)

Types

Link copied to clipboard
@Serializable
data class FeeDistribution(val max: Long, val min: Long, val mode: Long, val p10: Long, val p20: Long, val p30: Long, val p40: Long, val p50: Long, val p60: Long, val p70: Long, val p80: Long, val p90: Long, val p95: Long, val p99: Long, val transactionCount: Long, val ledgerCount: Long)

Statistical distribution of fee charges across multiple percentiles.

Properties

Link copied to clipboard

Statistics for standard (non-Soroban) transaction inclusion fees.

Link copied to clipboard

The latest ledger sequence number used for calculating these statistics.

Link copied to clipboard

Statistics for Soroban smart contract transaction inclusion fees. These fees are charged for including Soroban transactions in ledgers.