Skip to content

Fee estimation helpers per Stellar op type #138

Description

@truthixify

Extra labels: stellar, feature
Tier: S (1-2 days) | Type: feature

Context. Wraith flows submit at the min base fee, which fails during network congestion. Ship helpers that estimate a suitable inclusion fee per op type using recent ledger data.

Scope.

  • estimateFee(opKind, urgency) returning a stroops value.
  • Pull recent fee stats from Horizon /fee_stats.
  • Cache with a short TTL (seconds).

Acceptance.

  • Doc'd urgency levels (low / normal / high)
  • Test with mocked Horizon fee-stats response
  • Integration test on futurenet submits a tx with estimated fee

Files. src/chains/stellar/fee.ts (new), test/chains/stellar/fee.test.ts (new).

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programdripsFunded via Drips NetworkfeatureNew feature workhelp wantedExtra attention is neededstellarTouches Stellar / Soroban code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions