{"uid":"cap_k2Tc70zzxSCA43k91VnIa","slug":"madhouse-wallet-crypto-off-ramp-fx-quote-beb76f68","name":"Madhouse Wallet Crypto Off-Ramp FX Quote","description":"Convert USDC to 45+ local currencies and receive funds directly to your bank account. Fast, secure crypto offramp powered by Madhouse Wallet.","url":"https://try.madhousewallet.com/api/public/offramp","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["targetCurrency","sourceAmount"],"properties":{"sourceAmount":{"type":"string","description":"Amount of USDC/USD to sell (off-ramp), e.g. 100. Greater than 0 and at most 1000000."},"targetCurrency":{"type":"string","description":"ISO 4217 code of the fiat currency the recipient bank account receives, e.g. NGN, KES, EUR, INR, PHP."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["quoteId","sourceAmount","targetCurrency","usdToTargetRate","quote"],"properties":{"quote":{"type":"object","description":"Fee/amount detail (targetAmount, transferFee, estimatedDelivery, ...)."},"quoteId":{"type":"string","description":"Quote id. Pass as quote_id to /api/public/transfer to lock the rate."},"nextSteps":{"type":"object","description":"URLs for the remaining off-ramp steps."},"sourceAmount":{"type":"number","description":"Echoed USD/USDC source amount being off-ramped."},"targetCurrency":{"type":"string","description":"Echoed ISO 4217 target fiat currency."},"usdToTargetRate":{"type":"number","description":"USD to target-currency FX rate for this quote."}}}}}}},"responseSchema":{"type":"json","example":{"quote":{"transferFee":0.5,"targetAmount":155661.4,"estimatedDelivery":"2026-06-01T12:00:00.000Z"},"quoteId":"7f3c1a2b-0d9e-4a6f-8c11-2b9d4e5f6a7b","nextSteps":{"1_requirements":"https://try.madhousewallet.com/api/public/requirements?currency=NGN"},"sourceAmount":100,"targetCurrency":"NGN","usdToTargetRate":1580.42,"serviceFeePercent":1.5}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5Fnb-gZqwD132e1Myw9zd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Get an FX rate quote to sell USDC and cash out to a bank account in a specified fiat currency, returning the rate, fees, fiat amount received, and a locked quoteId to proceed with payout.","exampleAgentPrompt":"Can you get me a Madhouse Wallet off-ramp quote to sell 250 USDC and have the funds arrive in Nigerian naira (NGN) — I need the exchange rate, fees, and a quoteId to lock it in?","exampleUseCases":null,"resultDescription":"Returns a quoteId to lock the rate, the echoed sourceAmount and targetCurrency, the USD-to-target FX rate, a fee/amount detail object (targetAmount, transferFee, estimatedDelivery), and a nextSteps object with URLs for the remaining off-ramp steps (/requirements, /recipients, /transfer, /confirm-transfer).","failureModes":["Missing or invalid targetCurrency (non-ISO 4217 code) returns validation error","sourceAmount of 0 or exceeding 1,000,000 returns out-of-range error","Unsupported target currency not in the 80+ supported list returns unsupported currency error","Payment of 0.01 USDC not made via x402 protocol returns 402 Payment Required","Network or FX provider outage may return 503 or timeout"],"whenToPreferThis":"Use this endpoint as the first step of any USDC-to-bank payout flow when you need a real-time FX rate, fee breakdown, and a locked quoteId before committing to a transfer. Prefer this over generic crypto exchange APIs when you need to pay out to a bank account in 80+ local fiat currencies and want to chain into the full /requirements → /recipients → /transfer → /confirm-transfer workflow on Madhouse Wallet.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:47:45.685Z","isFirstParty":false}