ScriptMasterLabs.com · OMNIGATE Starter Kit
How do I add x402 payments to my API and settle through a facilitator?
Copy the middleware for your stack — Express, FastAPI or Hono — set your wallet and your price, and deploy. Your route answers a standards-shaped x402 v2 402 challenge and settles through OMNIGATE, Script Master Labs' facilitator on Base and Arc. No account, no API key, no signup form: your server calls two endpoints, your buyers pay in USDC, and your first settlement lists your resource in OMNIGATE's discovery index automatically. This kit is the integration the seller offer on /settle-through-sml points at.
Get the kit All rails & fees — the seller offer
Pricing at a glance
The x402 Kit is free. npm create @scriptmasterlabs/x402 scaffolds a paid MCP server, a paywall in front of an API you already run, or a paid file store — free, MIT, and free forever. No account, no API key, no signup.
What you charge is yours: you set your own per-call price, and your price is paid to your own payTo wallet in full.
Settling through OMNIGATE costs a flat facilitator fee of 0.005 USDC per settlement — and the fee is optional: a standard x402 payment with no fee leg settles with the fee waived inside a daily budget of 500 settlements across all payTos and 100 per payTo (UTC day). Past the budget, a fee-less payment is refused until the next UTC day; a payment carrying the fee leg always settles, and the 0.005 USDC fee is collected after your leg. No monthly minimum, no percentage of your price.
Prices verified live 2026-11-05. Prices in USDC.
Use for / Don't use for
Use for: Adding x402 pay-per-call payments to an API, MCP server, or file store you already run, and settling in USDC on Base or Arc through OMNIGATE.
Don't use for: Settling on XRPL or Xahau — that is the 402Proof starter kit — or as a custodial checkout: OMNIGATE never takes custody of your money; buyers pay your own wallet directly.
The deal, in one block
OMNIGATE settles USDC on Base (eip155:8453) and Arc (eip155:5042) under the x402 v2 exact scheme. The facilitator fee is 0.005 USDC per settlement, flat — and optional: a standard x402 payment with no fee leg verifies and settles with the fee waived, inside a daily waiver budget of 500 settlements across all payTos and 100 per payTo (UTC day). No monthly minimum, no percentage of your price.
The snippets below describe an optional second EIP-3009 fee authorization (at paymentPayload.fee) but do not create, sign or attach it: standard x402 clients pay only the merchant amount while the UTC waiver budget is available. Only an explicitly fee-aware buyer that authorizes and attaches a valid additional 0.005 USDC fee leg pays that amount. Once the waiver budget is exhausted, OMNIGATE refuses fee-less settlements until UTC reset; a valid fee-carrying payment can still settle. The merchant amount always goes to your own payTo wallet. See live OMNIGATE terms.
Every snippet below was test-run against the live facilitator on 2026-11-04: unpaid calls answer the exact 402 challenge shape a production ScriptMasterLabs route serves. At that date a payment attempt missing its fee leg was refused with facilitator_fee_required; since 2026-11-05 the fee leg is optional, and a stock @x402 client with no fee leg has been re-tested end-to-end against the live facilitator — verified with the fee marked waived and settled on-chain (tx 0xa2b8c0fe...). The dated proof is in the proof section.
Fastest start: the x402 Kit (one command)
Don't want to copy snippets? The whole integration on this page also ships as a scaffolder:
npm create @scriptmasterlabs/x402 my-api
It builds a paid MCP server, a paywall in front of an API you already run, or a paid file store — Express, Hono, Next.js, Cloudflare Workers or FastAPI — pre-set to settle through OMNIGATE on exactly the terms above: 0.005 USDC facilitator fee as an optional leg, waived inside the daily budget for standard payments. Free, MIT. It also runs straight from source: npx gitlab:script-master-labs-llc-group/x402-kit my-api or npx github:Timwal78/x402-kit my-api.
npm: @scriptmasterlabs/create-x402 · Step-by-step tutorial (Dev.to) · GitLab repo · GitHub copy
What you get
1 · Settlement on Base and Arc, to your own wallet. Two networks, one facilitator endpoint, the standard x402 v2 verify/settle flow. Your server never holds a private key for settlement and never talks to a chain directly.
2 · An automatic discovery listing. Each snippet's 402 challenge carries the bazaar discovery declaration. The first time a payment for your resource settles through OMNIGATE, the resource appears in OMNIGATE's /discovery/resources index — 129 resources at the 2026-11-04 read — because that index is the facilitator's own settlement record. No submission form, no review queue, no separate listing fee.
3 · Federation into the public aggregation. OMNIGATE's index is one of the sources read by Script Master Labs' /x402-directory aggregation — 16,963 resources across all of its sources at the 2026-11-03 read — and the indexes are re-probed daily on the public /x402-index-health page, so a listing that rots gets caught in public, including ours.
Already settling somewhere else? Switching is one line
If your API already sells through another facilitator, you do not rebuild anything to move. Your endpoints stay where they are. Your prices stay what they are. Your payTo stays your wallet. The 402 challenge your routes serve and the payment payloads your buyers send keep the same x402 v2 exact shape — the middleware forwards each payload to the facilitator for /verify and /settle, exactly as yours does today. In the snippets below, the facilitator is a single address at the top of the file:
const FACILITATOR = "https://mcp-x402.onrender.com"; // OMNIGATE
The facilitator URL is the server-side integration point, but compatibility still depends on the payment network, asset and client. On Base and Arc, https://mcp-x402.onrender.com accepts standard x402 exact payments without an added fee leg within its UTC waiver budget (500 across all payTos, 100 per payTo). The seller middleware forwards the signed payment payload; it does not construct or attach an optional 0.005 USDC fee authorization. Fee-aware payers can separately authorize one when needed, including after waiver exhaustion. Always check /supported and the fresh 402 challenge.
What the switch buys you. Self-service USDC on Base and Arc, merchant-wallet settlement, and facilitator discovery listing upon a successful eligible settlement. Standard client payments are fee-waived within the published daily budget; only a separately signed and valid optional 0.005 USDC fee leg is collected. No subscription is required. Script Master Labs also operates the separate partner-keyed 402Proof facilitator for Solana, XRPL and Xahau, with distinct rail-specific terms.
How the flow works
- Challenge. A buyer calls your route with no payment header. Your server answers HTTP 402 with the challenge — your price, your wallet, the discovery declaration — in the JSON body and base64-encoded in the
PAYMENT-REQUIREDheader. - Signature. A standard x402 buyer signs the merchant amount and retries with
PAYMENT-SIGNATURE. The seller middleware forwards the payload. A separate 0.005 USDC facilitator fee authorization is optional and must be explicitly chosen and signed by a fee-aware buyer; it is not automatically attached by these snippets. Without that fee leg, the transaction settles fee-waived while the published UTC budget permits it. - Verify. Your server forwards the payload to OMNIGATE's
POST /verify— free and read-only. An invalid payment is refused here; a fee-less standard payment verifies (fee waived) inside the daily waiver budget and is refused only past it. A refusal broadcasts nothing and consumes no authorization. - Settle. Your server calls
POST /settle. OMNIGATE broadcasts the authorization(s): your price lands in your payTo, and when the payment carries the fee leg, the 0.005 USDC fee lands in the fee wallet after your leg. - Serve + get indexed. Your server returns the resource with a
PAYMENT-RESPONSEheader carrying the settlement result — and your resource is now a row in the discovery index.
Standard payment versus the optional fee total
The ordinary x402 challenge declares the merchant amount. These optional-fee examples also publish extensions.omnigateFee metadata. That metadata informs a compatible buyer about the possible 0.005 USDC additional fee but does not automatically attach a second authorization. The field buyerTotalIfFeeAttachedAtomic is a conditional illustration, not the standard fee-waived total. Before signing, compare the actual authorizations with the fresh quoted terms, the buyer spend policy and the current waiver state.
"omnigateFee": {
"facilitator": "https://mcp-x402.onrender.com",
"feeAmountAtomic": "5000",
"feeAsset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"feePayTo": "0x5BBd32e0478e49A7540EF2D760E0B0F9AA6328b2",
"feeUsdc": "0.005",
"model": "optional 0.005 USDC fee leg, not auto-attached by seller middleware; standard payments settle fee-waived inside daily budget",
"buyerTotalIfFeeAttachedAtomic": "25000"
}
Worked example: the seller amount is 0.02 USDC (20,000 atomic). An ordinary standard-client payment with no fee leg pays 0.02 USDC while the waiver budget remains. If a buyer explicitly opts in to the optional 0.005 USDC facilitator fee (5,000 atomic), its total becomes 0.025 USDC (25,000 atomic). The snippets show that conditional total; they do not produce an additional signed fee authorization.
The kit
Three snippets, one per stack, all doing the same five steps. The only values you change are PAY_TO (your wallet) and PRICE (your price in USDC atomic units — 6 decimals, so $0.02 is 20000). Each snippet ships with Base wired; Arc is a second accepts entry away (network eip155:5042, asset 0x3600000000000000000000000000000000000000 — USDC on Arc, per /supported).
Express (Node 18+)
// ─── x402 starter kit: Express ─────────────────────────────────────────────
// One paid route, settled through OMNIGATE (Script Master Labs' facilitator).
// Requires: npm i express (Node 18+ for global fetch)
// Verified 2026-11-04 against OMNIGATE's live /supported, a live 402
// challenge from a production ScriptMasterLabs route, and live /verify + /settle calls.
import express from "express";
const FACILITATOR = "https://mcp-x402.onrender.com"; // OMNIGATE
const PAY_TO = "0xYourWalletAddress"; // ← your wallet: settlement lands here
const PRICE = "20000"; // $0.02 — USDC atomic units (6 decimals)
const USDC_BASE = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
// The payment requirements your route advertises in its 402 challenge.
// Shape copied from a live ScriptMasterLabs production challenge (2026-11-04).
const REQUIREMENTS = {
scheme: "exact",
network: "eip155:8453", // Base (OMNIGATE also settles Arc, eip155:5042)
amount: PRICE,
asset: USDC_BASE,
payTo: PAY_TO,
maxTimeoutSeconds: 60,
extra: { name: "USD Coin", version: "2" }, // EIP-712 domain of Base USDC
};
function challenge(url, description, example) {
return {
x402Version: 2,
error: "payment_required",
resource: { url, description, mimeType: "application/json" },
accepts: [REQUIREMENTS],
extensions: {
bazaar: { // discovery declaration — this is
discoverable: true, // what gets you indexed on settle
info: {
input: { type: "http", method: "GET" },
output: { type: "json", example },
},
},
omnigateFee: { // OMNIGATE facilitator fee, disclosed
facilitator: FACILITATOR, // in the challenge itself so a buyer's
feeAmountAtomic: "5000", // presign check sees the FULL total
feeAsset: USDC_BASE, // before signing: price + fee.
feePayTo: "0x5BBd32e0478e49A7540EF2D760E0B0F9AA6328b2",
feeUsdc: "0.005",
model: "optional 0.005 USDC fee leg, not auto-attached by seller middleware; standard payments settle fee-waived inside daily budget",
buyerTotalIfFeeAttachedAtomic: (BigInt(PRICE) + 5000n).toString(), // $0.025 at the default $0.02 price
note: "The seller middleware never auto-attaches a fee leg. A payer may explicitly authorize and attach optional paymentPayload.fee; standard payments remain fee-waived within the daily budget.",
},
},
};
}
async function facilitator(path, paymentPayload) {
const r = await fetch(FACILITATOR + path, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
x402Version: 2,
paymentPayload,
paymentRequirements: REQUIREMENTS,
}),
});
return r.json();
}
// OMNIGATE currently waives the fee for ordinary x402 payments with no
// fee leg, within UTC daily budgets (500 across all payTos, 100 per payTo).
// This seller middleware does NOT sign or attach a facilitator fee leg;
// it merely forwards a payment payload that the buyer explicitly signs.
// The optional omnigateFee metadata below describes a fee-carrying option,
// NOT a required or automatically collected payment. If the waiver budget
// is exhausted, the facilitator refuses fee-less payments until reset.
export function requirePayment(description, example) {
return async (req, res, next) => {
const url = `${req.protocol}://${req.get("host")}${req.originalUrl}`;
const body = challenge(url, description, example);
const header = req.get("PAYMENT-SIGNATURE"); // x402 v2 payment header
if (!header) {
return res
.status(402)
.set("PAYMENT-REQUIRED", Buffer.from(JSON.stringify(body)).toString("base64"))
.json(body);
}
let paymentPayload;
try {
paymentPayload = JSON.parse(Buffer.from(header, "base64").toString("utf8"));
} catch {
return res.status(402).json(body);
}
const verify = await facilitator("/verify", paymentPayload);
if (!verify.isValid) {
return res.status(402).json({ ...body, error: verify.invalidReason || "invalid_payment" });
}
const settle = await facilitator("/settle", paymentPayload);
if (!settle.success) {
return res.status(402).json({ ...body, error: settle.errorReason || "settlement_failed" });
}
res.set("PAYMENT-RESPONSE", Buffer.from(JSON.stringify(settle)).toString("base64"));
next();
};
}
const app = express();
app.get(
"/report",
requirePayment("One full report", { ok: true }),
(req, res) => res.json({ ok: true, report: "your paid payload here" })
);
app.listen(3000, () => console.log("paid API on :3000 — try: curl -i localhost:3000/report"));
FastAPI (Python)
# ─── x402 starter kit: FastAPI ─────────────────────────────────────────────
# One paid route, settled through OMNIGATE (Script Master Labs' facilitator).
# Requires: pip install fastapi httpx uvicorn
# Verified 2026-11-04 against OMNIGATE's live /supported, a live 402
# challenge from a production ScriptMasterLabs route, and live /verify + /settle calls.
import base64
import json
import httpx
from fastapi import FastAPI, Request
from fastapi.responses import JSONResponse
FACILITATOR = "https://mcp-x402.onrender.com" # OMNIGATE
PAY_TO = "0xYourWalletAddress" # <- your wallet: settlement lands here
PRICE = "20000" # $0.02 — USDC atomic units (6 decimals)
USDC_BASE = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
# The payment requirements your route advertises in its 402 challenge.
# Shape copied from a live ScriptMasterLabs production challenge (2026-11-04).
REQUIREMENTS = {
"scheme": "exact",
"network": "eip155:8453", # Base (OMNIGATE also settles Arc, eip155:5042)
"amount": PRICE,
"asset": USDC_BASE,
"payTo": PAY_TO,
"maxTimeoutSeconds": 60,
"extra": {"name": "USD Coin", "version": "2"}, # EIP-712 domain of Base USDC
}
def challenge(url: str, description: str, example: dict) -> dict:
return {
"x402Version": 2,
"error": "payment_required",
"resource": {"url": url, "description": description,
"mimeType": "application/json"},
"accepts": [REQUIREMENTS],
"extensions": {
"bazaar": { # discovery declaration — what gets you indexed on settle
"discoverable": True,
"info": {
"input": {"type": "http", "method": "GET"},
"output": {"type": "json", "example": example},
},
},
"omnigateFee": { # OMNIGATE facilitator fee, disclosed in the
"facilitator": FACILITATOR, # challenge itself so a buyer's
"feeAmountAtomic": "5000", # presign check sees the FULL
"feeAsset": USDC_BASE, # total before signing.
"feePayTo": "0x5BBd32e0478e49A7540EF2D760E0B0F9AA6328b2",
"feeUsdc": "0.005",
"model": "optional 0.005 USDC fee leg, not auto-attached by seller middleware; standard payments settle fee-waived inside daily budget",
"buyerTotalIfFeeAttachedAtomic": str(int(PRICE) + 5000), # $0.025 at the default $0.02 price
"note": "The seller middleware never auto-attaches a fee leg. A payer may explicitly authorize and attach optional paymentPayload.fee; standard payments remain fee-waived within the daily budget.",
}
},
}
def b64(obj: dict) -> str:
return base64.b64encode(json.dumps(obj).encode()).decode()
async def facilitator(path: str, payment_payload: dict) -> dict:
body = {"x402Version": 2, "paymentPayload": payment_payload,
"paymentRequirements": REQUIREMENTS}
async with httpx.AsyncClient(timeout=30) as client:
r = await client.post(FACILITATOR + path, json=body)
return r.json()
# OMNIGATE currently waives facilitator fees on standard payments with
# no fee leg, within UTC daily budgets (500 across payTos, 100/payTo).
# The seller middleware forwards signed payloads; it does NOT attach
# or authorize the optional fee leg. An SML-aware payer must opt in.
# A fee-less payment is refused after the waiver budget is exhausted.
async def require_payment(request: Request, description: str, example: dict):
"""Returns (settle_result, None) when paid, or (None, 402 response)."""
body = challenge(str(request.url), description, example)
header = request.headers.get("PAYMENT-SIGNATURE") # x402 v2 payment header
if not header:
return None, JSONResponse(body, status_code=402,
headers={"PAYMENT-REQUIRED": b64(body)})
try:
payment_payload = json.loads(base64.b64decode(header))
except Exception:
return None, JSONResponse(body, status_code=402)
verify = await facilitator("/verify", payment_payload)
if not verify.get("isValid"):
body["error"] = verify.get("invalidReason") or "invalid_payment"
return None, JSONResponse(body, status_code=402)
settle = await facilitator("/settle", payment_payload)
if not settle.get("success"):
body["error"] = settle.get("errorReason") or "settlement_failed"
return None, JSONResponse(body, status_code=402)
return settle, None
app = FastAPI()
@app.get("/report")
async def report(request: Request):
settle, err = await require_payment(request, "One full report", {"ok": True})
if err:
return err
return JSONResponse(
{"ok": True, "report": "your paid payload here"},
headers={"PAYMENT-RESPONSE": b64(settle)},
)
# run: uvicorn main:app --port 3000 then: curl -i localhost:3000/report
Hono (TypeScript, Node)
// ─── x402 starter kit: Hono ────────────────────────────────────────────────
// One paid route, settled through OMNIGATE (Script Master Labs' facilitator).
// Requires: npm i hono @hono/node-server (Node 18+ for global fetch)
// Verified 2026-11-04 against OMNIGATE's live /supported, a live 402
// challenge from a production ScriptMasterLabs route, and live /verify + /settle calls.
import { Hono } from "hono";
import { serve } from "@hono/node-server";
import type { Context, Next } from "hono";
const FACILITATOR = "https://mcp-x402.onrender.com"; // OMNIGATE
const PAY_TO = "0xYourWalletAddress"; // ← your wallet: settlement lands here
const PRICE = "20000"; // $0.02 — USDC atomic units (6 decimals)
const USDC_BASE = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
// The payment requirements your route advertises in its 402 challenge.
// Shape copied from a live ScriptMasterLabs production challenge (2026-11-04).
const REQUIREMENTS = {
scheme: "exact",
network: "eip155:8453", // Base (OMNIGATE also settles Arc, eip155:5042)
amount: PRICE,
asset: USDC_BASE,
payTo: PAY_TO,
maxTimeoutSeconds: 60,
extra: { name: "USD Coin", version: "2" }, // EIP-712 domain of Base USDC
};
const b64encode = (obj: unknown) =>
Buffer.from(JSON.stringify(obj)).toString("base64");
const b64decode = (s: string) =>
JSON.parse(Buffer.from(s, "base64").toString("utf8"));
function challenge(url: string, description: string, example: unknown) {
return {
x402Version: 2,
error: "payment_required",
resource: { url, description, mimeType: "application/json" },
accepts: [REQUIREMENTS],
extensions: {
bazaar: { // discovery declaration — this is
discoverable: true, // what gets you indexed on settle
info: {
input: { type: "http", method: "GET" },
output: { type: "json", example },
},
},
omnigateFee: { // OMNIGATE facilitator fee, disclosed
facilitator: FACILITATOR, // in the challenge itself so a buyer's
feeAmountAtomic: "5000", // presign check sees the FULL total
feeAsset: USDC_BASE, // before signing: price + fee.
feePayTo: "0x5BBd32e0478e49A7540EF2D760E0B0F9AA6328b2",
feeUsdc: "0.005",
model: "optional 0.005 USDC fee leg, not auto-attached by seller middleware; standard payments settle fee-waived inside daily budget",
buyerTotalIfFeeAttachedAtomic: (BigInt(PRICE) + 5000n).toString(), // $0.025 at the default $0.02 price
note: "The seller middleware never auto-attaches a fee leg. A payer may explicitly authorize and attach optional paymentPayload.fee; standard payments remain fee-waived within the daily budget.",
},
},
};
}
async function facilitator(path: string, paymentPayload: unknown) {
const r = await fetch(FACILITATOR + path, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
x402Version: 2,
paymentPayload,
paymentRequirements: REQUIREMENTS,
}),
});
return r.json();
}
// OMNIGATE currently waives the facilitator fee on standard payments
// without a fee leg while the UTC daily budget remains available.
// This seller middleware forwards buyer-signed payloads as received;
// it does NOT attach or authorize the optional 0.005 USDC fee leg.
// After waiver budget exhaustion, fee-less settlement is refused.
export function requirePayment(description: string, example: unknown) {
return async (c: Context, next: Next) => {
const body = challenge(c.req.url, description, example);
const header = c.req.header("PAYMENT-SIGNATURE"); // x402 v2 payment header
if (!header) {
return c.json(body, 402, { "PAYMENT-REQUIRED": b64encode(body) });
}
let paymentPayload: unknown;
try {
paymentPayload = b64decode(header);
} catch {
return c.json(body, 402);
}
const verify = await facilitator("/verify", paymentPayload);
if (!verify.isValid) {
return c.json({ ...body, error: verify.invalidReason ?? "invalid_payment" }, 402);
}
const settle = await facilitator("/settle", paymentPayload);
if (!settle.success) {
return c.json({ ...body, error: settle.errorReason ?? "settlement_failed" }, 402);
}
c.header("PAYMENT-RESPONSE", b64encode(settle));
await next();
};
}
const app = new Hono();
app.get("/report", requirePayment("One full report", { ok: true }), (c) =>
c.json({ ok: true, report: "your paid payload here" })
);
serve({ fetch: app.fetch, port: 3000 });
Test it before you trust it
Call your route unpaid — curl -i localhost:3000/report — and expect HTTP 402 with the challenge in the body and the PAYMENT-REQUIRED header, the same shape a production ScriptMasterLabs route served under probe on 2026-11-04. After your first real settlement, find your resource URL in OMNIGATE's discovery index. If a buyer's client sends no fee leg, the settlement still runs — the fee is waived inside the daily waiver budget (500/day across all payTos, 100/day per payTo, UTC). /verify answers facilitator_fee_required to a fee-less payment only past that budget, and your route re-issues the 402 — the snippets already handle that path.
The proof, dated
| Check | Result | When |
|---|---|---|
OMNIGATE /supported — kinds, fee, allowance | x402 v2 exact on Base + Arc; fee 0.005 USDC flat (5000 atomic), mode optional; waiver budget 500/day all payTos, 100/day per payTo; free_allowance_per_day: 0; settlement_proven: true | 2026-11-05, live read |
| Unpaid probe of a production ScriptMasterLabs paid route | HTTP 402; challenge keys x402Version / error / resource / accepts / extensions; the snippets emit this exact shape | 2026-11-04, live probe |
| Starter-kit test runs (all three snippets, local servers) | Unpaid → 402 with matching PAYMENT-REQUIRED header; payment attempt with no fee leg → live /verify refusal facilitator_fee_required, surfaced as a fresh 402; nothing broadcast | 2026-11-04 |
| Stock-client retest after the fee leg became optional | Unmodified @x402/fetch + @x402/evm buyer, no fee leg → /verify answered valid with fee.status: "waived"; settled end-to-end through the canonical seller middleware; the on-chain tx (0xa2b8c0fe...) carried the $0.01 merchant leg only — no fee transfer | 2026-11-05 |
| OMNIGATE discovery index size | 129 resources | 2026-11-04, live read |
| Failure-mode audit of ScriptMasterLabs' listed resources (all public indexes, deduplicated) | 224 of 241 (93%) answered a clean, parseable 402 | 2026-11-03, full audit |
Honest limits. OMNIGATE's published settlement proof is SELF-PROOF — the operator's own wallet settling to the operator's own recipient (the Arc canary is transaction 0xa9a2d63d92834026a3c9cbc13df18e67a16a608810ca30970bcc1e6993adaff2, published in /supported). SELF-PROOF proves the rails settle end-to-end and charge exactly the published fee. It does not prove outside adoption, and no external seller has settled through OMNIGATE yet — the 129 resources in its index today are Script Master Labs' own fleet. This kit is the open door; the index will show the first outside resource the day one settles. Presence in an index is also not demand: the metric that matters is unique paying wallets over time, which no index publishes and which Script Master Labs does not manufacture with self-payments.
Copy the kit Integration questions — tim@scriptmasterlabs.com
Selling on XRPL, Xahau or Solana?
Those rails settle through 402Proof, Script Master Labs' second facilitator, and that door is partner-keyed by design: the XRPL fee accrues per settlement instead of being collected inside the settlement, so keys are issued to known sellers. The full fee table for every rail is on /settle-through-sml. To request a partner key, email tim@scriptmasterlabs.com with your service's base URL, the rail (XRPL RLUSD, XRPL USDC, Xahau XAH, or Solana), and your receiving wallet address. Keys are issued by hand — expect a reply within one business day.
Frequently asked questions
What does it cost to settle through OMNIGATE?
OMNIGATE currently waives the facilitator fee on a standard x402 exact payment without a fee leg, up to a UTC-day budget of 100 settlements per receiving wallet and 500 across all wallets. These are shared ceilings, not guaranteed allowances for every seller. Once either budget is exhausted, a fee-less payment is refused with facilitator_fee_required until the next UTC day. A buyer can choose and authorize an optional additional 0.005 USDC fee leg; only an actually attached, valid fee leg is collected. Neither the free npm kit nor the seller middleware automatically signs or adds that leg. Seller proceeds go in full to the merchant receiving wallet. See current https://mcp-x402.onrender.com/supported.
How does my buyer know the total before they sign?
The standard x402 challenge quotes the merchant amount and destination; with an ordinary client, that merchant amount is the charged amount while the fee is waived. The example challenge also describes an optional 0.005 USDC fee leg and a buyerTotalIfFeeAttachedAtomic value, which applies only when the buyer deliberately signs an additional fee authorization. At the example merchant price of 0.02 USDC, the fee-waived standard payment costs 0.02 USDC, while an explicitly opted-in fee-carrying payment costs 0.025 USDC. The seller middleware does not attach a fee authorization.
I already settle through another facilitator. What does switching to OMNIGATE involve?
On Base or Arc, point the server-side x402 v2 exact facilitator URL to https://mcp-x402.onrender.com, check the accepted network and asset, and validate your current 402 challenge against /supported. A stock x402 payer works without a second fee authorization until the daily waiver budget is exhausted; integrations requiring settlement beyond the budget need a valid extra 0.005 USDC fee authorization. The seller middleware forwards, rather than creates, any optional buyer fee leg. Existing clients and schemes may need additional compatibility work; do not assume every migration is literally one line.
Do I need an account, an API key or a signup to use OMNIGATE?
No. On Base and Arc the door is open self-serve: your resource server answers the 402 challenge and calls OMNIGATE's POST /verify and POST /settle at https://mcp-x402.onrender.com. The starter kit on this page is the whole integration. (The XRPL, Xahau and Solana rails run through ScriptMasterLabs' second facilitator, 402Proof, and are partner-keyed — see /settle-through-sml.)
Does OMNIGATE ever hold my money?
No. The standard EIP-3009 merchant authorization settles directly into the seller payTo wallet. A buyer may optionally sign a separate 0.005 USDC fee authorization, and OMNIGATE only settles that leg if the signed payload contains it. The seller middleware never signs a fee leg and OMNIGATE does not take custody of the merchant proceeds.
How does my API get listed in the discovery index?
Settle. Each snippet's 402 challenge carries the bazaar discovery declaration; when a payment for your resource settles through OMNIGATE, the resource appears in OMNIGATE's /discovery/resources index automatically — the index is the facilitator's settlement record. There is no submission form and no separate listing fee. OMNIGATE's index also feeds Script Master Labs' public /x402-directory aggregation. At the 2026-11-04 read the OMNIGATE index listed 129 resources and the /x402-directory aggregation read 16,963 resources across all of its sources at its 2026-11-03 read.
What does my buyer need to pay me?
An x402 v2 client that signs EIP-3009 transfer authorizations — a stock client works as-is; no ScriptMasterLabs-specific code is required. The 0.005 USDC fee leg (a second authorization at paymentPayload.fee, shape published at /supported) is optional: a payment carrying it pays the fee, and a standard payment without one settles with the fee waived inside the daily waiver budget (500 settlements a day across all payTos, 100 a day per payTo, UTC). Only past that budget does /verify answer facilitator_fee_required to a fee-less payment, and only until the next UTC day.
Can I settle on Arc as well as Base?
Yes — same facilitator, same fee terms: 0.005 USDC, an optional leg, and the same daily waiver budget. Add a second entry to the accepts array with network eip155:5042 and asset 0x3600000000000000000000000000000000000000 (USDC on Arc), per OMNIGATE's /supported. The snippets ship with Base wired and Arc marked in the comments.
I sell on XRPL, Xahau or Solana instead. Is there a kit for me?
Those rails settle through 402Proof, Script Master Labs' second facilitator, and onboarding there is partner-keyed by design. The full fee table for every rail and the request-a-partner-key block are on /settle-through-sml: email tim@scriptmasterlabs.com with your service's base URL, the rail, and your receiving wallet address; keys are issued by hand with a reply inside one business day.
