API · x402

Refinance comparison: new payment, months to recoup closing costs, remaining interest o…

Refinance comparison: new payment, months to recoup closing costs, remaining interest on each loan and lifetime savings, with optional costs rolled into the loan.

by Saylor Innovations Knowledge Base · verified provider · updated 2026-10-26

What it does

Refinance comparison: new payment, months to recoup closing costs, remaining interest on each loan and lifetime savings, with optional costs rolled into the loan.

Tags: refinance calculator · refinance break even months · is refinancing worth it · new mortgage payment savings · closing costs payback

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/saylorinnovations-api-finance-refinance.json for the price and payment options.
  3. Pay. Call GET https://saylorinnovations.com/api/finance/refinance. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC or USDT or SOL on Base, Polygon, Arbitrum One, Solana, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.01 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base, Polygon, Arbitrum One, Solana

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.010xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa120s
exactPolygon
eip155:137
USDC$0.010xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa120s
exactArbitrum One
eip155:42161
USDC$0.010xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa120s
exactSolana
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
USDC$0.017LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7120s
exactSolana
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
USDT$0.017LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7120s
exactSolana
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
SOL$0.017LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7120s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 120
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 120
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 120
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 120
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
    "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 120
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
    "asset": "So11111111111111111111111111111111111111112",
    "amount": "95830",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 120
  }
]

Schemas

Output schema (JSON Schema)
{
  "type": "object",
  "properties": {
    "current_payment": {
      "type": "number",
      "description": "Monthly payment on the existing loan"
    },
    "new_payment": {
      "type": "number",
      "description": "Monthly payment on the new loan"
    },
    "monthly_change": {
      "type": "number",
      "description": "New payment minus current payment (negative is a saving)"
    },
    "new_loan_amount": {
      "type": "number",
      "description": "New principal, including rolled-in costs if chosen"
    },
    "closing_costs": {
      "type": "number",
      "description": "Closing costs used"
    },
    "costs_rolled_into_loan": {
      "type": "boolean",
      "description": "Whether the costs were financed"
    },
    "breakeven_months": {
      "type": [
        "number",
        "null"
      ],
      "description": "Months of savings needed to recoup upfront costs, null if no saving"
    },
    "breakeven_years": {
      "type": [
        "number",
        "null"
      ],
      "description": "Break-even in years"
    },
    "remaining_interest_current": {
      "type": "number",
      "description": "Interest left to pay on the current loan"
    },
    "total_interest_new": {
      "type": "number",
      "description": "Total interest on the new loan"
    },
    "total_cost_current": {
      "type": "number",
      "description": "All remaining payments on the current loan"
    },
    "total_cost_new_including_closing": {
      "type": "number",
      "description": "All new payments plus upfront closing costs"
    },
    "lifetime_savings": {
      "type": "number",
      "description": "Current total cost minus new total cost"
    },
    "term_extended_months": {
      "type": "number",
      "description": "Change in the number of payments"
    },
    "worth_it": {
      "type": "boolean",
      "description": "True when the break-even exists and lifetime cost falls"
    },
    "note": {
      "type": "string",
      "description": "Plain-language caveat about how to read and use the result"
    },
    "source": {
      "type": "string",
      "description": "Where the data or formula comes from"
    }
  },
  "required": [
    "new_payment",
    "breakeven_months"
  ]
}
Example shape — generated from the schema, not a captured live response
{
  "current_payment": 0,
  "new_payment": 0,
  "monthly_change": 0,
  "new_loan_amount": 0,
  "closing_costs": 0,
  "costs_rolled_into_loan": true,
  "breakeven_months": 0,
  "breakeven_years": 0,
  "remaining_interest_current": 0,
  "total_interest_new": 0,
  "total_cost_current": 0,
  "total_cost_new_including_closing": 0,
  "lifetime_savings": 0,
  "term_extended_months": 0,
  "worth_it": true,
  "note": "string",
  "source": "string"
}

Examples

curl
curl "https://saylorinnovations.com/api/finance/refinance"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://saylorinnovations.com/api/finance/refinance");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://saylorinnovations.com/api/finance/refinance")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
Saylor Innovations Knowledge Base
Endpoint
https://saylorinnovations.com/api/finance/refinance
Side effects
Paid calls settle the advertised payment; see the provider contract for execution behavior.
Machine-readable
/resources/saylorinnovations-api-finance-refinance.json