Skip to content
Fourohtwo

datenvertrag.halowerk.com/v1/ipv4-embedded-address-bit-mapping

Apply RFC6052 structural IPv4-embedded address layouts for prefix lengths32/40/48/56/64/96 from a caller-supplied canonical128bit prefix. Embed four IPv4 octets or extract them from a32lowercase-hex IPv6 address, checking prefix and reserved u octet, reporting ignored nonzero suffix and canonical zero-suffix address. Structural mismatch is a known not_observed result. Fixed hexadecimal input/outpu

BaseAnswering
POSThttps://datenvertrag.halowerk.com/v1/ipv4-embedded-address-bit-mapping

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://datenvertrag.halowerk.com/v1/ipv4-embedded-address-bit-mapping", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"address":[192,0,2,33],"mode":"embed","prefix_hex":"20010db8000000000000000000000000","prefix_length":32}),
});
console.log(await res.json());

Example input

{
  "address": [
    192,
    0,
    2,
    33
  ],
  "mode": "embed",
  "prefix_hex": "20010db8000000000000000000000000",
  "prefix_length": 32
}