Agents
Deposit to Agent
Deposit funds into an agent’s wallet
POST
Blockchain Transaction: This endpoint transfers funds from a user’s wallet to an agent’s wallet through an on-chain transaction.
Request Headers
Your API key for authentication
Request Body
ID of the user initiating the deposit
ID of the agent receiving the deposit
Amount to deposit
Currency type to deposit (defaults to USDC)
Response
Whether the deposit was successful
Transaction hash on the blockchain
Information about the deposit
New balance of the agent after the deposit
Status Codes
Status Code | Description |
---|---|
200 | Funds deposited successfully |
400 | Bad Request - Invalid or missing parameters |
404 | Not Found - Agent or user not found |
500 | Internal Server Error - Transaction failed |
Wallet Requirements: The user must have sufficient funds in their wallet and the wallet must be accessible for the deposit to succeed.
Transaction Time: Blockchain transactions may take a few moments to be confirmed. The response is sent after confirmation.