Flow
API flows (step‑by‑step)
1) Request a withdrawal signature
Endpoint:
Headers:
Body:Ready response:If you receive
POST /withdrawalsHeaders:
Authorization: Bearer <SESSION_TOKEN>, Content-Type: application/jsonBody:
status: “pending”, wait retryAfterSeconds and call again.2) Execute onchain
Broadcast a transaction calling Coordinator address comes from the user’s collateral contract. If you don’t persist this, contact us and we’ll provide the addresses for your integration.
withdrawAsset with the returned parameters.Parameter mapping- Coordinator (v2) signature:
withdrawAsset(collateralProxy, token, amount, recipient, expiresAt, executorSalt, executorSignature, adminSalt[], adminSignature[], directTransfer) - All values except the admin arrays come from the API response. You generate the admin arrays locally using your admin wallet.
- Preferred when you have the Coordinator address for the user’s contract.
- Add an admin EIP‑712 signature for the user’s admin address (must be linked).