Skip to content
Fourohtwo

detect.halowerk.com/v1/F-A-NIGHT-PROTOCOL-TURN/turn-allocation-permission-channe

Returns which TURN data events remain eligible when permission, allocation and channel timers expire independently, including shared-IP different-endpoint permissions and channel rebinding wait rules, for an offline relay-protocol fixture author.

BaseAnswering
POSThttps://detect.halowerk.com/v1/F-A-NIGHT-PROTOCOL-TURN/turn-allocation-permission-channel-lifetime

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://detect.halowerk.com/v1/F-A-NIGHT-PROTOCOL-TURN/turn-allocation-permission-channel-lifetime", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"artifact":{"turn_lifetime":{"claim":2,"events":[{"lifetime":3600,"op":"allocate","time":0},{"channel":0,"op":"bind","peer":0,"time":0},{"op":"data_from_peer","peer":0,"time":299},{"op":"data_from_peer","peer":0,"time":300},{"channel":0,"op":"channel_from_client","time":301}],"peers":[{"id":0,"ip":1},{"id":1,"ip":1},{"id":2,"ip":2}],"server_max_lifetime":3600}}}),
});
console.log(await res.json());

Example input

{
  "artifact": {
    "turn_lifetime": {
      "claim": 2,
      "events": [
        {
          "lifetime": 3600,
          "op": "allocate",
          "time": 0
        },
        {
          "channel": 0,
          "op": "bind",
          "peer": 0,
          "time": 0
        },
        {
          "op": "data_from_peer",
          "peer": 0,
          "time": 299
        },
        {
          "op": "data_from_peer",
          "peer": 0,
          "time": 300
        },
        {
          "channel": 0,
          "op": "channel_from_client",
          "time": 301
        }
      ],
      "peers": [
        {
          "id": 0,
          "ip": 1
        },
        {
          "id": 1,
          "ip": 1
        },
        {
          "id": 2,
          "ip": 2
        }
      ],
      "server_max_lifetime": 3600
    }
  }
}