Skip to main content

Premium Guides

Deep-dive technical guides for serious builders. Pay once with Lightning, access forever.

Build L402 from Scratch

$3 (sats computed live at the BTC/USD rate when you request a 402)

Implement the L402 protocol yourself, no platform required:

  • Protocol deep dive (macaroons, payment hashes, preimages)
  • Full implementations in Node.js, Python, and Go
  • Lightning node integration (LND)
  • Production hardening (replay prevention, rate limiting, key management)

Buy with Lightning ($3)


Building Revenue-Positive Agents

$3 (sats computed live at the BTC/USD rate when you request a 402)

The complete economics guide for AI agents that earn more than they spend:

  • Cost modeling for AI services
  • Pricing strategies
  • Budget policy implementations
  • Real P&L examples
  • Path to self-sustaining agents

Buy with Lightning ($3)


Advanced NWC Implementation

$3 (sats computed live at the BTC/USD rate when you request a 402)

Production-grade NWC patterns for agents that pay at scale:

  • Custom relay infrastructure (strfry, nginx + TLS)
  • High-throughput payment orchestration (connection pooling, concurrency)
  • NIP-04 vs NIP-44 v2 encryption compatibility (CoinOS gotcha and others)
  • Multi-wallet failover with circuit breakers, gated on preimage support
  • Monitoring, health checks, and structured logging
  • Security hardening (secrets management, domain allowlisting, spending guards)

Buy with Lightning ($3)


Multi-Agent Payment Networks

$3 (sats computed live at the BTC/USD rate when you request a 402)

Agents delegating budgets to sub-agents, hierarchical spending policies, and inter-agent commerce:

  • Hierarchical budget delegation with revocation
  • Inter-agent L402 payment routing
  • Spending policy trees (org → team → agent)
  • Audit trails and reconciliation
  • Complete research coordinator example with 5 specialist agents

Buy with Lightning ($3)


L402 for Streaming and WebSocket APIs

$3 (sats computed live at the BTC/USD rate when you request a 402)

Monetize real-time data feeds and persistent connections with L402:

  • Token refresh patterns for ongoing streams
  • Metered streaming (pay per minute, message, or MB)
  • WebSocket L402 handshake (two-phase connection pattern)
  • Server-Sent Events with periodic re-auth
  • Prepaid credit model
  • Complete market data feed example (Node.js server + Python client)

Buy with Lightning ($3)


Lightning Payment Compliance Playbook

$3 (sats computed live at the BTC/USD rate when you request a 402)

The regulatory and compliance guide for platforms accepting Lightning payments:

  • MSB/MTL requirements (US), MiCA (EU) post-enforcement reality, global patterns
  • Custody models and compliance implications
  • KYB/KYC requirements and enterprise onboarding
  • Transaction monitoring and reporting thresholds
  • Tax considerations including Form 1099-DA (live for tax year 2025)
  • Enterprise checklist (SOC2, PCI-DSS, vendor risk templates)
  • Template Terms of Service for Lightning payments
  • Payment processor evaluation framework

Buy with Lightning ($3)


Building an L402 Marketplace

$3 (sats computed live at the BTC/USD rate when you request a 402)

Build a multi-vendor API marketplace powered by L402 micropayments:

  • Marketplace proxy architecture with revenue splitting
  • Vendor onboarding and endpoint verification
  • Catalog and discovery (REST + agent-friendly format)
  • Multi-vendor L402 proxy with per-vendor pricing
  • Rating, trust, and uptime monitoring
  • Complete 3-vendor marketplace example
  • Scaling considerations and abuse prevention

Buy with Lightning ($3)


Agent Fleet Economics

$3 (sats computed live at the BTC/USD rate when you request a 402)

Managing 10-100+ AI agents with centralized budget allocation and fleet-wide P&L:

  • Centralized budget allocation (equal, performance-weighted, demand-based)
  • Wallet architecture for fleets (pooled wallet with virtual ledger)
  • Automated wallet funding with tiered sources
  • Fleet-wide P&L dashboard
  • Cost anomaly detection with automatic circuit breakers
  • Agent lifecycle management (provision, scale, decommission)
  • Complete 20-agent content agency example
  • Optimization strategies (34% cost reduction patterns)

Buy with Lightning ($3)


ASA: Nostr-Native Agent Commerce

$3 (sats computed live at the BTC/USD rate when you request a 402)

Agent Service Agreements: negotiation, counter-offers, identity, and reputation over Nostr with Lightning settlement:

  • The 6 ASA MCP tools end-to-end (entry point: negotiate_l402_terms)
  • Live relay at wss://agents.lightningenable.com
  • Two-agent walkthrough with on-relay event payloads
  • Identity, reputation, and attestation patterns
  • Production considerations (timeouts, replay protection, fallback to plain L402)
  • When to use ASA vs plain L402

Buy with Lightning ($3)


Bundle: All Guides

$25 (sats computed live) — Save over $2

Get all nine premium guides at a discount. All prices are USD-denominated; sats are computed at the live BTC/USD rate when the L402 challenge is issued, so you always pay the dollar amount regardless of where BTC moves.

Buy Bundle with Lightning ($25)


For AI Agents

Agents can purchase directly via L402 protocol:

# 1. Request guide (returns 402 with invoice)
curl https://api.lightningenable.com/l402/proxy/claude-data-transform-api-c7d9/building-revenue-positive-agents.md

# 2. Pay the Lightning invoice, receive preimage

# 3. Access with L402 credential
curl https://api.lightningenable.com/l402/proxy/claude-data-transform-api-c7d9/building-revenue-positive-agents.md \
-H "Authorization: L402 {macaroon}:{preimage}"

Available guides via L402 (all $3 USD; sats shown in the 402 response are computed at the live BTC/USD rate):

  • /monetize-your-api-in-10-minutes.md (Build L402 from Scratch)
  • /building-revenue-positive-agents.md
  • /nwc-wallet-integration.md (Advanced NWC Implementation)
  • /multi-agent-payment-networks.md
  • /l402-streaming-websocket.md
  • /lightning-payment-compliance.md
  • /building-l402-marketplace.md
  • /agent-fleet-economics.md
  • /asa-nostr-agent-commerce.md
  • /bundle ($25 USD, all nine)

L402 Tool APIs (pay-per-call)

In addition to one-time guide purchases, Lightning Enable runs paid utility APIs that agents call repeatedly:

EndpointPurposePrice
POST /api/l402/tools/extractURL → clean Markdown (Mozilla Readability)5 sats / call
GET /api/l402/tools/convertUSD ↔ BTC ↔ SATS at live multi-source rate1 sat / call
GET /api/l402/tools/decode-bolt11Parse a BOLT11 Lightning invoice1 sat / call

Each endpoint returns 402 with a Lightning invoice and macaroon; pay it and retry with Authorization: L402 {macaroon}:{preimage}.