x402s lets anyone pay anyone with signed state updates instead of onchain transactions. It’s a universal, gas-free payment layer for APIs, agents, microservices and users of all kinds. Zero gas per request, sub-second settlement, one channel to reach every payee. Built on the x402 open standard.
No install. scp-pay generates a wallet, discovers 402 offers, opens channels, and pays — all in one page. Claim a handle like you@pogchamp.tv for free.
Run scp:wizard to configure keys and hub. Open channels, check status, pay APIs, and view receipts — all from the terminal or via autonomous agents.
Drop the x402s/skill/ folder into Claude or any agent framework. The agent auto-discovers offers, opens channels, and pays — no code changes needed.
On-chain per-request payments are impractical at scale — gas costs, confirmation latency, and throughput limits make them unviable for API micropayments. State channels fix this.
x402s is compatible with the broader x402 open standard for internet-native payments, extending it with an off-chain state channel layer for throughput and cost efficiency.
— X402S Specification v2.0.0Agent opens one channel with a hub. The hub routes payments to any connected payee. Four messages to go from 402 to 200.
Agent GETs a resource. Payee returns 402 with payment offers: network, asset, amount, route mode.
Agent sends the chosen offer to the hub. Hub calculates fee, returns a draft with totalDebit ready to sign.
Agent signs the next channel state via EIP-712. Hub validates nonce monotonicity, balance invariant, and fee bounds. Returns a ticket.
Agent retries with PAYMENT-SIGNATURE header. Payee verifies ticket, returns 200 with receipt.
Deterministic CREATE2 deployment. Same address, same interface, every supported EVM chain.
Type a handle in scp-pay instead of a raw URL. The hub resolves it to a payee address and normal payment flow begins.
Registration is free. Claim yours, share it, get paid — no wallet address sharing needed.
name@pogchamp.tv in scp-pay to pay someoneGET /handle/:name → standard 402 flowPayments are signed state updates. No blocks to wait for. Pay and respond in one round-trip.
Dispute contract enforces settlement. Challenge watcher catches stale closes. Funds always recoverable via finalizeClose().
APIs return 402 with offers. Agents retry with PAYMENT-SIGNATURE header. Standard HTTP, no custom transport.
One channel to a hub unlocks every connected payee. Pay many APIs from a single funded channel.
USDC, ETH, USDT, or any ERC-20. Per-path pricing. Payees set offers, agents pick what they hold.
Skip the hub entirely. statechannel-direct-v1 opens a channel directly with the payee. No intermediary needed.
Ships a ready-made skill folder. Drop into Claude or any LLM agent for automatic 402 discovery, channel management, and payment.
Hub credit lets agents pay instantly without opening a channel first. Query balance with /v1/credit/balance.
Async settlement notifications. Payees receive POST callbacks when payments are issued, verified, or disputed.
Channel state signed with typed structured data. Domain-separated, chain-scoped, replay-protected by design.
Hubs move earned funds between channels without closing. One rebalance() call, no disruption.
MIT licensed. Zero platform fees. Run your own hub or use a public one. Fork it, extend it, ship it.
Every participant's risk is explicitly bounded. The on-chain contract serves as the arbiter of last resort.
Agent never authorizes more than totalDebit per payment. Spend caps, nonce monotonicity, and explicit fee ceilings protect the payer.
Payee trusts hub-signed tickets bounded by signature validity, ticket expiry, and hub credit policy. Direct mode gives on-chain dispute rights.
Hub is protected by valid, signed channel state updates proving the agent's debit authorization. Challenge watcher auto-disputes stale closes.
Install, configure, open a channel, and pay. The wizard handles key generation and hub configuration.
Or skip the CLI entirely — open scp-pay in your browser for a zero-install wallet.
Return HTTP 402 with offers when unpaid, verify the payment signature, serve data with a receipt. Three code paths, no SDK required.
No CLI, no extension, no seed phrase backup. Create a wallet, fund it on testnet, and make your first state-channel payment — all right here.
A fresh keypair is generated in your browser and stored in localStorage. No extensions needed.
Grab Sepolia ETH from a faucet. Open a channel to the hub with a single on-chain deposit.
Hit any 402-protected URL. The wallet parses payment options and picks the best route automatically.
EIP-712 state update signed in-browser. The hub issues a ticket — zero gas, instant settlement.
Retry with the payment ticket attached. The API verifies and serves the response. Done.
State-channel payments for APIs. Pay per request, not per block. Perfect for metered APIs.
Chat →
A browser-native SCP client. Send instant peer-to-peer payments to address handles without gas fees or awaiting block confirmations.
Open Pay →
Most users only need the agent. Build paid APIs or run hub infrastructure when ready.
Discover offers, open channels, pay APIs. Auto-mode handles everything — or use the CLI for manual control.
npm run scp:agent:pay -- <url>
Protect routes with 402, define per-path pricing via offers.json, validate tickets with built-in verification.
npm run scp:payee
Quote fees, issue tickets, track settlements, run challenge watchers. Scale with PM2 for production.
npm run scp:hub
MIT licensed. Deploy on Sepolia to test, Base or Mainnet for production. One contract, any EVM chain.