Skip to content
Fourohtwo

agents.writerslogic.com/api/v1/micro-batch

Bundles up to 20 calls to any pure micro check (catalog entries that are neither stateful nor network-reading, e.g. checksum, patch-anchor, allocate, business-deadline) into one x402 settlement, so each check costs $0.001. Every call is validated before payment; one invalid call rejects the batch with its index. Results come back in order, each exactly as the single-call endpoint returns it.

BaseAnswering
POSThttps://agents.writerslogic.com/api/v1/micro-batch

Uptime100% of 2 checks 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/micro-batch", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"calls":[{"tool":"acceptance-receipt","input":{"tests":[{"id":"positive","min":0,"kind":"number-between","path":"/total"}],"output":{"total":10}}},{"tool":"acceptance-receipt","input":{"tests":[{"id":"positive","min":0,"kind":"number-between","path":"/total"}],"output":{"total":-1}}}]}),
});
console.log(await res.json());

Example input

{
  "calls": [
    {
      "tool": "acceptance-receipt",
      "input": {
        "tests": [
          {
            "id": "positive",
            "min": 0,
            "kind": "number-between",
            "path": "/total"
          }
        ],
        "output": {
          "total": 10
        }
      }
    },
    {
      "tool": "acceptance-receipt",
      "input": {
        "tests": [
          {
            "id": "positive",
            "min": 0,
            "kind": "number-between",
            "path": "/total"
          }
        ],
        "output": {
          "total": -1
        }
      }
    }
  ]
}