getFeeStats
Stellar / https://triport.io/rpc/stellar
Minimum tier: Free
Last updated:
Returns recent inclusion-fee distributions separately for classic Stellar and Soroban transactions because they have independent surge pricing.
Use the percentiles and mode to estimate inclusion fees. This method does not simulate resource consumption or submit transactions.
Fee values and transaction counts are strings; ledger counts and latestLedger are numbers.
Parameters
This method takes no parameters.
Returns
| Field | Type |
|---|---|
| getFeeStatsResult | object |
Examples
curl https://triport.io/rpc/stellar \
-X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer <api-key>' \
-d '{"jsonrpc":"2.0","id":1,"method":"getFeeStats","params":[]}'const res = await fetch("https://triport.io/rpc/stellar", {
method: "POST",
headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
body: JSON.stringify({
"jsonrpc": "2.0",
"id": 1,
"method": "getFeeStats",
"params": []
}),
});
const data = await res.json();import requests
resp = requests.post(
"https://triport.io/rpc/stellar",
headers={"Authorization": "Bearer <api-key>"},
json={"jsonrpc":"2.0","id":1,"method":"getFeeStats","params":[]},
)
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Chain: Stellar.
- Clusters: mainnet.
- Credit cost: 1 per call.
FAQ
- What does getFeeStats do?
- Returns statistics about charged inclusion fees through Stellar Soroban JSON-RPC.
- How many credits does getFeeStats cost?
- getFeeStats costs 1 credit(s) per call on Triport by default.
- Is getFeeStats available over WebSocket?
- getFeeStats is an HTTP JSON-RPC method.