frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: X402 – an open standard for internet native payments

https://www.x402.org/
16•__erik•1y ago
Hi HN – excited to announce x402, initially developed by Coinbase (YC 12)

x402 lets any HTTP API charge per request without issuing API keys or storing credit cards. Buyers (humans or AI agents) keep funds in their own wallet and dynamically discover compatible endpoints, call them as usual, and automatically pay a microtransaction in USDC or other tokens to settle.

90 second demo: https://www.youtube.com/watch?v=PV-L2AfLhJg

Problem: Every time we want to use a new API we have to: find the service online create a developer account, copy a secret key into env vars, pre-fund or hand over a credit card

This flow blocks agents even more. They can’t solve CAPTCHAs or enter credit cards. It also hurts sellers: fraud, chargebacks, onboarding friction, and marketing to humans are huge pain points.

Why buyers care Zero setup – Hit a new endpoint immediately. Runtime discovery – Because every x402 service exists in a common registry, an agent can search, compare, and invoke in one loop. Self-assembling agents become practical. Easily create proxy servers – Want an endpoint that isn’t supported? You can use our proxy server template to spin up an x402-compatible instance yourself using traditional API keys, and monetize it for others wanting access.

Why sellers care Reach incremental demand – Long-tail bots, side projects, one-off scripts, all of which too small for an account/signup flow, can now pay you. Micropayments without fraud – All payments settle onchain, nothing for stolen credit cards or chargebacks to reverse. Embedded distribution – instead of marketing to humans, create a compelling service meeting demand for agents and watch the requests roll in.

How we got here Last year we launched AgentKit (wallets for AI agents). Tens of thousands of agents now hold onchain balances, but they can’t pay for most web services. We revived the long-unused HTTP 402 (“Payment Required”) status code and wrote a spec to make it real. Marc Andresseen calls the lack of native value transfer “the original sin of the internet,” and we see x402 as the absolution of this sin.

How it works: x402 specifies a standard response body to accompany a 402 status code. This response body contains machine understandable instructions for how to pay. Payments are signature based an included as an `X-PAYMENT` header in a subsequent request to the same API endpoint. The accepting server can verify and settle payment themselves, or delegate the onchain settlement to what we call a facilitator. This means you don't have to touch crypto as a developer, you can just integrate a middleware and start receiving stablecoin payments in as little as 1 line of code. Because x402 natively traverses your existing client / server requests, it can be implemented in any language, and doesn't require webhooks, or any other complex integration. Its literally this simple: `paymentMiddleware("0xYourAddress", {"/your-endpoint": "$0.01"})`

Ask HN API providers – does the one-line integration fit your stack? What’s missing? Agent / infra builders – if a service isn’t available is the proxy server template sufficient? File issues, PRs welcome Everyone – poke holes in the trust and fee model; we’d love to iterate with your feedback

Curious to learn more? Check out our documentation and repo for more information, and please don’t hesitate to reach out to get onboard.

https://github.com/coinbase/x402 https://x402.org https://x402.gitbook.io/x402/getting-started/quickstart-for-...

Comments

danxkim•1y ago
Time to kill the API key.
pestatije•1y ago
standard X.402 (ISO/IEC 10021-2) does already exist
xinbenlv•1y ago
Congrats Erik. We are launching something that support x402 soon. DM'ed you on LinkedIn
ruiseal•1y ago
So it's an "open standard" and you can use any chain that meets Coinbase's "acceptance criteria". So under this guise, their whole goal is to make themselves centralizing force.
__erik•1y ago
we will happy accept PRs the add support for any chains that can perform the payment flows in a safe, non-custodial way for the client, resource server and faciliator. Currently x402 works with any EVM chain, and we're working with several chains on integrating.
ricochet11•1y ago
this looks great, gonna look into writing something to use with fastapi

Big Tech Has Suddenly Flipped on the AI Jobs Wipeout Scenario

https://www.wsj.com/tech/ai/ai-workers-tech-ceos-job-losses-afc71e15
1•Brajeshwar•1m ago•0 comments

Accusation, Trust, and the Future of Vulnerability Disclosure

https://www.lawfaremedia.org/article/accusation--trust--and-the-future-of-vulnerability-disclosure
1•ano-ther•3m ago•0 comments

Apple Predicted Siri AI in 1987

https://www.youtube.com/watch?v=ForO33IynkA
1•gdubs•5m ago•0 comments

Predicting Build Cache Time Savings with Quick Connect

https://bitrise.io/blog/post/predicting-build-cache-time-savings-with-quick-connect
1•viktorbenei•5m ago•0 comments

Has China Obtained The World’s Most Important Machine?

https://www.economist.com/china/2026/07/05/has-china-obtained-the-worlds-most-important-machine
2•karakoram•6m ago•1 comments

HN: Project Aetheris – Open-source fluid dynamics to replace chemical cooling

https://github.com/PureWaterArtist/VortexArt88-
2•VortexArt88•6m ago•0 comments

Don't give Fable all the power

https://starts.live/blog/dont-give-fable-all-the-power
2•sgraphics8•6m ago•0 comments

Flock Defense "No Expectation of Privacy in Public" Is Wrong

https://ipvm.com/reports/flock-no-privacy-public
2•jhonovich•8m ago•0 comments

Fin: A Jellyfin and Subsonic client for the terminal

https://tangled.org/tsiry-sandratraina.com/fin
2•birdculture•8m ago•0 comments

Marc Andreessen Says One Job Is Mostly Safe from AI: Venture Capitalist

https://gizmodo.com/marc-andreessen-says-one-job-is-mostly-safe-from-ai-venture-capitalist-200059...
2•davidw•8m ago•0 comments

Record-Breaking Ocean Drilling Reveals Why Japan's 2011 Tsunami Was So Deadly

https://www.sciencedaily.com/releases/2026/06/260625060220.htm
2•karakoram•9m ago•0 comments

Canadian spy agency hacked drug traffickers, extremists and a ransomware gang

https://techcrunch.com/2026/07/06/canadian-spy-agency-says-it-hacked-drug-traffickers-extremists-...
2•pier25•10m ago•0 comments

AI surveillance is being supercharged – and it will chill social progress

https://www.theguardian.com/commentisfree/2026/jul/06/ai-surveillance-policy
2•diogenes_atx•10m ago•0 comments

AI that detects conflicts 72 hours early(validated against Ukraine2022)

https://github.com/eshanth23/sentinel
2•eshanth22•10m ago•0 comments

The Fun Shortage Is Real, and It's Making America Miserable

https://www.bloomberg.com/news/features/2026-07-02/why-hotels-theme-parks-and-summer-camps-are-ha...
2•pavel_lishin•12m ago•0 comments

How to Make an Agent Know It Screwed Up

https://justsomebody.dev/blog/how-to-make-an-agent-know-it-screw-up/
2•rafal_opilowski•12m ago•0 comments

Show HN:I Made a Mac Native Excalidraw (Open Sourced)

https://github.com/zpphxd/whitespace
2•z_phxd•13m ago•0 comments

Chrome Extensions, 22M Users, One Undisclosed Offense Each

https://www.hermandaniel.com/blog/20260705-40-chrome-extensions/
2•kekqqq•13m ago•0 comments

Supporting wildland firefighters and their families when tragedy strikes

https://wffoundation.org/
2•mooreds•14m ago•0 comments

The Download: South Korea's hottest bachelors, and advancing eye transplants

https://www.technologyreview.com/2026/07/06/1140172/the-download-south-korea-ai-chipworkers-eye-t...
2•joozio•15m ago•0 comments

Essential Items for Your Hurricane Supply Kit and Generator Safety

https://www.nesthealth.com/hurricane-supply-kit
2•mooreds•15m ago•0 comments

Microsoft once tried to use MS SQL Server in windows file system

https://deepsystemstuff.com/how-microsoft-once-tried-to-use-ms-sql-server-in-windows-file-system/
3•theanonymousone•16m ago•2 comments

Protecting your Supabase projects from NPM supply chain attacks

https://supabase.com/blog/protecting-your-supabase-projects-from-npm-supply-chain-attacks
2•thinkingemote•16m ago•1 comments

A whole suite of privacy tools that run in the browser

https://metamarshal.com/apps
2•milindsoorya•16m ago•0 comments

The Supreme Court Just Lit a Fuse Under Flock's License Plate Camera Empire

https://www.yahoo.com/news/politics/articles/supreme-court-just-lit-fuse-130900307.html
4•bilsbie•19m ago•0 comments

US judge rejects Elon Musk bid set aside Twitter fraud verdict

https://www.reuters.com/world/us-judge-rejects-elon-musk-bid-set-aside-twitter-fraud-verdict-2026...
5•enlightpixel•20m ago•0 comments

Microsoft, AWS and Anthropic are spending billions – and not on better models

https://thenewstack.io/microsoft-frontier-forward-deployed/
3•Brajeshwar•21m ago•0 comments

Microsoft Lays Off Nearly 5K Employees Across Xbox, Commercial Sales

https://techcrunch.com/2026/07/06/microsoft-lays-off-nearly-5000-employees-across-xbox-commercial...
4•karakoram•21m ago•1 comments

Extract Map Data to SVG

https://polygrid.dev/map2svg/
2•agilek•21m ago•1 comments

Linux 7.3 Expected to "Flatten the Pick" for Better Scheduling

https://www.phoronix.com/news/Linux-7.3-Flattens-The-Pick
2•t-3•22m ago•0 comments