Skip to content

feat(client): add dedicated TrustFlowClient.healthCheck() method - #825

Closed
ElNeMeR70 wants to merge 1 commit into
trustflow-protocol:mainfrom
ElNeMeR70:feat/client-health-check-809
Closed

ElNeMeR70 wants to merge 1 commit into
trustflow-protocol:mainfrom
ElNeMeR70:feat/client-health-check-809

Conversation

@ElNeMeR70

Copy link
Copy Markdown

Summary

  • Adds TrustFlowClient.healthCheck(): Promise<HealthCheckResult> returning { ok, rpcReachable, contractExists, latencyMs } independently of .connect().
  • Verifies both Soroban RPC health (getHealth()) and on-chain contract instance existence (getLedgerEntries()).
  • Documents healthCheck() with an Express/Fastify health-route example in docs/API.md and adds unit tests in tests/health-check.test.ts.

Fixes #809

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.

[ENHANCEMENT] Add a dedicated TrustFlowClient.healthCheck() method for monitoring/status-page use cases

2 participants