| registry-sdk | minor |
|---|---|
| registry-backend | minor |
Add withdrawal endpoints for users to withdraw tokens from their agent smart accounts
registry-backend:
- Add
POST /user/:appId/request-withdrawendpoint to prepare unsigned UserOperations for withdrawing tokens - Add
POST /user/:appId/complete-withdrawendpoint to submit signed UserOperations and execute withdrawals - Add
SPONSOR_WITHDRAW_GASenv var to optionally sponsor gas fees via ZeroDev paymaster - Add Alchemy utility for fetching token balances with metadata
- Refactor chainConfig into utils with network-specific bundler URL support
- Add integration tests for withdrawal flow
registry-sdk:
- Add
POST /user/:appId/request-withdrawendpoint schema - Add
POST /user/:appId/complete-withdrawendpoint schema - Add withdraw types:
Asset,RequestWithdrawRequest,RequestWithdrawResponse,SignedWithdrawal,CompleteWithdrawRequest,CompleteWithdrawResponse - Regenerate RTK clients