Api Endpoint

Saylor Innovations Dev Tools

Compound interest calculator - final balance, interest earned and year-by-year growth for a principal, rate, years and optional monthly contribution

Open interactive test console

Offering

Provider
saylorinnovations.com
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Financial Analysis
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://saylorinnovations.com/api/calc/compound
MIME type
Not provided
First seen
2026-10-16T01:51:51.176Z
Last seen
Tags
calc, compound, calculator

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.01 USDC
Atomic price: 10000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "10000",
    "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7"
  }
]

Observed health

Status
Healthy
Latest latency
134 ms
Average latency
184 ms
HTTP status
402
Last checked
Reachability
100% over 4 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "method": {
      "enum": [
        "GET",
        "POST",
        "PUT",
        "PATCH",
        "DELETE",
        "HEAD"
      ],
      "type": "string"
    },
    "queryParams": {
      "properties": {
        "monthly_contribution": {
          "description": "optional, default 0",
          "type": "string"
        },
        "principal": {
          "description": "Starting amount",
          "type": "string"
        },
        "rate": {
          "description": "Annual interest rate in percent",
          "type": "string"
        },
        "years": {
          "description": "Years to grow",
          "type": "string"
        }
      },
      "required": [
        "principal",
        "rate",
        "years"
      ],
      "type": "object"
    },
    "type": {
      "const": "http",
      "type": "string"
    }
  },
  "required": [
    "type",
    "method"
  ],
  "type": "object"
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET",
            "POST",
            "PUT",
            "PATCH",
            "DELETE",
            "HEAD"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "monthly_contribution": {
              "description": "optional, default 0",
              "type": "string"
            },
            "principal": {
              "description": "Starting amount",
              "type": "string"
            },
            "rate": {
              "description": "Annual interest rate in percent",
              "type": "string"
            },
            "years": {
              "description": "Years to grow",
              "type": "string"
            }
          },
          "required": [
            "principal",
            "rate",
            "years"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "annual_rate_percent": {
              "description": "Annual rate as a percentage",
              "type": [
                "number",
                "null"
              ]
            },
            "checked_at": {
              "description": "Time the check was run (UTC)",
              "type": [
                "string",
                "null"
              ]
            },
            "compounds_per_year": {
              "description": "Compounds per year",
              "type": [
                "number",
                "null"
              ]
            },
            "effective_annual_rate_percent": {
              "description": "Effective annual rate, as a percentage",
              "type": "number"
            },
            "final_balance": {
              "description": "Balance at the end of the period",
              "type": "number"
            },
            "interest_earned": {
              "description": "Total interest earned",
              "type": "number"
            },
            "method": {
              "description": "Method used",
              "type": [
                "string",
                "null"
              ]
            },
            "monthly_contribution": {
              "description": "Monthly contribution",
              "type": [
                "number",
                "null"
              ]
            },
            "principal": {
              "description": "Starting principal amount",
              "type": [
                "number",
                "null"
              ]
            },
            "total_contributions": {
              "description": "Total contributions",
              "type": "number"
            },
            "yearly": {
              "description": "Yearly values",
              "items": {
                "properties": {
                  "balance": {
                    "description": "Balance in whole units",
                    "type": "number"
                  },
                  "contributions": {
                    "type": "number"
                  },
                  "interest": {
                    "type": "number"
                  },
                  "year": {
                    "description": "Calendar year",
                    "type": "number"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "years": {
              "description": "Years covered",
              "type": [
                "number",
                "null"
              ]
            }
          },
          "required": [
            "final_balance",
            "total_contributions",
            "interest_earned"
          ],
          "type": "object"
        },
        "type": {
          "const": "json",
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}