{
  "x402Version": 2,
  "id": 41799,
  "slug": "41799",
  "resource": "https://fraction.openverbs.com/v1/arithmetic",
  "description": "Add, subtract, multiply or divide two fractions and return the exact, fully-reduced result. All computation is done in BigInt so there is no floating-point error. Dividing by a zero fraction is a clean 400.",
  "type": "http",
  "serviceName": "Fraction arithmetic",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xb3f4de103F34b99f0Da19B4F16D6B53a14C2194A",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    }
  ],
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "a": {
              "denominator": 1,
              "numerator": 1
            },
            "b": {
              "denominator": 1,
              "numerator": 1
            },
            "operation": "add"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "a": {
                    "additionalProperties": false,
                    "description": "First fraction.",
                    "properties": {
                      "denominator": {
                        "description": "Default 1.",
                        "type": "integer"
                      },
                      "numerator": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "numerator"
                    ],
                    "type": "object"
                  },
                  "b": {
                    "additionalProperties": false,
                    "description": "Second fraction.",
                    "properties": {
                      "denominator": {
                        "description": "Default 1.",
                        "type": "integer"
                      },
                      "numerator": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "numerator"
                    ],
                    "type": "object"
                  },
                  "operation": {
                    "description": "The operation.",
                    "enum": [
                      "add",
                      "subtract",
                      "multiply",
                      "divide"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "a",
                  "b",
                  "operation"
                ],
                "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"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "fraction arithmetic",
    "add fractions",
    "subtract fractions",
    "multiply fractions",
    "divide fractions",
    "bazaar"
  ],
  "sourceHost": "fraction.openverbs.com",
  "lastUpdated": "2026-10-05T13:55:44.499Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-05T13:55:44.235Z"
  },
  "metadata": {
    "serviceName": "Fraction arithmetic",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "a": {
                "denominator": 1,
                "numerator": 1
              },
              "b": {
                "denominator": 1,
                "numerator": 1
              },
              "operation": "add"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "a": {
                      "additionalProperties": false,
                      "description": "First fraction.",
                      "properties": {
                        "denominator": {
                          "description": "Default 1.",
                          "type": "integer"
                        },
                        "numerator": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "numerator"
                      ],
                      "type": "object"
                    },
                    "b": {
                      "additionalProperties": false,
                      "description": "Second fraction.",
                      "properties": {
                        "denominator": {
                          "description": "Default 1.",
                          "type": "integer"
                        },
                        "numerator": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "numerator"
                      ],
                      "type": "object"
                    },
                    "operation": {
                      "description": "The operation.",
                      "enum": [
                        "add",
                        "subtract",
                        "multiply",
                        "divide"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "a",
                    "b",
                    "operation"
                  ],
                  "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"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "fraction.openverbs.com",
    "manifest_name": "fraction.openverbs.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  }
}