Description
Implement backend API endpoints to support Allbridge cross-chain routing and confirmation:
GET /api/allbridge/tokens: Fetches and caches the list of supported Allbridge chains, tokens, and bridge routes.
POST /api/allbridge/quote: Computes fee estimates, slippage, and swap rates for bridging origin assets.
- Verification Daemon: Create a polling worker to verify the status of Allbridge cross-chain transfers via tx-hash before committing new plans to PostgreSQL.
Acceptance Criteria
- Endpoints return correctly structured payloads mapping to Allbridge API/SDK.
- Local PostgreSQL records the origin tx hash, target token amount, and bridging fees.
- Thread-safe background monitoring with proper error logging for failed or stuck bridge transactions.
Description
Implement backend API endpoints to support Allbridge cross-chain routing and confirmation:
GET /api/allbridge/tokens: Fetches and caches the list of supported Allbridge chains, tokens, and bridge routes.POST /api/allbridge/quote: Computes fee estimates, slippage, and swap rates for bridging origin assets.Acceptance Criteria