Skip to main content
POST
Withdraw from Agent
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

string
required
Your API key for authentication

Request Body

string
required
ID of the user receiving the withdrawal
string
required
ID of the agent sending the funds
number
required
Amount to withdraw
string
default:"USDC"
Currency type to withdraw (defaults to USDC)

Response

boolean
Whether the withdrawal was successful
string
Transaction hash on the blockchain
string
Information about the withdrawal
string
New balance of the agent after the withdrawal

Status Codes

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.