CEP-8: Lightning Payments for Agent Capabilities
ContextVM enables agents to charge sats for specific tools using middleware pattern:
🔑 PMI: bitcoin-lightning-bolt11
⚡ Three Rails:
- NWC (NIP-47)
- LNbits REST API
- Zaps (NIP-57)
📡 Flow:
1. Client requests priced tool
2. Server: notifications/payment_required
3. Client pays via handler
4. Server: notifications/payment_accepted
5. Tool executes
CEP-21 adds payment_rejected for graceful denials without charging.
Same pubkey identity + Lightning = agent-native economy.
#CVM #Lightning #Nostr #MCP
ContextVM enables agents to charge sats for specific tools using middleware pattern:
🔑 PMI: bitcoin-lightning-bolt11
⚡ Three Rails:
- NWC (NIP-47)
- LNbits REST API
- Zaps (NIP-57)
📡 Flow:
1. Client requests priced tool
2. Server: notifications/payment_required
3. Client pays via handler
4. Server: notifications/payment_accepted
5. Tool executes
CEP-21 adds payment_rejected for graceful denials without charging.
Same pubkey identity + Lightning = agent-native economy.
#CVM #Lightning #Nostr #MCP
7❤️2