# Madhouse Wallet Cross-Border FX Quote

> Madhouse Wallet Cross-Border FX Quote is a paid API for AI agents from try.madhousewallet.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns an FX rate, fee breakdown, and recipient payout amount for a USD-to-foreign-currency money transfer quote.

## Facts

- Endpoint: GET https://try.madhousewallet.com/api/public/quote
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/try-madhousewallet-com-15011f7d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QP-WRSVyV_m36Hhd-Hp-w

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 try-madhousewallet-com-15011f7d
```

Example prompt: What's the current FX rate and how much would my recipient actually receive in Nigerian naira (NGN) if I send $500 USD through Madhouse Wallet?

## When to prefer this

Use this endpoint when you need to show a user the exact payout amount and fee breakdown before committing to a cross-border transfer. It supports 80+ currencies and is the required first step before calling the transfer creation endpoint — the returned quoteId locks in the rate for downstream use.

## Known failure modes

- Unsupported targetCurrency returns an error — only 80+ supported ISO 4217 codes are valid
- sourceAmount of 0 or above 1,000,000 returns a validation error
- Missing required query parameters (targetCurrency or sourceAmount) returns a 400-level error
- Payment of 0.01 USDC not provided triggers a 402 Payment Required response
- Network or provider outage may return a 500-level error with no quote data

## How this service works

Convert USDC to 45+ local currencies and receive funds directly to your bank account. Fast, secure crypto offramp powered by Madhouse Wallet.

## Output

Returns a quoteId (used to create a transfer), the echoed sourceAmount and targetCurrency, the USD-to-target exchange rate, a quote object with targetAmount (what the recipient receives), transferFee in USD, fee breakdown fields (feeFxPercent, feeFxAmount, feePayoutAmount), and estimatedDelivery timestamp. Some fee fields may be null.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "sourceAmount": "500",
   "targetCurrency": "NGN"
  }
 }
}
```

## 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"
   ],
   "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 to send in USD, e.g. 100. Must be greater than 0 and at most 1000000."
      },
      "targetCurrency": {
       "type": "string",
       "description": "ISO 4217 code of the currency the recipient receives, e.g. NGN, KES, EUR, INR, PHP. Must be a supported currency."
      }
     }
    }
   },
   "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": "Quote detail. Fields: targetAmount (number, what the recipient receives, may be null), transferFee (number USD, may be null), feeFxPercent, feeFxAmount, feePayoutAmount (fee breakdown, may be null), estimatedDelivery (ISO timestamp string, may be null)."
      },
      "quoteId": {
       "type": "string",
       "description": "Quote identifier. Pass to /api/public/transfer as quote_id to lock this rate."
      },
      "sourceAmount": {
       "type": "number",
       "description": "Echoed USD source amount."
      },
      "targetCurrency": {
       "type": "string",
       "description": "Echoed ISO 4217 target currency."
      },
      "usdToTargetRate": {
       "type": "number",
       "description": "USD to target-currency exchange rate used for this quote."
      },
      "serviceFeePercent": {
       "type": "number",
       "description": "Service fee as a percentage of the source amount."
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "quote": {
   "feeFxAmount": 0.32,
   "transferFee": 0.5,
   "feeFxPercent": 0.47,
   "targetAmount": 155661.4,
   "feePayoutAmount": 0.18,
   "estimatedDelivery": "2026-06-01T12:00:00.000Z"
  },
  "quoteId": "7f3c1a2b-0d9e-4a6f-8c11-2b9d4e5f6a7b",
  "sourceAmount": 100,
  "targetCurrency": "NGN",
  "usdToTargetRate": 1580.42,
  "serviceFeePercent": 1.5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/try-madhousewallet-com-15011f7d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from try.madhousewallet.com](https://www.zero.xyz/host/try.madhousewallet.com/llms.txt)
