Create deposit address
apg_create_depositCreate a deposit order to top up the AgentProxy balance. Returns a unique deposit_address, the amount, an EIP-681 uri (usable as a QR code) and expires_at. Nothing is charged; the balance is credited after the stablecoin arrives on-chain. Omit amount_usd for an open amount.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain": "<chain>",
"asset": "<asset>"
},
"name": "apg_create_deposit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | USDC or USDT | |
| chain | Yes | Chain name from apg_deposit_options, e.g. base or arbitrum | |
| amount_usd | No | Expected amount in USD; omit to accept any amount | |
| idempotency_key | No | Reuse to get the same deposit back |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | No | ||
| error | No |