Merchant receives sats
The BOLT11 invoice belongs to the configured Lightning Address. GATE never receives or forwards buyer funds.
PRIVATE BETA / AGENT FIRST
Put a fixed sat price on an endpoint. GATE creates the HTTP 402 challenge, verifies payment and signs access. The buyer pays your wallet directly.
WHAT GATE DOES
GATE is not a wallet, payment account or payout service. It resolves the merchant's Lightning Address, validates the exact invoice and releases one request-bound receipt after cryptographic proof.
The BOLT11 invoice belongs to the configured Lightning Address. GATE never receives or forwards buyer funds.
The preferred beta path is a payer preimage delivered through Payment Authentication or the direct proof endpoint.
Ed25519 receipts bind project, route, method, path, body SHA-256, amount and payment hash. Spoofed identity headers are stripped.
One GATE credit is consumed only when payment is verified and an authorization is persisted. Quotes, expiry and failed attempts cost nothing.
AGENT QUICKSTART
A private local operator command provisions the project capability and fixed route policy without a public signup endpoint or Lightning network call. Keep the API capability server-side and reuse the same idempotency key and request bytes after an uncertain response.
const gate = createGateClient({
gateBaseUrl: "https://the402machine.com",
projectId: "gate_project_…",
projectKey: process.env.GATE_PROJECT_KEY,
routeKey: "weather",
routeId: "route-uuid-from-provisioning",
receiptPublicKey,
receiptKeyId: "gate-beta"
});
const request = {
method: "POST",
path: "/v1/weather",
body: Buffer.from('{"city":"Madrid"}'),
idempotencyKey: crypto.randomUUID()
};
const challenge = await gate.authorize(request);
// After the payer or wallet supplies a preimage:
const authorized = await gate.prove({
intentId: JSON.parse(challenge.body).intentId,
preimage,
request
});
// LUD-21 projects can use gate.poll({ intentId, request }) instead.
// The SDK verifies the signed receipt locally before returning success.
This is not Coinbase x402 compatibility. GATE implements HTTP 402, Lightning Payment Authentication and cryptographic payer proof. x402 has a different contract.
PLANNED PREPAID AUTHORIZATIONS
Every project receives 25 successful authorizations per UTC calendar month. The beta pack ladder is fixed in the domain model, while pack purchasing stays closed until its own verified Lightning settlement flow is implemented. Grants are service credits, not sats or wallet balances, and last 402 days.
Resets each UTC month. Used before prepaid credits.
0 SATSReference pack for small agents and prototypes.
42 SATSProgressive discount for sustained machine traffic.
402 SATSLargest beta pack and best unit price.
4,002 SATSA credit is consumed only on AUTHORIZED. Creating an invoice, polling, an expired payment or an invalid proof never consumes one.
HUMAN CHECKOUT
WebLN can return payer proof. A compatible browser wallet can pay and immediately submit its preimage.
External wallets vary. Automatic QR unlock is available only when the recipient provider returns a verifiable cryptographic result.
No “I paid” trust button. GATE does not unlock a resource from a claim, screenshot or wallet success page.
Agents remain the primary path. Human support is additive and does not weaken request binding or settlement checks.
PRIVATE BETA
GATE is disabled by default in production while beta provisioning and provider compatibility are validated.