Check a payout quote before paying
check_payout_rateCheck a payout provider's quote before paying, e.g. 'USD 25,000 to NGN at 1,545.20, fee 0.01%, rail NIP'. Returns the official rate the payment is measured against (publisher and date), the market rates read for the destination currency (exchange order books and P2P adverts, each with its source and time, labelled as what it is), the gap between the quote and each in money and percent, the all-in cost against the official rate with the fee included, flags where the quote sits beyond a documented official/market gap or above every market rate read, a Rate Receipt and an Ed25519 signature (verify at POST https://swapeazi.io/api/v1/attestations/verify). Works for any pair with an official rate; built for payouts into Nigeria (NGN, where providers pay at a market rate above the official one) and Ghana (GHS). Free within the daily allowance; a router key is not counted. The same check is POST https://swapeazi.io/api/v1/quote-check. Information, not advice: SwapEazi never touches the money; a person approves and pays through their own provider.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from": "<from>",
"to": "<to>",
"amount": "<amount>",
"quoted_rate": "<quoted_rate>"
},
"name": "check_payout_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ISO code of the currency the recipient gets, e.g. NGN or GHS. | |
| from | Yes | ISO code of the currency sent, e.g. USD. | |
| rail | No | The payout rail, e.g. NIP, GIP or mobile money (echoed). | |
| amount | Yes | The amount sent, in the source currency, before the fee, e.g. 25000. | |
| fee_pct | No | The fee as a percent of the amount, e.g. 0.01 for 0.01%. Charged on top unless fee_included. | |
| access_key | No | A router key (rk_...), if not sent as a Bearer header: not counted against the free allowance. | |
| fee_amount | No | Or a fixed fee in the source currency. | |
| quoted_rate | Yes | The rate quoted: destination units per one source unit, e.g. 1545.20. | |
| fee_included | No | True when the fee comes out of the amount sent. |