Endpoint
Planned request structure
The unique identifier of the user making the withdrawal
The asset to withdraw (e.g., “USDC”, “SOL”)
The amount to withdraw
The blockchain address to send funds to
The blockchain network for the withdrawal (e.g., “solana”, “ethereum”)
Planned response structure
Status message indicating withdrawal initiated
The user ID that initiated the withdrawal
The withdrawn asset
The withdrawn amount
The user’s remaining balance for the asset
The blockchain transaction ID for tracking
Internal withdrawal reference ID
Example request
Example response
Error responses
Invalid parameters or insufficient balance
Withdrawal processing failed
Notes
This functionality will need to:- Verify sufficient user balance
- Validate destination addresses
- Implement withdrawal limits and security checks
- Process blockchain transactions
- Handle transaction fees
- Implement withdrawal approval workflows for security