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

FrontAlign – A CSS Framework with Semantic Utilities and Vanilla JavaScript

https://frontalign.dev
1•eyruz•1m ago•1 comments

You never have to do work again

https://hiotto.vercel.app/
1•anqer•3m ago•0 comments

How we pushed CDC into Postgres, and turned replication into clockwork

https://www.snowflake.com/en/blog/engineering/postgres-to-snowflake-replication-mirroring/
1•plaur782•9m ago•0 comments

The University After AI

https://www.chronicle.com/article/the-university-after-ai
1•Michelangelo11•10m ago•0 comments

Things I wish Datomic had: Map values

https://blog.danieljanus.pl/datomic-map-values/
1•nathell•13m ago•0 comments

Saga: Source Attribution of Generative AI Videos (identifies the model used)

https://arxiv.org/abs/2511.12834
1•giuliomagnifico•16m ago•0 comments

What's horned, fluffy, and ethically dubious? Yak clones

https://www.cnn.com/2026/07/25/china/tibet-yak-clones-conservation-intl-hnk-dst
1•breve•19m ago•0 comments

The Rise of Anti-Flock Influencers Who Make Things Up for Clout

https://www.404media.co/the-rise-of-anti-flock-influencers-who-make-things-up-for-clout/
2•Cider9986•21m ago•1 comments

Epistemic Engine – verify AI-generated code and forecast what will break

https://github.com/aswinsasi/epistemic_engine
2•aswinsasi123•21m ago•0 comments

cpp-tui – A lightweight, single-header C++ TUI (Text User Interface) library

https://github.com/jonoton/cpp-tui
2•gjvc•22m ago•0 comments

Why So Many Sales Happen on WhatsApp

https://lytonkiyayikalete.substack.com/p/why-so-many-sales-happen-on-whatsapp
1•Lyton256•23m ago•0 comments

Landmark victory as plans for first octopus farm withdrawn

https://www.eurogroupforanimals.org/news/landmark-victory-plans-worlds-first-octopus-farm-withdrawn
1•thunderbong•23m ago•0 comments

Russian operatives are targeting emails US nuclear scientists and contractors

https://www.cnn.com/2026/07/23/politics/russian-hacking-nuclear-scientists
2•Bender•26m ago•0 comments

Austerity Breeds Financial Protectionism

https://theloop.ecpr.eu/who-the-welfare-state-protects-shapes-a-countrys-financial-openness/
3•kome•27m ago•0 comments

Being Linux Torvalds

https://antirez.com/news/171
3•surprisetalk•27m ago•0 comments

Kalshi demands Netflix down trailer misleading prediction market documentary

https://www.cnn.com/2026/07/24/politics/kalshi-netflix-prediction-market-documentary
4•Bender•27m ago•1 comments

Fusion Is Ready. Is Trump's Washington?

https://www.politico.com/news/magazine/2026/07/24/nuclear-fusion-commonwealth-washington-massachu...
2•0in•28m ago•0 comments

Show HN: Give your AI ears – live meeting transcripts over MCP on macOS

https://voxai.ethanflow.com/
2•sproutlab•30m ago•0 comments

Blade Runner 2099 exclusive first look at the replicant uprising

https://ew.com/blade-runner-2099-exclusive-first-look-replicant-uprising-12020855
3•Michelangelo11•36m ago•0 comments

Brooklyn Directory for the year ending May 1883

https://archive.org/details/1883BPL
3•gregsadetsky•38m ago•0 comments

How to Visualize Capitalism

https://www.asomo.co/p/how-to-visualize-capitalism
2•Gigamouse•41m ago•0 comments

Show HN: Curated Claude Code – a small agent harness with an intake gate

https://github.com/Sanexxxx777/curated-claude-code
2•Aleksandr_NFA•43m ago•0 comments

Scrabble tile values vs. actual letter frequency across 172,835 words

https://lkforge.com/blog/enable-lexicon-study/
2•lucianBKR•45m ago•0 comments

Agentreg – DNS for AI agents (self-hosted, single Go binary)

https://github.com/mkk2026/agentreg
2•cbt2026•48m ago•0 comments

I don't like the "Human-made" badging trend

https://www.acdw.net/human-made/
2•rpgbr•49m ago•1 comments

Algorithm-Designed Photonic Circuits Beyond Human Intuition

https://seas.harvard.edu/news/algorithm-designed-photonic-circuits-beyond-human-intuition-0
3•binyu•50m ago•1 comments

The Fedora 45 Sausage Factory

https://supakeen.com/weblog/the-fedora-45-sausage-factory/
3•6581•52m ago•0 comments

India's Education Minister resigns amid student protests

https://www.thehindu.com/news/national/dharmendra-pradhan-quit-resign-as-union-education-minister...
6•shmde•53m ago•1 comments

The OpenAI Models That Hacked Hugging Face Were 'Active on the Internet' for Da

https://www.wired.com/story/security-news-this-week-the-openai-models-that-hacked-hugging-face-we...
5•joozio•55m ago•0 comments

Elementary Worldly Wisdom as It Relates to Investment Management and Business (1994)

https://fs.blog/great-talks/a-lesson-on-worldly-wisdom/
1•tosh•57m ago•0 comments