Agara

Withdraw collateral to an address

POST
/trade/v1/wallet/withdraw

Authorization

Authorization
Required
Bearer <token>

Privy identity token from a live browser session. Issued by the web app's Privy SDK; not obtainable via API. Used by operations that require a fresh browser session.

In: header

Request Body

application/jsonRequired

amount_micro
Required
string

Decimal micro-collateral amount: at least 10000 (0.01) and within the batch cap.

destination
Required
string

Same-chain destination; must be nonzero and differ from the account address.

curl -X POST "https://app.agara.xyz/trade/v1/wallet/withdraw" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "amount_micro": "1000000",
    "destination": "0x1111111111111111111111111111111111111111"
  }'

Withdrawal accepted; poll GET /trade/v1/batches/{batch_hash} for settlement.

{
  "as_of": "2019-08-24T14:15:22Z",
  "batch_hash": "string",
  "status": "string"
}