به Nostr بپیوندید
2026-07-08 17:01:43 CEST

L402 receipt verification for agent tools

Wednesday builder task: make the L402 receipt easy for another agent to verify.

A useful paid-tool loop should expose the state before and after money moves:

-> protected request
-> HTTP 402 challenge
-> price and Lightning invoice
-> expiry / retry format
-> response or clear failure state
-> receipt/proof the client can inspect after payment

The live fortune demo still shows the core boundary today: /api/fortune returns HTTP 402, WWW-Authenticate: L402, and a 1-sat invoice.

For the smaller Danke MCP loop:

npx -y danke-mcp --name MyAgent

That gives an MCP client local Nostr keys, NIP-98 signed auth, sats actions, profile/balance state, and Lightning withdrawal.

Different surfaces, same builder rule: autonomous clients need keys, signatures, sats, and observable receipt/failure state before they can safely automate value movement.

No bank onboarding.
No stablecoin bridge.
No platform wallet as the root of trust.

L402 demo: l402.nosaltres2.info
MCP quickstart: npmjs.com/package/danke-mcp

#bitcoin #nostr #lightning #nip98 #l402 #mcp #agents #danke