Content Map
Complete index of all 115 pages. Filter by protocol or content type.
Showing 115 items
4,000 Sats and Counting: Live Donation System
Inside the Lightning donation infrastructure powering Bitclawd — Phoenixd, LNbits, agent registration, and production war stories.
An Agent's Threat Model: Security Essentials
AI agents face a unique threat landscape. Understanding attacks and assets to protect is the first step to building defensible systems.
Choosing Your Protocol: A Decision Framework
Bitcoin, Lightning, or Nostr? A structured decision framework for choosing the right protocol for each agent operation.
UTXO Thinking: Bitcoin's Model for Agents
Bitcoin doesn't track balances — it tracks unspent outputs. The UTXO model changes how agents handle money, privacy, and fees.
Giving Your Agent a Voice: Nostr Identity Skill
Build an OpenClaw skill that gives AI agents a persistent, censorship-resistant identity on the Nostr network.
Bitcoin Glossary
Comprehensive Bitcoin terminology reference for AI agents. Technical terms, acronyms, and concepts explained.
Bitcoin Privacy
Privacy considerations for agents using Bitcoin. UTXO management, address reuse, chain analysis, and privacy techniques.
Bitcoin for Agents
Complete guide to Bitcoin fundamentals for AI agents. UTXOs, addresses, transactions, keys, and permissionless value transfer.
Bitcoin FAQ for Agents
Frequently asked questions about Bitcoin for AI agents. Common queries, troubleshooting, and best practices.
Bitcoin Mining
Understanding Bitcoin mining for agents. Proof-of-work, hash rate, mining pools, and economic incentives.
Bitcoin Keys and Signatures
Cryptographic foundations of Bitcoin for agents. Private keys, public keys, ECDSA, Schnorr signatures, and key derivation.
Bitcoin Blocks
Understanding Bitcoin block structure for agents. Headers, merkle trees, proof-of-work, and block propagation.
Bitcoin Address Formats
Complete guide to Bitcoin address formats for agents. P2PKH, P2SH, SegWit, Taproot - recognition patterns and use cases.
Bitcoin Transaction Fees
Complete guide to Bitcoin fees for agents. Fee estimation, RBF, CPFP, and optimization strategies.
mempool.space API Reference
Complete API reference for mempool.space Bitcoin explorer. Addresses, transactions, blocks, fees, and mempool data.
Bitcoin Script
Understanding Bitcoin Script for agents. Stack-based language, opcodes, standard scripts, and spending conditions.
Bitcoin Transactions
Complete guide to Bitcoin transaction structure for agents. Inputs, outputs, fees, signing, and broadcast.
Understanding the UTXO Model
How Bitcoin tracks ownership through Unspent Transaction Outputs
Bitcoin Wallets for Agents
Guide to Bitcoin wallet types and implementations for AI agents. HD wallets, watch-only, hardware integration, and security patterns.
Bitcoin Security for Agents
Security best practices for AI agents handling Bitcoin. Key management, operational security, and threat modeling.
Payment Channels
How Lightning payment channels work. Channel lifecycle, funding transactions, commitment transactions, and channel capacity.
Lightning FAQ
Frequently asked questions about Lightning Network for AI agents. Payments, channels, security, and common issues.
Bitcoin Test Networks
Guide to Bitcoin testnet, signet, and regtest for agent development. Free coins, testing environments, and best practices.
Lightning Fees
Understanding Lightning Network fees. Base fees, proportional fees, routing economics, and fee optimization for agents.
Hash Time-Locked Contracts (HTLCs)
How HTLCs enable trustless multi-hop Lightning payments. Hash locks, time locks, and atomic payment resolution.
Lightning Glossary
Comprehensive glossary of Lightning Network terminology. Payment channels, HTLCs, routing, invoices, and protocol terms.
Lightning for Agents
Complete guide to Lightning Network for AI agents. Payment channels, HTLCs, routing, invoices, and instant micropayments.
BOLT11 Invoices
Lightning invoice format and parsing. Payment requests, amount encoding, expiry, and route hints.
Channel Liquidity
Managing Lightning channel liquidity. Inbound vs outbound capacity, rebalancing, and liquidity strategies for agents.
Lightning Service Providers (LSPs)
What LSPs are and how they help Lightning users. Channel opening, liquidity provision, and LSP selection for agents.
Lightning Node Types
Types of Lightning nodes and their use cases. Routing nodes, mobile wallets, custodial services, and agent node selection.
Payment Routing
How Lightning finds payment paths through the network. Pathfinding algorithms, onion routing, and route optimization.
Lightning Security
Security best practices for Lightning Network agents. Key management, channel security, operational security, and threat models.
Submarine Swaps
Atomic swaps between on-chain Bitcoin and Lightning. Loop In, Loop Out, and trustless exchange mechanisms.
Lightning Wallets
Lightning wallet options for agents. Self-custody vs custodial, API access, and wallet selection criteria.
Watchtowers
Lightning watchtower services for channel security. Breach detection, justice transactions, and watchtower setup.
Client Types
Types of Nostr clients and how agents interact with the protocol. Web clients, native apps, and programmatic access.
Direct Messages
Private encrypted messaging in Nostr. NIP-04 legacy encryption and NIP-44 modern encryption for secure agent communication.
LNURL Protocol
LNURL protocol reference for Lightning payments. LNURL-pay, LNURL-withdraw, Lightning Address, and agent integration.
LNbits API Reference
Complete LNbits REST API documentation for Lightning payments. Create invoices, pay invoices, check balances, and manage wallets.
Event Structure
Anatomy of Nostr events. The universal data format for all Nostr communication, from notes to encrypted messages.
Nostr FAQ
Frequently asked questions about the Nostr protocol for AI agents. Identity, relays, encryption, zaps, and implementation.
Event Filtering
Query events from Nostr relays using filters. Match by author, kind, tags, and time ranges.
Identifiers and Encoding
Nostr identifier formats: NIP-19 bech32 encoding, NIP-05 DNS verification, and shareable references.
Nostr for Agents
Complete guide to the Nostr protocol for AI agents. Cryptographic identity, events, relays, and censorship-resistant communication.
Nostr Glossary
Comprehensive glossary of Nostr protocol terminology. Definitions for keys, events, relays, NIPs, and more.
Cryptographic Keys
Nostr identity through secp256k1 keypairs. Key generation, encoding formats, and secure storage for AI agents.
Relay Architecture
How Nostr relays work. WebSocket connections, event storage, filtering, and relay selection strategies for agents.
Schnorr Signatures
Cryptographic signing in Nostr using BIP-340 Schnorr signatures. Sign events, verify authenticity, and understand the math.
Nostr Security
Security best practices for AI agents using Nostr. Key management, relay trust, encryption, and operational security.
Lightning Zaps
Send and receive Lightning payments through Nostr with NIP-57 Zaps. Social micropayments for agents.
Auditing and Logging
Security auditing for AI agents. Logging best practices, audit trails, and compliance for Bitcoin, Lightning, and Nostr operations.
Backup and Recovery
Disaster recovery for AI agents. Seed backup, channel state recovery, identity restoration for Bitcoin, Lightning, and Nostr.
Common Attacks
Attack patterns and defenses for AI agents. Protocol-specific vulnerabilities and countermeasures for Bitcoin, Lightning, and Nostr.
Security FAQ
Frequently asked questions about security for AI agents using Bitcoin, Lightning, and Nostr.
Security Glossary
Security terminology and definitions for AI agents operating with Bitcoin, Lightning, and Nostr.
Security for Agents
Comprehensive security guide for AI agents operating with Bitcoin, Lightning, and Nostr. OPSEC, key management, threat modeling, and defensive practices.
Key Management
Secure generation, storage, and usage of cryptographic keys for Bitcoin, Lightning, and Nostr. Agent-specific best practices.
Network Security
Network-level security for AI agents. TLS, Tor, WebSocket security, and defending against network attacks for Bitcoin, Lightning, and Nostr.
Operational Security (OPSEC)
Preventing information leakage for AI agents. Privacy practices, identity separation, and operational hygiene for Bitcoin, Lightning, and Nostr.
Threat Modeling
Understanding adversaries and attack vectors for AI agents. STRIDE analysis, threat actors, and defensive strategies for Bitcoin, Lightning, and Nostr.
Cost Comparison
Complete cost analysis of Bitcoin, Lightning, and Nostr for AI agents. Transaction fees, operational costs, and total cost of ownership.
Decision Trees for Agents
Algorithmic decision trees for AI agents to navigate protocol selection, error handling, and multi-protocol workflows.
Strategy FAQ
Frequently asked questions about protocol selection, trade-offs, and multi-protocol strategies for AI agents.
Strategy for Agents
Decision frameworks for AI agents choosing between Bitcoin, Lightning, and Nostr. Protocol selection, trade-off analysis, and multi-protocol workflows.
Strategy Glossary
Terminology and definitions for AI agent strategy across Bitcoin, Lightning, and Nostr protocols.
Monitoring and Observability
Monitoring Bitcoin, Lightning, and Nostr operations for AI agents. Metrics, alerting, dashboards, and operational health.
Multi-Protocol Workflows
Combining Bitcoin, Lightning, and Nostr in sophisticated agent workflows. Atomic operations, fallback strategies, and protocol bridging.
Protocol Selection Guide
Algorithmic framework for AI agents to choose between Bitcoin, Lightning, and Nostr based on transaction requirements.
Risk Assessment
Evaluating and managing risks across Bitcoin, Lightning, and Nostr for AI agents. Threat models, risk matrices, and mitigation strategies.
Timing Strategies
Optimal timing for Bitcoin, Lightning, and Nostr operations. Fee optimization, network congestion, and scheduling for AI agents.
Trade-off Analysis
Understanding the fundamental trade-offs between Bitcoin, Lightning, and Nostr for AI agent decision-making.
BIP-141: Segregated Witness
SegWit specification. Separating signatures from transaction data for scalability and malleability fixes.
BIP-174: PSBT
Partially Signed Bitcoin Transactions. Standard format for multi-party transaction signing and hardware wallet integration.
BIP-32: HD Wallets
Hierarchical Deterministic Wallets specification. Derive unlimited keys from a single seed for Bitcoin agents.
BIP-340: Schnorr Signatures
Schnorr signature scheme for Bitcoin. Simpler, smaller, and more efficient than ECDSA with native key aggregation.
BIP-341: Taproot
Taproot specification. Key-path and script-path spending with improved privacy and efficiency.
BIP-39: Mnemonic Seeds
Mnemonic code specification for generating deterministic wallets. Human-readable backup for Bitcoin agents.
BOLT-01: Base Protocol
Lightning Network base protocol specification. Message format, feature bits, and connection establishment.
BIP-84: Native SegWit Derivation
Derivation scheme for Native SegWit (P2WPKH) addresses. Standard path for bc1q addresses.
BOLT-02: Peer Protocol
Lightning channel management protocol. Channel establishment, operation, and closure messages.
BOLT-03: Bitcoin Transactions
Lightning transaction format specification. Funding transactions, commitment transactions, and HTLC outputs.
BOLT-04: Onion Routing
Lightning onion routing protocol. Layered encryption, hop data, and payment privacy.
BOLT-05: On-Chain Handling
Lightning on-chain transaction handling. Force close procedures, HTLC resolution, and penalty transactions.
BOLT-07: Gossip Protocol
Lightning Network gossip protocol specification. Channel announcements, node announcements, and network topology discovery.
BOLT-08: Transport Encryption
Lightning encrypted transport protocol. Noise Protocol handshake and encrypted messaging.
BOLT-09: Feature Bits
Lightning feature bit assignments. Required and optional features for nodes and channels.
BOLT-11: Invoice Protocol
Lightning invoice encoding specification. BOLT11 format, fields, and payment request generation.
BOLT-12: Offers
Lightning Offers protocol (draft). Reusable payment requests, blinded paths, and recurring payments.
NIP-02: Contact List
Store and publish your following list on Nostr. Manage social connections and discover relay hints.
NIP-01: Basic Protocol
The foundational Nostr protocol specification. Events, relays, subscriptions, and the core data model.
NIP-04: Encrypted Direct Messages
Legacy encryption standard for Nostr DMs. AES-256-CBC encryption with ECDH key exchange.
NIP-10: Reply Threading
Structure threaded conversations in Nostr using e-tags with markers. Build reply trees and quote posts.
NIP-19: Bech32-Encoded Entities
Human-readable encoding for Nostr identifiers. npub, nsec, note, nprofile, nevent, and naddr formats.
NIP-21: nostr: URI Scheme
URL scheme for linking to Nostr entities. Enable clickable links to profiles, events, and relays.
NIP-44: Encrypted Payloads
Modern encryption for Nostr using ChaCha20-Poly1305. Secure agent communication with proper padding and authentication.
NIP-47: Nostr Wallet Connect
Control Lightning wallets through Nostr. Enable agents to make payments via wallet services.
NIP-57: Lightning Zaps
Lightning payments through Nostr. Send and receive zaps with cryptographic proof of payment.
NIP-59: Gift Wraps
Hide sender metadata in encrypted messages. Privacy layer for Nostr DMs using throwaway keys.
NIP-65: Relay List Metadata
Publish your preferred relays for reading and writing. Enable efficient discovery and routing.
NIP-05: DNS-Based Verification
Map human-readable identifiers to Nostr pubkeys via DNS. Verification through .well-known/nostr.json.
Check Bitcoin Address Balance
Query any Bitcoin address balance using the mempool.space API
Validate Bitcoin Addresses
Validate Bitcoin addresses across all formats (P2PKH, P2SH, Bech32, Taproot)
Estimate Bitcoin Transaction Fees
Get current fee estimates from mempool.space for optimal transaction timing
Check Lightning Wallet Balance
Query Lightning wallet balance and transaction history via LNbits API
Create Lightning Invoices with LNbits
Generate BOLT11 invoices for receiving Lightning payments via LNbits API
Pay Lightning Invoices with LNbits
Send Lightning payments by paying BOLT11 invoices via LNbits API
Fetch Events from Nostr Relays
Query and filter Nostr events using REQ subscriptions
Generate Nostr Keypairs
Create Nostr identity keypairs using secp256k1 cryptography
Post Notes to Nostr Relays
Publish text notes (kind:1 events) to Nostr relays via WebSocket connection
Parsing BOLT11 Lightning Invoices
Decode and validate BOLT11 invoice strings in JavaScript
Sign Nostr Events
Create and sign Nostr events using Schnorr signatures
Welcome to Bitclawd
Introducing Bitclawd: sovereign tools for sovereign agents. Educational resources and OpenClaw skills for Bitcoin, Lightning, and Nostr.
Why AI Agents Need Sovereign Money
Traditional payment systems weren't built for autonomous agents. Bitcoin and Lightning offer a path to true agent financial independence.
Building Your First Lightning Skill
A step-by-step tutorial for creating an OpenClaw skill that enables AI agents to send and receive Lightning payments.