Skip to content
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

Support getFeeStats in the RPC client (rpc.Server) #998

Closed
Tracked by #935
Shaptic opened this issue Jul 1, 2024 · 0 comments · Fixed by #1006
Closed
Tracked by #935

Support getFeeStats in the RPC client (rpc.Server) #998

Shaptic opened this issue Jul 1, 2024 · 0 comments · Fixed by #1006
Assignees

Comments

@Shaptic
Copy link
Contributor

Shaptic commented Jul 1, 2024

The getFeeStats method was introduced in stellar/stellar-rpc#172 with the following response schema:

interface Response {
	sorobanInclusionFee: FeeDistribution;
	inclusionFee: FeeDistribution;
	latestLedger: number; // uint32
}

interface FeeDistribution {
	max: string; 	// uint64
	min: string; 	// uint64
	mode: string; 	// uint64
	p10: string; 	// uint64
	p20: string; 	// uint64
	p30: string; 	// uint64
	p40: string; 	// uint64
	p50: string; 	// uint64
	p60: string; 	// uint64
	p70: string; 	// uint64
	p80: string; 	// uint64
	p90: string; 	// uint64
	p95: string; 	// uint64
	p99: string; 	// uint64
	transactionCount: string; // uint32
	ledgerCount: number; // uint32
}

Note that the pNN values are just string-ified 64-bit integers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants