---
title: "Hold Invoice — definition | Nuri Glossary"
description: "The escrow behaviour itself: funds are accepted but not final until the receiver settles or cancels."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/hodl-invoice-hold"
---

# Hold Invoice

The escrow behaviour itself: funds are accepted but not final until the receiver settles or cancels.

## Basically

A hold invoice lets the receiver wait before accepting a Lightning payment. They can claim the money when a condition is met, or let the payment return to the sender when time runs out.

## Key Takeaways

- A hold invoice, also called a hodl invoice, is a Lightning Network invoice where the receiver withholds the preimage after receiving payment. HTLCs keep the payment pending in a form of escrow.
- Every routing node along the payment path has liquidity locked in the HTLC chain while the invoice is held. This cost makes hold invoices useful, but also creates a possible route for channel jamming attacks.
- Hold invoices enable trustless conditional payments on Lightning. Marketplace escrow, atomic swaps, pay-on-delivery and compliance-gated exchange deposits all rely on this primitive.

## What Is a Hold Invoice?

A hold invoice is a Lightning Network invoice where the recipient knows the payment preimage but deliberately delays revealing it. A standard Lightning payment settles in milliseconds because the receiver's node automatically releases the preimage when the HTLC arrives. A hold invoice stops this automatic flow, leaving the HTLC pending while the receiver checks external conditions and decides whether to settle and claim the funds, or cancel and return them to the sender.
Hold invoices turn Lightning from a simple payment rail into a programmable money layer. The pending state works like trustless escrow: the sender's funds are committed but not yet received, and the HTLC's timelock guarantees that the sender can recover the funds if the receiver fails to act.
The terms 'hold invoice' and 'hodl invoice' describe the same mechanism. LND's original implementation, introduced by Joost Jager in 2018 via pull request #2022, used 'hodl' in its API naming, while Bitcoin Optech and formal documentation typically use 'hold'. The community uses both terms interchangeably.

## How It Works

A standard BOLT 11 Lightning payment starts when the receiver generates a random secret called the preimage, hashes it with SHA-256 to produce the payment hash, and embeds that hash in an invoice. The sender routes an HTLC locked to this hash through the network. When the HTLC reaches the receiver, their node automatically reveals the preimage, and the payment settles as the preimage travels back through each hop.
Hold invoices give control of the preimage to the application rather than the Lightning node. The application generates the preimage, computes the hash, and passes only the hash to the node when creating the invoice. It keeps the preimage and decides when to release it:
Senders see no difference between a hold invoice and any other Lightning invoice. The BOLT 11 encoding is the same, and the invoice behaves in the same way. The only observable difference is that the payment may take longer to resolve.

## Three Possible Outcomes

Every hold invoice resolves in one of three ways:

## Implementation Example

LND supports hold invoices natively through the invoicesrpc subserver. The REST endpoint is POST /v2/invoices/hodl:
The application provides the hash instead of letting LND generate the preimage internally, unlike a regular addinvoice call. This gives the application full control over when settlement occurs.

## Hold Invoices vs. Standard Invoices

The following table summarises the key differences between a standard Lightning invoice and a hold invoice:

## Marketplace Escrow

Peer-to-peer marketplaces face a classic trust problem: buyers want to pay after receiving goods, while sellers want payment before shipping, and hold invoices solve this without a trusted intermediary. The buyer pays a hold invoice and locks funds in the HTLC, the seller sees the committed funds and ships the item, and the seller settles the invoice and claims payment once the buyer confirms receipt. If the seller never ships, the HTLC times out and the buyer recovers their sats; platforms like RoboSats use this pattern for trustless peer-to-peer Bitcoin trading.

## Atomic Swaps and Submarine Swaps

Atomic swaps exchange assets across different layers or chains with guaranteed atomicity: either both sides complete or neither does. Hold invoices enable the Lightning leg by keeping the HTLC pending while the counterparty's on-chain transaction confirms. Both legs share the same payment hash, so claiming one side reveals the preimage needed for the other.
Submarine swaps are a specific type of atomic swap that moves funds between on-chain Bitcoin and Lightning. Services like Loop and Boltz rely on hold invoices to keep the Lightning payment pending while the on-chain leg confirms. This ensures atomic settlement across layers.

## Payment-on-Delivery

Hold invoices suit any scenario where payment depends on delivery or verification. A freelancer can issue a hold invoice for their fee, let the client pay and lock the funds, deliver the work, and settle the invoice upon client approval. You can extend this pattern to:

## Liquidity Cost of Held Payments

Hold invoices come with a liquidity cost. A standard Lightning payment locks channel capacity for milliseconds, while a hold invoice locks capacity for the entire hold duration at every hop along the route.
A payment routed through five intermediate nodes reduces the capacity of six channels by the HTLC amount for as long as the invoice is held. Routing nodes earn no fee during this period because fees are only collected upon settlement. The receiver benefits from the hold period, but routing nodes bear the liquidity cost without compensation, creating a negative externality.
Each channel direction supports a maximum of 483 concurrent in-flight HTLCs, derived from the maximum Bitcoin transaction size. Long-lived hold invoices consume these finite slots. Some routing nodes reduce the impact by rejecting HTLCs with excessively long CLTV deltas, setting maximum hold durations, or deprioritising traffic from nodes known to produce long-held HTLCs.

## Channel Jamming Risk

Attackers can abuse the liquidity-locking property of hold invoices through channel jamming. A malicious actor sends payments to hold invoices they control and never settles them, locking victim routing node liquidity at near-zero cost because the attacker receives a full refund when the payments eventually time out. Only 483 small HTLCs are needed to completely jam a channel in one direction.
The Lightning Network community is developing several mitigations. These measures aim to reduce the cost attackers can impose on routing nodes:
No single solution has been widely deployed yet. Applications using hold invoices should minimise hold durations and cancel promptly when conditions are not met.

## Timeout and Force-Close Risk

Intermediate nodes may need to force-close their channels to protect their funds if the receiver fails to settle or cancel before the HTLC timelock expires. This incurs on-chain fees and takes channels offline. Well-designed implementations include auto-cancellation logic that rejects pending invoices several blocks before the CLTV deadline.

## Preimage Storage Durability

The preimage is the key to claiming held funds. If the application crashes or its database is lost during the hold period, the preimage may be irrecoverable, leaving the receiver unable to settle the invoice even though conditions have been met. Applications must store preimages in durable storage with backup and use reliable monitoring to detect stuck invoices.

## CLTV Accumulation

Each routing hop adds its own CLTV delta to the timelock chain. For a five-hop route where each node requires a 40-block delta, the sender's total timelock exceeds 200 blocks, or roughly 33 hours, and the hold period at the destination is added on top. Excessively long CLTV values reduce the probability of successful routing because intermediate nodes may reject the HTLC.

## Why It Matters

Hold invoices are the foundational primitive for conditional payments on the Lightning Network. Without them, any transaction requiring verification, escrow or multi-step coordination would need a trusted intermediary. The HTLC mechanism provides trustless enforcement through the cryptographic link between payment hash and preimage, guaranteeing that funds can only move when the receiver explicitly acts.
The research article on Lightning HODL invoices and conditional payments offers a deeper technical exploration of conditional payment flows. The article Lightning invoices: BOLT 11 vs. BOLT 12 covers the broader range of invoice formats.
Newer Bitcoin Layer 2 protocols take different approaches to conditional transfers. Spark, for example, uses virtual UTXOs and FROST threshold signatures instead of HTLCs, avoiding the liquidity-locking trade-offs that hold invoices introduce to the routing network.
This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
