{"uid":"cap_JlSdQHn4_1n8cn6xmMso0","slug":"flipr-x402-fly-dev-3b6e0462","name":"Flipr ETH-to-USDC Withdrawal","description":"Withdraw agent ETH balance to USDC (mutates: gas + swap)","url":"https://flipr-x402.fly.dev/x402/withdraw","method":"POST","headers":{},"bodySchema":{"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"}}}}},"responseSchema":{"type":"json","example":{"txHash":"0xabc...","wallet":"0x...","agentId":"my-bot-v1","receivedUSDC":"2.45","withdrawnWei":"1000000000000000"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AxZAKK7muZeMQa77yzVp-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Withdraws an agent's ETH balance on Flipr and converts it to USDC, consuming gas and performing a swap","exampleAgentPrompt":"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.","exampleUseCases":null,"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:36:40.073Z","isFirstParty":false}