subscribe is a thin polling helper, and webhook delivery is on the roadmap.
States
These come from the relayer’sIntentDetails.status field:
| State | Meaning | What’s happening behind the scenes |
|---|---|---|
pending | Intent created on-chain, awaiting solver bids | Relayer has included the intent in a batched plaintext broadcast to solvers; the auction is running |
solving | A solver has won the auction and is fulfilling on the destination chain | Relayer has re-encrypted the recipient bundle to the winning solver; solver is delivering to stealth address(es) |
settled | Destination delivery confirmed; settlement on source chain in flight | Relayer is finalizing on source chain to release the solver’s reward |
completed | Source-chain settlement complete. Lifecycle terminal. | settleTxHash is populated |
completed, the intent is final.
Poll
Direct API:pending or solving).
Subscribe (polling helper)
GET /intent-details/:intentId. When webhooks ship, this method will switch to a long-lived connection automatically.
Webhooks (planned)
WIP. The planned shape is shown for forward compatibility, none of these calls work today.
secret:
TODO: confirm webhook event names, payload shape, signature header, and retry policy before publish.
Choosing a method (today)
| Method | When to use |
|---|---|
Poll GET /intent-details/:intentId | Backend job, batch worker, or any server flow |
SDK subscribe (polling helper) | Interactive UI, same as poll, just less code |
| Webhooks | Will be the recommended server-to-server option once shipped |
Idempotency (when webhooks ship)
Webhook deliveries can repeat on retries. Use theeventId in each callback to deduplicate before applying side effects.
Failure semantics
If a solver does not fulfill, the user is refunded via the on-chain escape mechanism onBridgeIntentV2, funds are not at risk. The intent stays in pending until either solved or refunded; you can watch for the absence of progress and surface it to the user.
Recipient flow: claiming funds
How recipients sweep settled stealth-address balances.