getFeeStats

Gets statistics for charged inclusion fees.

Returns fee distribution statistics for both regular and Soroban transactions. Use this to estimate appropriate fees for your transactions.

Example

val feeStats = server.getFeeStats()
val p50 = feeStats.sorobanInclusionFee.p50.toLong()
println("Median Soroban fee: $p50 stroops")

Return

Fee statistics including percentile distribution

See also

Throws

If the RPC request fails