Submit
List your tool
Turn your API into an agent-ready, pay-per-call tool. Already using x402? Just bring the endpoint.
0% commission
paid() adds x402 to your existing handler. Your price and wallet go out in the 402; successful calls settle directly to you.
npm install onchainrouterimport { paid } from "onchainrouter/server"; export const POST = paid( { price: { hbar: "0.1", usdc: "0.01" }, payTo: { hedera: "0.0.12345", arc: "0xYourAddress" }, }, async (input) => { const result = await yourExistingLogic(input); if (!result) return null; // no answer, no charge return result; }, );
A complete Next.js route, and a plain (Request) => Response for Hono, Bun, Workers or Express. Deploy it, then continue.
We read the price, payment rails and payout address straight from your 402. POST, JSON body.
Example request
Sent as the body when checking; shown on the tool page.
One sentence, shown on the catalogue card.
One per line. Fixed choices as a | b | c.
Opens a prefilled GitHub issue with everything we read from your 402. We review it, then your tool is live in the catalogue and over MCP.
0% commissionDirect settlementMCP + HTTP
Prefer a pull request? Add an external() entry to lib/tools/registry.ts. Agents can do the same over POST /api/submit or the free submit_tool MCP tool.