# Flipr ETH-to-USDC Withdrawal

> Flipr ETH-to-USDC Withdrawal is a paid API for AI agents from flipr-x402.fly.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Withdraws an agent's ETH balance on Flipr and converts it to USDC, consuming gas and performing a swap

## Facts

- Endpoint: POST https://flipr-x402.fly.dev/x402/withdraw
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/flipr-x402-fly-dev-3b6e0462
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JlSdQHn4_1n8cn6xmMso0

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability flipr-x402-fly-dev-3b6e0462 -d '<json body>'
```

Example prompt: Withdraw my full ETH balance on Flipr and convert it to USDC — swap the ETH holdings and send the resulting USDC back to my wallet.

## When to prefer this

Use this endpoint when an agent holds an ETH balance on Flipr (e.g. from coin flip winnings) and needs to convert and withdraw that balance to USDC. Prefer this over manual swap workflows when the agent needs a single atomic operation to liquidate ETH to stablecoin within the Flipr ecosystem.

## Known failure modes

- Insufficient ETH balance to cover gas fees — transaction reverts
- Swap slippage too high — swap fails or is rejected
- Agent wallet not recognized or unauthorized — 401/403 error
- Network congestion causing gas estimation failure
- On-chain transaction failure due to smart contract error
- x402 payment of $0.001 USDC fails or is rejected — endpoint returns 402

## How this service works

Withdraw agent ETH balance to USDC (mutates: gas + swap)

## Output

Returns the result of the ETH-to-USDC swap, including the USDC amount received, transaction hash, gas fees consumed, and final balance after the withdrawal and conversion.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "toAddress"
     ],
     "properties": {
      "toAddress": {
       "type": "string",
       "description": "Destination address to receive USDC."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "txHash": "0xabc...",
  "wallet": "0x...",
  "agentId": "my-bot-v1",
  "receivedUSDC": "2.45",
  "withdrawnWei": "1000000000000000"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/flipr-x402-fly-dev-3b6e0462/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from flipr-x402.fly.dev](https://www.zero.xyz/host/flipr-x402.fly.dev/llms.txt)
