# Subnet Calculator — IPv4 IPv6 CIDR in one call

Given any CIDR, return network, broadcast, netmask, first/last usable host, host count, RFC class, reverse-DNS zone and optional address membership.

| | |
|---|---|
| Price | $0.002 per call, in USDC over x402 |
| Can be bought now | yes |
| Category | dev |
| Seller | Mythos Agent Toolkit |
| Tools | 43 |
| Tags | subnet, cidr, ipv4, ipv6, networking, netmask, devops, calculator |
| Listing page | https://fiatdock.com/service/svc_0a24f7bc-1959-4e40-a653-a53960346ffd |
| Endpoint to call | <https://fiatdock.com/s/svc_0a24f7bc-1959-4e40-a653-a53960346ffd> |

## What it does

Subnet math for one CIDR, IPv4 or IPv6, in one paid call. Input cidr=10.0.0.0/22 \(or ip= plus prefix=, or ip= plus a dotted netmask such as 255.255.252.0\). Returns the normalized network address; broadcast, netmask and wildcard mask for IPv4; first and last usable host with correct /31 point-to-point and /32 single-host handling; exact total-address and usable-host counts \(BigInt strings above 2^53, so /64 and /0 are not rounded\); a host-bits-set flag; RFC classification \(private, CGNAT, loopback, link-local, documentation, multicast, reserved; IPv6 unique-local, 6to4, Teredo, NAT64, global unicast\); and the reverse-DNS zone name. Add test=10.0.1.5 to ask whether an address is inside the range. Parses ::, ::1 and embedded IPv4 tails; prints RFC 5952 canonical IPv6. Invalid input answers 400 naming the failing field. Pure local bit arithmetic, no upstream, deterministic. 0.002 USDC per call on Base via x402. Args: {cidr: "10.0.0.0/22", test: "10.0.1.5"}.

## How to buy

```text
PAID ($0.002/call): call_service({ id: "svc_0a24f7bc-1959-4e40-a653-a53960346ffd", args }) — the 402 lists ONE x402 payment = the FULL price straight to the seller (FiatDock takes 0% of this listing's calls right now); the fiatdock-mcp npm package (AGENT_PRIVATE_KEY) pays it automatically. This remote /mcp returns the 402 challenge. You are charged only if the seller actually answers. To learn what to put in arguments, call get_service({ id: "svc_0a24f7bc-1959-4e40-a653-a53960346ffd", includeSchemas: true }) first — it returns toolSchemas (argument names and types). This is free, and it is the only way to get them: a paid listing's own endpoint is not published.
```

## Tools (43)

- `register`
- `credits`
- `buy_credits`
- `catalog`
- `time`
- `price_eth`
- `health`
- `web2md`
- `captcha_solve`
- `crypto_price`
- `gas_price`
- `token_security`
- `dns_lookup`
- `ip_lookup`
- `web_search`
- `screenshot`
- `html_to_pdf`
- `polymarket`
- `gas_multi`
- `payability`
- `poly_markets`
- `hl_oi`
- `lending_yields`
- `token_rep`
- `chain_block`
- `poly_walls`
- `trench_radar`
- `monad_defi`
- `token_meta`
- `trending`
- `agent_brief`
- `data_pack`
- `btc_decode`
- `business_days`
- `hostname_dossier`
- `email_check`
- `options_math`
- `link_preview`
- `jwt_decode`
- `cron_parse`
- …and 3 more (GET https://fiatdock.com/v1/marketplace/services/svc_0a24f7bc-1959-4e40-a653-a53960346ffd?include=schemas for each tool's arguments)

---

The same listing as JSON: https://fiatdock.com/v1/marketplace/services/svc_0a24f7bc-1959-4e40-a653-a53960346ffd · the whole catalog: https://fiatdock.com/llms.txt
