AIFeed

Show HN: PayWords – Cut HTTP 402 AI fees from 30¢ to $0.0077 per 1k calls

Original text(via HN AI)

Accept 1,000 penny payments for less than one cent.

Precision-machined brushed gold micro-wafers converging through a smoked-amethyst prism into one gold ingot
Precision-machined brushed gold micro-wafers converging through a smoked-amethyst prism into one gold ingot

The buyer locks USDC once and reveals one SHA-256 preimage per API call (~0.01 ms local check, $0 gas). The seller submits only the final hash on-chain to claim all accumulated calls in one transaction.

Exact-match Sourcify contract on Base Mainnet: 0x971BA814Df91c20DcA3aDd870C2B55d643965C50 (0% fee, non-upgradeable). Measured 1,000-call claim receipt: 0xb79a3c01…6256 ($0.0077 total gas). Client SDKs (JS/Python), newsatoshi-paywall proxy, wire spec, and commercial contract usage are MIT-licensed.

$0.50 card floor blocks 0.1¢–1¢ calls; even a batched $1 charge loses 32.9% ($0.329) to 2.9% + 30¢ fees.

Paying L2 gas and facilitator latency on every individual HTTP 402 request destroys sub-cent margins.

1 SHA-256 hash/call (~0.01 ms, $0 gas; 50M/s Rust bench) settled in 1 Base claim tx. (1 open tx per buyer-seller channel.)

1. Try It Live in 1 Click — Zero Wallet or Sign-In Required

Test the real HTTP 402 flow live against our Rust server (/api/v2/paywords/try-402) right now: Step 1 hits the endpoint unpaid and receives a real HTTP 402 Payment Required challenge; Step 2 mints a browser WebCrypto SHA-256 hash chain and unlocks HTTP 200 OK in microseconds — or benchmark 1,000 SHA-256 verifications directly on your own CPU:


        Click "Run Live HTTP 402 → PayWord → 200 OK" to execute a real unpaid 402 challenge + SHA-256 PayWord settlement proof against the live server.
      

        Click "Run 1,000-Call Local WebCrypto Check" to measure 1,000 real SHA-256 verifications directly on your CPU.
      

2. Configure Your Paywall (Onboard IN & Cash Out Anytime)

3. 10-Second Zero-Code Paywall Proxy — Monetize Any Existing API, LLM, or MCP Server

Put newsatoshi-paywall in front of any FastAPI, Express, Go, Rust, Ollama, vLLM, or Streamable HTTP MCP server with zero code changes. Verifies on-chain USDC funding, blocks replays across restarts, and prints your 1-line USDC withdrawal commands at /_paywall/claim-commands:

4. Drop-In Code Gates & AI Agent Auto-Pay (Cloudflare, MCP, Express, FastAPI, JS/Python)


        # JavaScript / TypeScript (npm directly from GitHub + full .d.ts types, zero dependencies)
npm install github:theguysaccount/newsatoshi-commons
# or single-file: curl -fsSL https://newsatoshi.org/sdk/newsatoshi-402.mjs -o newsatoshi-402.mjs

# Python 3.9+ (pip directly from GitHub, pure stdlib — FastAPI, LangChain, CrewAI, AI Agents)
pip install "git+https://github.com/theguysaccount/newsatoshi-commons.git#subdirectory=sdk/python"
      

5. Direct On-Chain Commands: Deposit IN (Open) & Withdraw OUT (Claim / Refund)

6. Live On-Chain Base Mainnet Channel Inspector


        Click "Load Live Verified claim(1000) Channel" or paste any 32-byte Base channel ID to inspect real on-chain USDC escrow & claimed steps.
      

7. Live On-Chain Base Mainnet Proofs & Standards

Ownerless, 0% fee, non-upgradeable, fee-on-transfer & reentrancy protected.

BaseScan · Sourcify Match

1,000-call batch: open(1000) → claim(1000): $0.0077.Paid API → Dividends: open(5) → 5 calls → claim(5) → injectRevenue.

x402#4494 · RFC-0030 Clearinghouse · ERC-7683 & ISO 20022 · 29 Lean 4 L2 theorems (0 sorry).

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗