Skip to content

feat(relayer): add deposit-force endpoint#460

Merged
danwt merged 1 commit intomain-dymfrom
danwt/claude/deposit-force-endpoint
Jan 27, 2026
Merged

feat(relayer): add deposit-force endpoint#460
danwt merged 1 commit intomain-dymfrom
danwt/claude/deposit-force-endpoint

Conversation

@danwt
Copy link
Copy Markdown

@danwt danwt commented Jan 27, 2026

Summary

  • Add POST /deposit-force endpoint to manually process Kaspa deposits that fell outside the normal lookback window
  • Useful when relayer DB has been wiped or for deposits that were missed for other reasons
  • Fetches transaction from Kaspa REST API, validates it's an escrow transfer, and queues it for processing

Usage

curl -X POST https://kaspa-relayer.mzonder.com/deposit-force \
  -H "Content-Type: application/json" \
  -d '{"kaspa_tx": "242b5987..."}'

Test plan

  • Deploy to staging/testnet relayer
  • Test with a known historical deposit that was missed
  • Verify the deposit gets processed through the normal pipeline
  • Verify error handling for invalid/non-escrow transactions

🤖 Generated with Claude Code

@danwt danwt force-pushed the danwt/claude/deposit-force-endpoint branch from ff9eb0f to 4a37084 Compare January 27, 2026 15:24
Add POST /kaspa/deposit-force endpoint to manually process Kaspa deposits
that fell outside the normal lookback window due to relayer DB being
wiped or other issues.

The endpoint:
- Accepts a kaspa_tx ID
- Fetches the transaction from Kaspa REST API
- Queues it for processing via the existing deposit pipeline

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@danwt danwt force-pushed the danwt/claude/deposit-force-endpoint branch from 4a37084 to 77292d3 Compare January 27, 2026 15:43
@danwt danwt merged commit e310c94 into main-dym Jan 27, 2026
7 of 11 checks passed
@danwt danwt deleted the danwt/claude/deposit-force-endpoint branch January 27, 2026 16:10
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.

1 participant