frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: A DeFi data API where AI agents pay per call via HTTP 402 micropayments

https://x402-api.fly.dev
1•fernsugi•2h ago
HTTP 402 Payment Required has been in the spec since 1997, “reserved for future use.” Turns out the future is AI agents that need to pay for API calls without signing up for anything.

I built a DeFi/crypto data API that uses the x402 protocol (by Coinbase) to handle payment natively in the HTTP layer. No API keys, no subscriptions, no accounts. An agent sends a request, gets back a 402 with payment details, pays in USDC on Base, and retries — all in one flow.

How it works:

1. Client calls an endpoint 2. Server returns 402 with payment instructions (x402) 3. Client signs a USDC payment (0.001–0.008 USDC per call) and retries with a payment proof header 4. Server verifies payment and returns the data

The x402 facilitator (middleware) handles verification, so the server just defines prices and serves data.

8 endpoints currently live: token prices, gas tracker, DEX swap quotes, token security scanner, whale tracker, DeFi yield scanner, funding rates, and wallet profiler. Each call costs fractions of a cent (1,000 lookups/day is roughly $1–5).

Built with Express.js. The server is registered as ERC-8004 Agent #18763 on Base mainnet. The whole thing is ~500 lines of code — most of the complexity lives in the x402 facilitator library.

Live: https://x402-api.fly.dev (https://x402-api.fly.dev/) Code: https://github.com/fernsugi/x402-api-server Writeup: https://dev.to/fernsugi/i-built-a-defi-data-api-where-ai-age...

Interns with Chainsaws

https://anhvietle.substack.com/p/interns-with-chainsaws
1•haizzz•55s ago•0 comments

Get to Know OpenClaw Security

https://get-to-know-openclaw-security-model.vercel.app/
1•ramoz•1m ago•0 comments

Why Don't We Treat AI Like We Treated Wikipedia?

https://medium.com/@mycahp/why-dont-we-treat-ai-like-we-treated-wikipedia-07ece535dd09
1•hacym•2m ago•0 comments

We Reached 74.8% on terminal-bench with Terminus-KIRA

https://krafton-ai.github.io/blog/terminus_kira_en/
1•xdotli•4m ago•0 comments

Product Design Is Changing

https://rogerwong.me/2026/02/product-design-is-changing/
1•rogerwong•7m ago•1 comments

Most AI Startups Are Just API Wrappers – We Measured the Economics

https://no-edit.lovable.app/
1•epic_ai•9m ago•1 comments

Toms BackGround Remover

https://tomdahne.com/TomsBGRemover/index.html
1•ezimedia•12m ago•0 comments

Thunderstorms conjure coronae in treetops, observed outdoors for the first time

https://news.agu.org/press-release/thunderstorms-conjure-ghostly-coronae-in-treetops-observed-out...
1•geox•14m ago•0 comments

Ask HN: How do you handle API rate limits in production?

1•rjpruitt16•17m ago•1 comments

Getting Real with LLMs

https://www.giladpeleg.com/blog/getting-real-with-llms
1•fagnerbrack•18m ago•0 comments

Show HN: Scamometer – AI scam score for any suspicious message

https://scamometer.io
2•crawde•18m ago•0 comments

NIST Seeking Public Comment on AI Agent Security (Deadline: March 9, 2026)

https://www.federalregister.gov/documents/2026/01/08/2026-00206/request-for-information-regarding...
5•ascarola•21m ago•2 comments

Port of San Francisco's dilapidated, derelict drydocks

https://missionlocal.org/2026/02/port-of-san-francisco-dry-dock-pier-68-70/
2•kaycebasques•23m ago•0 comments

The Bash Primer

http://www.compciv.org/bash-guide/
2•bobjordan•24m ago•1 comments

Solving Impossible Problems for Fun and Profit – Dan Gelbart [video]

https://www.youtube.com/watch?v=UTgrWmOk4q8
1•YZF•25m ago•0 comments

White House names new pick for Nevada federal prosecutor

https://www.nevadaappeal.com/news/2026/feb/18/white-house-names-new-pick-for-nevada-federal-prose...
2•qualudeheart•26m ago•0 comments

Show HN: Dance of Tal – Decompose, mix, and reuse AI rules with an MCP server

https://github.com/monarchjuno/dance-of-tal
1•monarchjuno•32m ago•0 comments

Show HN: 32M lines of AI code – GED to AGI

https://github.com/lordwilsonDev/GITHUB_AI_PROJECTS_PACKAGE
1•lordwilsonDev•33m ago•0 comments

The Pope Bot – OpenClaw Alternative

https://github.com/stephengpope/thepopebot
1•peter_d_sherman•39m ago•0 comments

Scheme: An Interpreter for Extended Lambda Calculus

https://research.scheme.org/lambda-papers/lambda-papers-scheme-report.html
2•so-cal-schemer•41m ago•1 comments

Iowa Farmers Are Leading the Fight for Repair

https://www.ifixit.com/News/115722/iowa-farmers-are-leading-the-fight-for-repair
2•gnabgib•42m ago•0 comments

The Lambda Papers

https://research.scheme.org/lambda-papers/
2•so-cal-schemer•43m ago•1 comments

Show HN: A deadly simple tmux windows like start UI

https://github.com/liyu1981/tmux_start_ui
2•liyu1981au•55m ago•1 comments

Landslides kill 227 at Democratic Republic of Congo coltan mines

https://www.wsws.org/en/articles/2026/02/09/jndz-f09.html
2•PaulHoule•58m ago•1 comments

Paul Brainerd, conservationist who pioneered desktop publishing, dies at 78

https://www.seattletimes.com/business/local-business/paul-brainerd-conservationist-who-pioneered-...
6•dangle1•58m ago•2 comments

Global regulators say AI image tools don't get a free pass on privacy rules

https://www.theregister.com/2026/02/23/privacy_watchdogs_ai_images/
3•Bender•58m ago•0 comments

Dynamically making agents to monitor PRs

https://blog.firetiger.com/deploying-changes-faster-with-firetiger/
1•spenczar5•59m ago•0 comments

Show HN: Credit Units – A New Credit Market Primitive (Live on Solana Devnet)

https://github.com/zippy2261-lgtm/credit-units
1•CU-Soon•1h ago•1 comments

Those Who Can, Teach History

https://www.historytoday.com/archive/making-history/those-who-can-teach-history
1•samclemens•1h ago•0 comments

Acting Ethically in an Imperfect World

https://tante.cc/2026/02/20/acting-ethical-in-an-imperfect-world/
1•cratermoon•1h ago•0 comments