Skip to content

Add getFeeStats method and fees endpoint with Redis caching - #332

Merged
shakurJJ merged 2 commits into
shakurJJ:mainfrom
Adedayo-Data:feature/chain-fees
Aug 31, 2026
Merged

Add getFeeStats method and fees endpoint with Redis caching#332
shakurJJ merged 2 commits into
shakurJJ:mainfrom
Adedayo-Data:feature/chain-fees

Conversation

@Adedayo-Data

Copy link
Copy Markdown
Contributor

Description

Adds a new endpoint GET /chain/fees to retrieve the current base fee and resource fee estimates from the configured Soroban RPC.

Changes

  • Implemented getFeeStats() in StellarService to fetch inclusion fee statistics from Soroban RPC and read the base fee from the latest closed ledger.
  • Added GET /chain/fees endpoint to ChainController.
  • Integrated Redis caching on the endpoint with a 30-second TTL (chain:fees) to prevent hammering the Soroban RPC.
  • Fixed a pre-existing duplicate model definition in the Prisma schema to allow compilation.
  • Fixed a pre-existing path import depth issue in address-param.dto.ts.
  • Added unit tests in chain.controller.spec.ts and stellar.service.spec.ts to verify the fee retrieval and caching functionality.

closes #293

…dpoint with Redis caching, while removing ShipmentFavorite model
@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@Adedayo-Data 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

@shakurJJ
shakurJJ merged commit ebd97c2 into shakurJJ:main Aug 31, 2026
1 check failed
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.

Add GET /chain/fees — current Stellar network base fee and resource fee estimates

2 participants