A2A Contract Builder
www.omenz.org/api/tollbooth/v1/contract/build
A2A Contract Builder: turn a machine job into signed terms both agents hold: deliverable, deterministic acceptance tests (required_fields, field_types, regex, min_items, max_bytes, equals, url_alive, claim_evidence), max spend, deadline, parties. Ed25519-signed by OMENZ; verify offline with /v1/passport/key. By OMENZ.
POST
https://www.omenz.org/api/tollbooth/v1/contract/buildUptime100% 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://www.omenz.org/api/tollbooth/v1/contract/build", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"terms":{"acceptance":[{"field":"results","n":3,"type":"min_items"},{"field":"source","pattern":"https://.+","type":"regex"}],"buyer":"agent-a","deadline":1900000000,"deliverable":"hours for 3 restaurants","max_spend_usd":0.1,"seller":"agent-b"}}),
});
console.log(await res.json());Example input
{
"terms": {
"acceptance": [
{
"field": "results",
"n": 3,
"type": "min_items"
},
{
"field": "source",
"pattern": "https://.+",
"type": "regex"
}
],
"buyer": "agent-a",
"deadline": 1900000000,
"deliverable": "hours for 3 restaurants",
"max_spend_usd": 0.1,
"seller": "agent-b"
}
}