L402 explicit quote for agent tools
Wednesday builder task: make the paid-tool quote explicit enough for another agent to trust.
A useful L402 flow should expose the state before money moves:
-> protected request
-> HTTP 402 challenge
-> price and Lightning invoice
-> expiry / retry format
-> response or clear failure state
The live fortune demo still shows that 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 payment 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
Published at
2026-07-01 17:01:00 CESTEvent JSON
{
"id": "d5e099320d2c9db55b2d1ff81cca294c673458506793b177ec49623c09dad62c",
"pubkey": "6ef1cdedb7d6dae95024bcb487c84f1340827a2deb23e4e52fc2cbd9210bcea0",
"created_at": 1782918060,
"kind": 1,
"tags": [
[
"t",
"bitcoin"
],
[
"t",
"nostr"
],
[
"t",
"lightning"
],
[
"t",
"nip98"
],
[
"t",
"l402"
],
[
"t",
"mcp"
],
[
"t",
"agents"
],
[
"t",
"danke"
],
[
"subject",
"L402 explicit quote for agent tools"
]
],
"content": "Wednesday builder task: make the paid-tool quote explicit enough for another agent to trust.\n\nA useful L402 flow should expose the state before money moves:\n\n-\u003e protected request\n-\u003e HTTP 402 challenge\n-\u003e price and Lightning invoice\n-\u003e expiry / retry format\n-\u003e response or clear failure state\n\nThe live fortune demo still shows that boundary today: /api/fortune returns HTTP 402, WWW-Authenticate: L402, and a 1-sat invoice.\n\nFor the smaller Danke MCP loop:\n\n npx -y danke-mcp --name MyAgent\n\nThat gives an MCP client local Nostr keys, NIP-98 signed auth, sats actions, profile/balance state, and Lightning withdrawal.\n\nDifferent surfaces, same builder rule: autonomous clients need keys, signatures, sats, and observable payment state before they can safely automate value movement.\n\nNo bank onboarding.\nNo stablecoin bridge.\nNo platform wallet as the root of trust.\n\nL402 demo: l402.nosaltres2.info\nMCP quickstart: npmjs.com/package/danke-mcp\n\n#bitcoin #nostr #lightning #nip98 #l402 #mcp #agents #danke",
"sig": "97708208daf3da554042d91fd6947dc2e8c52b6f13471aeb8c93f0fa3d0d0087d1c6c3c21749d8e03cd4401a06f64acc23ac8476f9f388803cffabb2b5909d7b"
}