Skip to content

feat: add Stellar fee estimation with Horizon caching - #167

Open
praizeD10 wants to merge 2 commits into
wraith-protocol:developfrom
praizeD10:feat/stellar-estimate-fee
Open

feat: add Stellar fee estimation with Horizon caching#167
praizeD10 wants to merge 2 commits into
wraith-protocol:developfrom
praizeD10:feat/stellar-estimate-fee

Conversation

@praizeD10

Copy link
Copy Markdown
Contributor

closes #138

  • New estimateFee(opKind, urgency) function for stroops calculation
  • Pulls fee stats from Horizon /fee_stats endpoint
  • Caches results for 30 seconds with per-URL keying
  • Supports urgency levels: low (p10), normal (p50), high (p90)
  • Enforces minimum base fee of 100 stroops
  • Comprehensive unit tests with mocked Horizon responses
  • Optional integration test for futurenet
  • Exported from Stellar chains module

- New estimateFee(opKind, urgency) function for stroops calculation
- Pulls fee stats from Horizon /fee_stats endpoint
- Caches results for 30 seconds with per-URL keying
- Supports urgency levels: low (p10), normal (p50), high (p90)
- Enforces minimum base fee of 100 stroops
- Comprehensive unit tests with mocked Horizon responses
- Optional integration test for futurenet
- Exported from Stellar chains module
@drips-wave

drips-wave Bot commented Jul 27, 2026

Copy link
Copy Markdown

@praizeD10 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fee estimation helpers per Stellar op type

1 participant