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
2