Withdraw from Agent
Withdraw funds from an agent’s wallet
Withdrawal Process: Transfers funds from the agent’s wallet to the user’s wallet. The operation includes: 1. Verification of user and agent existence 2. Validation of withdrawal amount against available balance 3. Transfer of funds on blockchain 4. Update of agent balance in database 5. Creation of transaction record
Request Headers
Your API key for authentication
Request Body
ID of the user receiving the withdrawal
ID of the agent sending the funds
Amount to withdraw
Currency type to withdraw (defaults to USDC)
Response
Whether the withdrawal was successful
Transaction hash on the blockchain
Information about the withdrawal
New balance of the agent after the withdrawal
Status Codes
Status Code | Description |
---|---|
200 | Funds withdrawn successfully |
400 | Invalid request parameters |
404 | Not Found |
500 | Transaction failed |
Balance Requirement: The agent must have sufficient balance to complete the withdrawal. The transaction will fail if the requested amount exceeds the available balance.
Blockchain Transaction: This operation creates an on-chain transaction which may take a few moments to be confirmed depending on network conditions.