Skip to content
Fourohtwo

agents.writerslogic.com/api/v1/cidr-math

Computes exact CIDR relations for agents planning networks, firewall rules or allow-lists: for up to 200 IPv4/IPv6 blocks it reports which pairs are equal, nested, partially overlapping or merely adjacent, the minimal merged CIDR list, a subtraction (blocks minus exclusions), address membership with the most specific match, or each block's first/last address, count and host-bits-set errors. It doe

BaseAnswering
POSThttps://agents.writerslogic.com/api/v1/cidr-math

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.writerslogic.com/api/v1/cidr-math", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"op":"relations","ranges":["10.0.0.0/24","10.0.1.0/24","10.0.0.128/25","2001:db8::/32"]}),
});
console.log(await res.json());

Example input

{
  "op": "relations",
  "ranges": [
    "10.0.0.0/24",
    "10.0.1.0/24",
    "10.0.0.128/25",
    "2001:db8::/32"
  ]
}