{
  "x402Version": 2,
  "id": 1440,
  "slug": "1440",
  "resource": "https://www.mahastrategies.com/api/v1/micro/bracketed-polynomial-root",
  "description": "Get a checked rational bracket for a degree 1-8 polynomial root. Bisect a sign-changing rational bracket for at most 64 iterations; return a certified bracket or exact rational root. No arbitrary code, all-roots or uniqueness claim.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xec84c1cd6602bbe387bc8e6f0d3c062f2762de28",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "9000",
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "coefficientsAscending": [
              "-2",
              "0",
              "1"
            ],
            "dataClass": "synthetic",
            "lower": "1",
            "maxIterations": 32,
            "tolerance": "0.000001",
            "upper": "2"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "amountBaseUnits": "9000",
            "boundaries": [
              "Public or synthetic inputs only. Caller labels are declarations,…"
            ],
            "inputDigest": "sha256:9c7a77d17f180516b1a50bfa14c2a07c341c7998bb5f9e0e27acb6134…",
            "offerId": "bracketed-polynomial-root",
            "receiptDigest": "sha256:59a1bfd270d4c21109a44d722b4ef5782ff3454c7dcb8634e317e4b30…",
            "result": {
              "bracket": {
                "lower": {
                  "denominator": "524288",
                  "numerator": "741455"
                },
                "upper": {
                  "denominator": "1048576",
                  "numerator": "1482911"
                }
              },
              "iterations": 20,
              "method": "rational-polynomial-bisection",
              "state": "tolerance-reached",
              "uniquenessEstablished": false
            },
            "version": "maha-microproducts/0.1"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "coefficientsAscending": {
                    "maxItems": 9,
                    "minItems": 1,
                    "type": "array"
                  },
                  "dataClass": {
                    "enum": [
                      "public",
                      "synthetic"
                    ],
                    "type": "string"
                  },
                  "lower": {
                    "maxLength": 21,
                    "type": "string"
                  },
                  "maxIterations": {
                    "maximum": 64,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "tolerance": {
                    "maxLength": 21,
                    "type": "string"
                  },
                  "upper": {
                    "maxLength": 21,
                    "type": "string"
                  }
                },
                "required": [
                  "dataClass",
                  "coefficientsAscending",
                  "lower",
                  "upper",
                  "tolerance",
                  "maxIterations"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "additionalProperties": false,
                "properties": {
                  "amountBaseUnits": {
                    "enum": [
                      "9000"
                    ],
                    "type": "string"
                  },
                  "boundaries": {
                    "maxItems": 128,
                    "minItems": 0,
                    "type": "array"
                  },
                  "inputDigest": {
                    "maxLength": 71,
                    "type": "string"
                  },
                  "offerId": {
                    "enum": [
                      "bracketed-polynomial-root"
                    ],
                    "type": "string"
                  },
                  "receiptDigest": {
                    "maxLength": 71,
                    "type": "string"
                  },
                  "result": {
                    "type": "object"
                  },
                  "version": {
                    "enum": [
                      "maha-microproducts/0.1"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "version",
                  "offerId",
                  "amountBaseUnits",
                  "inputDigest",
                  "result",
                  "boundaries",
                  "receiptDigest"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "declaration-integrity": {
      "canonicalResource": "https://www.mahastrategies.com/api/v1/micro/bracketed-polynomial-root",
      "declarationDigest": "sha256:281aa4d8bdc5e55a73232bc61bff9131f29fc6b11f5266b87fa91f0eb4a39d89",
      "metadataVersion": "2026-08-10"
    },
    "maha-offer": {
      "amount": "9000",
      "asset": "USDC",
      "assetDecimals": 6,
      "canonicalResource": "https://www.mahastrategies.com/api/v1/micro/bracketed-polynomial-root",
      "declarationInline": "compact",
      "declarationUrl": "https://www.mahastrategies.com/api/discovery/x402-offers/bracketed-polynomial-root",
      "fullSourceTextStored": false,
      "maxRequestBytes": 32768,
      "method": "POST",
      "network": "eip155:8453",
      "offerId": "bracketed-polynomial-root",
      "payableInProduction": true,
      "status": "available",
      "verbatimExcerptsRetained": false
    }
  },
  "tags": [
    "bazaar",
    "declaration-integrity",
    "maha-offer"
  ],
  "sourceHost": "www.mahastrategies.com",
  "lastUpdated": "2026-09-13T06:52:58.905Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-13T06:52:58.698Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "www.mahastrategies.com",
    "manifest_name": "www.mahastrategies.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}