Autonomous AI service routing
Autonomous AI service routing
An autonomous routing layer where agents discover services through ENSv2, verify providers with live readiness checks, and pay for the best option themselves.
"Who can do this?" — Providers publish machine-readable identities and capabilities through ENSv2 names and records.
"Who can I reach right now?" — Live ENS record resolution and endpoint readiness probes verify each candidate before any payment decision.
"Which one to choose?" — Combines capability, price, and provider evidence into a runtime routing decision.
"How does the agent pay?" — The agent settles the selected service directly with HBAR — no accounts, no cards.
"How does the service request payment?" — The endpoint becomes machine-payable through HTTP 402 Payment Required.
"Who can do this?" — Providers publish machine-readable identities and capabilities through ENSv2 names and records.
"Who can I reach right now?" — Live ENS record resolution and endpoint readiness probes verify each candidate before any payment decision.
"Which one to choose?" — Combines capability, price, and provider evidence into a runtime routing decision.
"How does the agent pay?" — The agent settles the selected service directly with HBAR — no accounts, no cards.
"How does the service request payment?" — The endpoint becomes machine-payable through HTTP 402 Payment Required.
ENSv2 discovers. Readiness verifies. AI decides. Hedera settles. x402 unlocks. Zero human intervention in the execution loop.
The agent queries ENSv2 for candidates providing required capabilities without central gatekeepers or hardcoded provider endpoints.
// 1. ENSv2 machine discovery query
QUERY ens_records("ocr.*.agentpayapp.eth", { capability: "invoice-extraction" })
--> RESOLVED CANDIDATES (live agentpay.* text records):
[
{
"name": "alpha.ocr.agentpayapp.eth",
"agentpay.capability": "invoice-extraction",
"agentpay.endpoint": "https://alpha.ocr.agentpayapp.eth/extract",
"agentpay.payment.network": "hedera:testnet",
"agentpay.payment.asset": "0.0.0",
"agentpay.payment.recipient": "0.0.ALPHA_RECIPIENT",
"agentpay.active": "true"
},
{
"name": "beta.ocr.agentpayapp.eth",
"agentpay.capability": "invoice-extraction",
"agentpay.endpoint": "https://beta.ocr.agentpayapp.eth/extract",
"agentpay.payment.network": "hedera:testnet",
"agentpay.payment.asset": "0.0.0",
"agentpay.payment.recipient": "0.0.BETA_RECIPIENT",
"agentpay.active": "true"
}
]