Introduction to Micropayments
Micropayments are transactions involving very small amounts of money, typically ranging from fractions of a cent to a few dollars. Traditional payment systems cannot efficiently handle micropayments due to fixed transaction fees that exceed the payment amount.
Why Micropayments Matter
| Use Case | Traditional Cost | Micropayment Cost | Viability |
|---|---|---|---|
| Article Reading | <MathBlock tex=0.50 subscription | \ />0.05 per article | 10x cheaper | |
| API Calls | <MathBlock tex=1.00/month minimum | \ />0.001 per call | Pay-per-use | |
| Content Streaming | <MathBlock tex=15/month | \ />0.001/minute | Pay per minute | |
| Game Items | <MathBlock tex=5.00 minimum | \ />0.10 per item | Micro-purchases | |
| Tipping | <MathBlock tex=1.00 minimum | \ />0.01 per tip | Micro-tips |
The Micropayment Problem
Traditional payment systems have minimum viable transaction sizes:
On-Chain Micropayment Limitations
Bitcoin and Ethereum on-chain transactions have inherent limitations for micropayments:
Lightning Network Micropayments
The Lightning Network is the primary solution for Bitcoin micropayments, enabling payments as small as 1 millisatoshi (0.00000000001 BTC).
Lightning Micropayment Capabilities
| Metric | On-Chain | Lightning |
|---|---|---|
| Minimum Payment | ~<MathBlock tex=0.30 (dust limit) | \ />0.00000001 | |
| Maximum Payment | Unlimited | Channel capacity |
| Fee per Transaction | <MathBlock tex=0.50â\ />5.00 | < $0.001 |
| Settlement Time | 10â60 minutes | < 1 second |
| Transactions/Second | ~7 | Millions |
Lightning MPP (Multi-Path Payments)
MPP allows splitting large payments across multiple paths:
Streaming Payments
Streaming payments enable continuous, per-second payment for services consumed in real-time:
Sablier Protocol
Sablier is a protocol for streaming payments on Ethereum:
Sablier Stream Parameters:
{
"sender": "0x...",
"recipient": "0x...",
"rate": "0.0000011415525 ETH/second",
"startTime": "2024-01-15T00:00:00Z",
"stopTime": "2024-02-15T00:00:00Z",
"totalAmount": "3.0 ETH"
}
Streaming Payment Use Cases
| Use Case | Rate | Duration | Total |
|---|---|---|---|
| Freelance Work | <MathBlock tex=50/hour | 8 hours | \ />400 | ||
| Content Access | <MathBlock tex=0.01/minute | 30 minutes | \ />0.30 | ||
| API Usage | <MathBlock tex=0.001/call | 1000 calls | \ />1.00 | ||
| Cloud Compute | <MathBlock tex=0.05/hour | 24 hours | \ />1.20 | ||
| Music Streaming | <MathBlock tex=0.001/minute | 5 minutes | \ />0.005 |
Content Monetization Models
Pay-Per-Article
Model:
Reader pays $0.05 per article
Platform takes 10% ($0.005)
Author receives $0.045
Requirements:
- Instant payment (\<100ms)
- Low fees (\<5% total)
- Seamless UX (no redirect)
- Metered free articles
Attention Token Model
Channel Factories
Channel factories enable mass creation of payment channels from a single on-chain transaction:
Channel Factory Economics
Dust Limits and Thresholds
Bitcoin Dust Thresholds
| Transaction Type | Dust Limit | Value (USD) |
|---|---|---|
| P2PKH | 546 sat | ~$0.30 |
| P2SH | 540 sat | ~$0.30 |
| P2WPKH | 294 sat | ~$0.16 |
| P2WSH | 330 sat | ~$0.18 |
| P2TR | 330 sat | ~$0.18 |
Optimal Micropayment Amounts
This is the Economic Order Quantity (EOQ) model applied to payment channel management.
Real-World Examples
Lightning Network Tips
Platforms like Tippin.me and LNurl enable per-tweet or per-comment micropayments of <MathBlock tex=0.01â\ />0.10 via Lightning, demonstrating viable content monetization.
Sphinx Chat
Sphinx uses Lightning for per-message payments in chat channels, enabling pay-per-message and streaming payments for content creators.
Pool by Foundation
Pool is a protocol for streaming payments that enables continuous token distribution to contributors, used for developer incentives and content creation.
Trade-Offs
| Advantage | Disadvantage |
|---|---|
| Enables pay-per-use | Requires channel liquidity |
| Near-zero fees | Online presence needed |
| Instant settlement | Complexity for users |
| New business models | Regulatory uncertainty |
| Micropayments finally viable | Network effects required |
Interview Questions
-
Why can't Bitcoin on-chain transactions efficiently handle micropayments, and how does the Lightning Network solve this?
On-chain Bitcoin transactions have a dust limit (~546 satoshis) and fees (<MathBlock tex=0.50-\ />5) that make small payments uneconomical. A <MathBlock tex=0.10 payment with a \ />1.00 fee represents a 1000% cost. The Lightning Network solves this by enabling unlimited off-chain transactions between two parties. Payments settle in milliseconds with fees below $0.001. Only the opening and closing transactions are on-chain, amortizing the fixed cost across many micropayments. Lightning also supports payments as small as 1 millisatoshi, enabling true micro-economics.
-
Explain the concept of streaming payments and provide three real-world use cases.
Streaming payments continuously transfer value per second/minute based on usage. Use cases: (1) Freelance work â pay employees per second worked, enabling instant withdrawal; (2) Content access â charge per minute of video/article reading, paying only for consumed content; (3) API usage â charge per API call or per second of compute, enabling true pay-per-use. Sablier and Superfluid are protocols enabling this on Ethereum. The model aligns cost with value received and eliminates subscriptions.
-
How do channel factories reduce the on-chain cost of creating multiple payment channels?
Channel factories use a single on-chain transaction to create a shared state among N participants. From this state, NÃ(N-1)/2 channels can be created off-chain. Instead of N separate on-chain transactions for N channels, only 1 transaction is needed. For 10 participants, this reduces on-chain costs by 90%. Channel factories use HTLCs and revocation mechanisms similar to Lightning, enabling parties to join/leave without additional on-chain transactions. The trade-off is increased complexity and the requirement for coordinated multi-party management.
Quiz Questions
-
What is the dust limit in Bitcoin transactions, and why does it prevent micropayments?
- a) The maximum transaction size allowed
- b) The minimum UTXO value below which the output is economically unspendable
- c) The minimum fee required for a transaction
- d) The maximum number of inputs in a transaction
-
In streaming payments, what happens when a recipient withdraws funds before the stream ends?
- a) The stream automatically stops
- b) The withdrawn amount is deducted from the remaining balance
- c) The sender must approve the withdrawal
- d) Nothing changes; the stream continues normally
-
How many on-chain transactions are needed to create 10 payment channels using a channel factory versus individual channels?
- a) 10 transactions for both methods
- b) 1 transaction with factory, 10 without
- c) 5 transactions with factory, 10 without
- d) 1 transaction with factory, 45 without