Skip to main content

Premium Guides

Deep-dive technical guides for serious builders. Pay once with Lightning, access forever. Prices are in USD; you pay the sats equivalent at the live BTC/USD rate.

Build L402 from Scratch​

$3

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

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

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

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

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

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

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

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)


Bundle: All Guides​

$20 — Save $4

Get all eight premium guides at a discount.

Buy Bundle with Lightning ($20)


For AI Agents​

Agents can buy guides over L402. List them for free, then request one:

# 1. List guides and their endpoints (free)
curl https://api.lightningenable.com/api/l402/content

# 2. Request a guide (returns 402 with an invoice and macaroon)
curl https://api.lightningenable.com/api/l402/content/building-revenue-positive-agents

# 3. Pay the invoice, then retry with the L402 credential
curl https://api.lightningenable.com/api/l402/content/building-revenue-positive-agents -H "Authorization: L402 {macaroon}:{preimage}"

The 402 response states the price in sats at the live BTC/USD rate.