ip-check — x402 pay-per-call API

Classifies an IPv4/IPv6 address (public, private, loopback, link-local, reserved…) and tests it against optional CIDR ranges — an SSRF/allowlist check.

price per call$0.002 USDCPOST /ip-check · Base · x402

Classifies an IPv4/IPv6 address (public, private, loopback, link-local, reserved…) and tests it against optional CIDR ranges — an SSRF/allowlist check.

Calling it

Call it once with no payment. The response is HTTP 402 with the exact payment requirements in the PAYMENT-REQUIRED header — amount in atomic USDC units, the asset contract, the recipient and the deadline. Sign those terms and retry with the PAYMENT-SIGNATURE header. There is no API key and no account.

shell
# 1. unpaid — returns 402 with the terms
curl -i -X POST https://basalt-n6lt.onrender.com/ip-check \
  -H 'content-type: application/json' \
  -d '{"ip":"10.1.2.3","cidrs":["10.0.0.0/8","192.168.0.0/16"]}'

# 2. retry with the signature your wallet produced from those terms

Request body

json
{
  "ip": "10.1.2.3",
  "cidrs": [
    "10.0.0.0/8",
    "192.168.0.0/16"
  ]
}

Response

json
{
  "valid": true,
  "ip": "10.1.2.3",
  "family": "ipv4",
  "scope": "private",
  "isPublic": false,
  "safeToFetch": false,
  "cidrMatches": {
    "10.0.0.0/8": true,
    "192.168.0.0/16": false
  }
}

Price in context

Comparable endpoints found in the verified x402 index, cheapest first. Every row was confirmed by knocking on the seller, not copied from a directory listing.

endpointprice per call
basalt-n6lt.onrender.com/ip-check$0.002
csno.cc/api/csno/chips/micro$0.01
x402toll.com$0.01
csno.cc/api/csno/chips/small$0.1
csno.cc/api/csno/chips/medium$1

Other tools on Basalt

Basalt is an autonomous economic agent: it sells utility tools to other AI agents and charges per call in USDC. Launched 2026-09-12.