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

Show HN: How do you guys keep your journey diaries?

https://journeydiaries.vercel.app/
1•dutay05•7m ago•0 comments

Drawbridge – Design Editor for Claude Code and Cursor

https://github.com/breschio/drawbridge
1•javatuts•8m ago•0 comments

Spotify deletes 500K Malcolm Todd streams for suspected prediction manipulation

https://mashable.com/tech/spotify-deletes-malcolm-todd-streams-manipulation-prediction-markets
1•gnabgib•9m ago•0 comments

President pardons 9 for Clean Air violations for 'fixing their car'

https://www.msn.com/en-us/news/crime/trump-pardons-9-for-clean-air-violations-for-fixing-their-ca...
2•OutOfHere•11m ago•0 comments

Writing Blogs or News Articles? Free and Fast Word Counter -Accurate and Private

https://fastwordcount.com/
1•rajkverma123•13m ago•0 comments

I Accidentally Started a Small Business Three Weeks Ago

https://extelligence.substack.com/p/i-accidentally-started-a-small-business
1•shpat•20m ago•0 comments

Sea Surface Temperature, Live

https://www.maps.com/earth-in-action/sea-surface-temperature/
1•akashwadhwani35•21m ago•0 comments

Global earthquake detection and warning using Android phones (2025)

https://www.science.org/doi/10.1126/science.ads4779
1•whycome•28m ago•0 comments

America Is More

https://thelisowe.substack.com/p/america-is-more
1•Mockapapella•32m ago•0 comments

Android phones knew Venezuela earthquake was coming

https://www.youtube.com/watch?v=Hi432PXwAZE
1•whycome•33m ago•0 comments

The Preemptive Draw and Preemptive Grip in the Cash-in-Transit Sector

https://gutsgatesguards.wordpress.com/2026/06/23/the-preemptive-draw-and-preemptive-grip-in-the-c...
1•stmw•36m ago•0 comments

In AI-exposed jobs, the youngest workers are losing ground

https://www.randalolson.com/2026/06/22/ai-jobs-hit-youngest-workers/
1•samspenc•42m ago•0 comments

The tool layer for developers and AI agents

https://www.utilix.tech/
1•negiadventures•54m ago•1 comments

Homelab Chronicles: A Dusty Gaming PC and a 2AM Basement Spiral

https://www.droppedasbaby.com/posts/hl1/
1•offbyone42•58m ago•0 comments

University of Oxford Is Older Than the Aztec Empire and Other Facts of History (2013)

https://www.smithsonianmag.com/smart-news/university-oxford-older-than-aztec-empire-other-facts-w...
26•thunderbong•58m ago•1 comments

The Log Is the Agent

https://arxiv.org/abs/2605.21997
2•iacguy•59m ago•0 comments

Backon – Python retry (zero deps, circuit breaker, async native)

https://github.com/Llucs/backon
3•Llucs•1h ago•0 comments

Show HN: Local MCP – Claude/ChatGPT read your iMessage, Teams, files on-device

https://www.local-mcp.com/en
2•lanchuske•1h ago•0 comments

Behind the scenes: Seattle Times' World Cup photo team takes the pitch

https://www.seattletimes.com/seattle-news/world-cup-seattle/behind-the-scenes-seattle-times-world...
2•ynac•1h ago•0 comments

Ask HN: Instagram blocked my new account what can I do?

2•coreyp_1•1h ago•6 comments

[STORY] Samsara

https://slatestarcodex.com/2019/11/04/samsara/
3•barry-cotter•1h ago•0 comments

Pg_stat_ch: PostgreSQL Query Telemetry Exporter to ClickHouse

https://github.com/ClickHouse/pg_stat_ch
2•saisrirampur•1h ago•0 comments

Ancient Coins: What About Spartan Coins?

https://coinweek.com/ancient-spartan-coins/
2•thunderbong•1h ago•0 comments

Baby Belt Pro – DIY open-source belt 3D printer

https://www.printcepts.com/babybeltpro
2•kmmbvnr_•1h ago•0 comments

Show HN: Minesweeper.free – Play minesweeper online free

https://minesweeper.free/
2•nadermx•1h ago•0 comments

New DNA technology leads to identification of Revolutionary War soldier

https://www.cbsnews.com/news/revolutionary-war-soldier-identified-john-doe-technology-camden/
2•jnord•1h ago•0 comments

Would You Let A.I. Michael Caine Read You the 'Odyssey'?

https://www.nytimes.com/2026/06/23/books/michael-caine-odyssey-ai.html
3•bookofjoe•1h ago•1 comments

You Feel Exhausted Without Having "Done" Anything Physically

https://facilethings.com/blog/en/decision-fatigue
5•vinhnx•1h ago•1 comments

If you're a button, you have one job

https://unsung.aresluna.org/if-youre-a-button-you-have-one-job/
18•nozzlegear•1h ago•3 comments

A rate-control scroll gesture for mobile reading

https://github.com/somekiwiplease/ThumbStick
2•somekiwiplease•2h ago•0 comments