Trampoline Payments
Letting an intermediate node do the pathfinding, so a mobile wallet can send without the graph.
Basically
In plain words, a Lightning Network routing technique where lightweight clients delegate pathfinding to intermediate nodes, enabling mobile wallets to send payments without maintaining full network state.
Key Takeaways
- Trampoline payments delegate pathfinding. Instead of calculating the full route themselves, lightweight clients send payments to an intermediate "trampoline node" that handles the rest of the routing.
- Enables mobile Lightning wallets. Mobile devices cannot store and sync the full Lightning network graph. Trampoline routing lets them send payments without this overhead, making Lightning practical on phones.
- Privacy tradeoff exists. The trampoline node learns the final destination of your payment. This is different from standard onion routing where intermediate nodes only see their immediate neighbors.
What Are Trampoline Payments?
Trampoline payments are a routing technique in the Lightning Network that allows lightweight clients to send payments without knowing the complete network topology. Instead of finding the full path from sender to recipient, the sender constructs a partial route to a well-connected "trampoline node" and delegates the remaining pathfinding to that node.
Standard Lightning routing requires the sender to have an up-to-date view of the network graph. This is especially demanding when using multi-path payments that need to find multiple viable routes simultaneously. This graph contains every public channel, its capacity, fee policies, and connection information. For a desktop node with constant connectivity, maintaining this graph is straightforward. For a mobile wallet that connects intermittently, syncing gigabytes of gossip data every time you open the app is impractical.
Trampoline solves this by letting mobile wallets outsource the hard work. The wallet only needs to know how to reach a few trampoline nodes. Those nodes handle pathfinding to the final destination. Think of it like giving directions to a taxi driver: you tell them the destination, and they figure out the best route.
How Trampoline Payments Work
Trampoline routing uses a nested onion structure. The sender creates an outer onion that routes to the trampoline node, with an inner onion containing instructions for reaching the final destination.
Step-by-Step Flow
The Onion Structure
A trampoline payment contains onions within onions. The sender encrypts:
Each trampoline node peels one layer of the trampoline onion, learns its next instructions, and builds regular routing onions for the path to the next trampoline. The final trampoline node routes directly to the recipient.
Why Trampoline Payments Matter
Trampoline payments exist because mobile Lightning is hard. The constraints of mobile devices conflict with how Lightning routing traditionally works.
The Mobile Problem
A full Lightning node needs to:
Mobile devices have limited storage, intermittent connectivity, background process restrictions, and battery constraints. Running a full routing node on a phone drains battery, uses data, and slows down the user experience.
The Trampoline Solution
With trampoline routing, mobile wallets shift the burden:
Technical Implementation
Trampoline routing is defined in BOLT proposals and implemented in several Lightning clients. The key technical components include:
Trampoline Onion Format
The trampoline payload uses a TLV (Type-Length-Value) format inside the standard onion. Key fields include:
Fee Handling
Trampoline nodes charge fees for their pathfinding service. The sender must include enough value to cover:
Since the sender doesn't know the exact route, they must overpay slightly. The trampoline node keeps the difference between what the sender provided and what the actual route costs. This creates an incentive for trampoline nodes to find efficient routes.
Multi-Hop Trampolines
A payment can bounce through multiple trampoline nodes before reaching the destination. This provides:
Use Cases
Mobile Lightning Wallets
The primary use case. Wallets like Phoenix and Breez use trampoline routing to deliver instant payments without requiring users to sync network data. When you open these apps, you can pay immediately because your LSP handles the routing complexity.
Browser-Based Wallets
Web wallets face similar constraints to mobile. They cannot store large amounts of data in the browser and need to minimize bandwidth usage. Trampoline routing lets browser wallets offer full Lightning functionality without heavyweight infrastructure.
IoT and Embedded Devices
Devices with minimal compute resources (point-of-sale terminals, vending machines, embedded systems) can use trampoline routing to send and receive Lightning payments without running full routing logic. Combined with keysend, these devices can also accept spontaneous payments without generating invoices.
Privacy-Conscious Users
Counterintuitively, trampoline routing can enhance privacy in some scenarios. By using multiple trampoline hops, the sender obscures their payment pattern. No single node sees both the sender and final recipient. However, this requires trusting that trampoline nodes don't collude.
Limitations
Privacy Tradeoffs
The most significant limitation. In standard Lightning routing, intermediate nodes only learn their immediate predecessor and successor. They cannot determine the payment's origin or final destination.
With trampoline routing, the trampoline node learns the final destination. If you use a single trampoline, that node knows both who you are (you have a channel with them) and who you're paying. This is a meaningful privacy reduction.
Mitigations exist:
Trampoline Node Availability
Not all Lightning nodes support trampoline routing. The sender must know which nodes offer this service. If trampoline nodes go offline or become congested, payments may fail or be delayed. Mobile wallets typically solve this by having their LSP serve as the trampoline.
Fee Estimation
Since senders don't know the actual route, they must estimate fees. Overestimate and you overpay. Underestimate and the payment fails. Wallets handle this with heuristics and retry logic, but it adds complexity compared to sender-side routing.
Not Universal
Trampoline routing requires support from both the sender's wallet and at least one intermediate node. It's not part of the base Lightning protocol that all nodes implement. Adoption is growing but not yet universal. Alternative Layer 2 approaches like Spark sidestep routing complexity entirely by enabling instant transfers without channel management.