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

Every AI Company Needs a Context Graph. None of Them Need the Same One

https://hydradb.com/blog/ai-context-graph-ontology-infrastructure
1•manveerc•2m ago•0 comments

Show HN: FCS – an open protocol for splitting contributions in pre-company teams

https://github.com/zlaska/FCS
1•zlaska•3m ago•0 comments

Effect HTTP Recorder

https://github.com/anomalyco/effect-http-recorder
1•handfuloflight•3m ago•0 comments

Maestro: Agentic Mobile UI Testing

https://maestro.dev/
1•handfuloflight•5m ago•0 comments

GPTBot is the most blocked crawler among websites that get organic traffic

https://sitestatsdb.com/explore/blocked-bots
1•keywordian•7m ago•0 comments

Steam Summer Sale Simulator

https://steamsalesimulator.com/
1•evo_9•7m ago•0 comments

EU to delay pre-authorised travel system after border chaos

https://www.ft.com/content/de332c29-8270-44d8-b535-aabc42692f03
1•JumpCrisscross•8m ago•0 comments

Why Gen Z is falling in love with film photography

https://theconversation.com/why-gen-z-is-falling-in-love-with-film-photography-282454
2•0in•11m ago•0 comments

Odin 1.0 Announcement

https://www.youtube.com/watch?v=dLPAqXi9In0
2•jhack•11m ago•0 comments

Loan – Stashfin

https://play.google.com/store/apps/details?id=com.stashfin.android&hl=en
1•Chirag12boss•19m ago•0 comments

Jet Engine on a Tractor: AI's Big Productivity Trap

https://www.uptimelabs.io/articles/jet-engine-on-a-tractor-ais-big-productivity-trap
1•aravindputrevu•21m ago•0 comments

Hayabusa2 captures images of asteroid Torifune

https://global.jaxa.jp/press/2026/07/20260706-3_j.html
1•pinewurst•22m ago•0 comments

How Prompt Tuning Improved GPT-5.5 in VS Code

https://code.visualstudio.com/blogs/2026/07/06/optimizing-vscode-coding-harness-model-providers
1•PieUser•23m ago•0 comments

Show HN: Slidown – Markdown to PowerPoint in pure Go, no AI in generation

https://github.com/Songmu/slidown
1•Songmu•23m ago•0 comments

Parents are blaming Snapchat for their teens' fentanyl deaths (2025)

https://www.latimes.com/business/story/2025-03-05/snap-lawsuit-fentanyl-death-teens
1•1vuio0pswjnm7•24m ago•0 comments

Show HN: Brunelly AI Native Platform v26.06

https://brunelly.com/
1•RihabAI•26m ago•0 comments

China built a 40-story tower that stores wind power by stacking concrete

https://boingboing.net/2026/07/06/post-china-built-a-40-story-tower-that-stores-wind-powe.html
2•eric_h•35m ago•0 comments

Supreme Court won't block Texas enforcing age verification law for app downloads

https://apnews.com/article/texas-age-mobile-app-verification-law-supreme-court-362137cccb26fc5f5d...
2•1vuio0pswjnm7•35m ago•1 comments

How Europe would fight without America

https://www.ft.com/content/ffd323d9-8a8c-4b67-ae0d-208c8f994ece
1•JumpCrisscross•38m ago•0 comments

Ask HN: Where do you hire interns for startups?

1•guptadeepak•39m ago•0 comments

Section 139(8A) of Income Tax Act: Guide, Rules and Benefits – SMFG India Credit

https://www.smfgindiacredit.com/knowledge-center/section-139-8a-of-income-tax-act.aspx
1•saumyaraut11•40m ago•0 comments

Xbox 'OG' Adventures

https://mamoniem.com/xbox-og-adventures/
1•davikr•42m ago•0 comments

"The Borgias" vs. "Borgia: Faith and Fear" (accuracy in historical fiction)

https://www.exurbe.com/the-borgias-vs-borgia-faith-and-fear/
2•walterbell•51m ago•0 comments

The Consciousness Atlas: Visualizing the Landscape of Consciousness

https://www.consciousnessatlas.com/
2•lucasrufkahr•55m ago•0 comments

The Socialist Temptation of Sam Altman

https://www.wsj.com/opinion/openai-government-sam-altman-donald-trump-ai-5b2676a2
3•thm•57m ago•0 comments

Show HN: Conquer the Top Leagues 38-0 Games

https://38-0.one/
1•cksmct•58m ago•1 comments

Researchers Reveal the Power of 'Quantum Proofs'

https://www.quantamagazine.org/researchers-reveal-the-power-of-quantum-proofs-20260706/
2•pseudolus•59m ago•0 comments

Too ugly, too noisy, too American? France's great air con debate

https://www.cnn.com/2026/07/07/europe/france-heatwave-air-con-politics-intl
1•rawgabbit•1h ago•2 comments

Summary: Analytic Idealism in a Nutshell by Bernardo Kastrup

https://www.chestergrant.com/summary-analytic-idealism-in-a-nutshell-by-bernardo-kastrup
1•chegra•1h ago•0 comments

MSE – Why am I finding the Catalan numbers in these "Snowball Numbers"?

https://math.stackexchange.com/questions/5142872/why-am-i-finding-the-catalan-numbers-in-these-sn...
1•philipfweiss•1h ago•0 comments