Search

A technology, a device or an article

Zcash expiration limits the inclusion of a transaction, not the life of the payment

Height N still permits inclusion; N + 1 does not. ZIP 203, mempools, reorganizations, and why Zcash expiry does not erase a timely confirmed payment.

Ink-painted book-like blocks and an envelope before a dark vertical boundary
ITNWS AI-generated conceptual illustration. The boundary evokes the last permitted inclusion, not a real payment date.ITNWS · image_gen · Original ITNWS AI-generated conceptual editorial illustration

The last permitted height still satisfies the expiry rule. If a regular Zcash transaction has a non-zero nExpiryHeight equal to N, the expiration rule allows it to be included at height N; by N+1 it’s already too late. Equality is essential here. It turns the vague "payment will expire soon" into a verifiable relationship between the field of a particular transaction and the height of the block in which inclusion is attempted. It does not follow from this relationship that a previously confirmed payment will disappear when the chain subsequently becomes longer.

This distinction guides our reading of ZIP 203 Transaction Expiry. The document has the status Final and the creation date is January 9, 2018. This is a long-standing protocol solution, re-examined for explanation on October 26, 2026, and not a new feature of today’s wallet. Its purpose is to limit the uncertainty of an unconfirmed transaction: after a set height, it cannot be included for the first time in a later block if this rule is observed. Before the deadline, the rule does not guarantee inclusion.

The recipient has an understandable desire to consider the published transaction the beginning of an irreversible payment. However, the message on the network is not yet a record in the selected valid chain. The miner may not select a transaction, nodes may have different mempools, and inputs may become unavailable for it. Expiry adds another specific eligibility condition. The clearer this condition, the less reason there is to attribute a guarantee of future settlement to a visible unconfirmed entry. The boundary establishes ineligibility after that height, rather than the promise of success before it.

Reading the inequality

Let N = 5000 in the hypothetical example. All other checks are considered completed for a moment. At block 4999, the expiry rule does not prevent inclusion; at block 5000 as well. In block 5001 it prohibits inclusion. These heights are made up for arithmetic purposes and do not represent today’s network height and do not depict an actual transfer. If a transaction was already validly included in block 4999, the occurrence of block 5001 does not in itself undo that entry. The height of its inclusion is checked, and not the current length of the chain, every time the history is viewed.

In the code of Zebra 7.0.0 transaction checks, expiry checks for regular transactions and coinbase are handled separately. This is a useful confirmation of how the normative relationship is expressed in the implementation, but reading one file does not replace the entire consensus specification. In particular, our “all other checks have been completed” clause remains necessary. An acceptable expiry height does not make the signature, inputs, proofs and other transaction restrictions valid.

The value zero has a special meaning: a normal transaction with nExpiryHeight zero does not receive an expiration date from this field. One cannot read it as requiring inclusion only in the zero block, or declaring any positive current height to be a sign of expiration. The upper limit allowed for the normal case is 499999999. ZIP emphasizes that nExpiryHeight is not a UNIX timestamp. A date-like number in seconds does not turn a height field into a clock and may violate the valid range altogether.

nLockTime solves a different issue: it limits the early admissibility according to the rules provided for it, and nExpiryHeight sets the late limit. The general word "time" is not enough to combine these fields. Moreover, ZIP 203 explicitly notes the historical error of the previous description of their interaction, which was never implemented. When reading old notes, it is important to preserve this correction. It is impossible to restore the current rule using a convenient but removed formulation and then consider the discrepancy in behavior to be a wallet error.

Where is the unconfirmed entry located?

Mempool is a node’s local representation of available unconfirmed transactions. The absence of txid in the mempool of one server does not prove the consensus impossibility of its inclusion. The server may have restarted, not received the message, or may have applied its own acceptance policy. If a non-zero expiry already prohibits a candidate height, the reason has a different effect: a later block does not become valid just because some node has a copy of the bytes. The presence of a transaction file and the admissibility of a new inclusion are different facts.

ZIP 203 associates expiration with the removal of the transaction from the mempool and the removal of dependent transactions. For the operator, this is a natural removal of candidates that are no longer suitable. What is more important for the protocol is that a block with an inclusion that violates the deadline will be invalid. Therefore, it is impossible to “extend” the period by simply resending the previous bytes. The field remains part of the same transaction. Repeating a message changes the availability of the message, not the conditions contained in it. Continuing the payment intent requires a valid new wallet action.

Amber glass tile before a gateway and another tile embedded in a clear slab
ITNWS AI-generated conceptual illustration. The embedded tile remains: expiry does not erase a timely valid inclusion. — ITNWS · image_gen · Original ITNWS AI-generated conceptual editorial illustration

At the same time, the expired label displayed by the wallet describes its knowledge of a specific operation. To connect it with the fate of the payment, the program needs an up-to-date chain and correct recognition of confirmations. A lagging interface may still show a wait when a block already contains a transaction, or may not know that the selected history has changed. Reading nExpiryHeight does not replace synchronization. It gives a precise additional question: at what height and in what valid chain history was the transaction included or can it still be included?

The reorganization makes this issue especially clear. A transaction could be in a block up to the boundary, and then this block no longer belongs to the selected chain. Returning to the mempool and the possibility of including it again requires re-evaluation in a new context. If the candidate height now exceeds its expiry height, the previous inclusion in the discarded branch does not give an exception. The rule does not store a permanent exemption for a previous inclusion for a transaction. At the same time, it does not erase transactions remaining in valid blocks of the appropriate height.

The word “canceled” is therefore too broad. Expiration excludes certain future inclusions at the appropriate height, but is not a separate refund transaction. Previously unspent inputs retain their own availability conditions and history of possible conflicts. The sender and recipient must establish the actual status of the previous payment. It is impossible from the absence of an entry on one screen to deduce the right to send another independent amount without verification and then consider a possible double payment as an expiry error.

Where did the number of blocks come from?

The historical description before Blossom used a default delta of 20 blocks with a target interval of 150 seconds. After Blossom, the document describes 40 blocks at 75 seconds. In both cases the rough product gives about 50 minutes. This is an explanation of the origin of the default value, not a timer with guaranteed accuracy. Interblock intervals are random, the actual rate at which blocks appear varies, and the wallet can use a different delta that is explicitly configured. A non-zero absolute transaction field is more important than someone else’s memory of the usual fifty minutes.

Reviewed today ZIP 218 about 25 second target interval has the status Proposed. It describes increasing the recommended default expiry delta to 120 blocks conditional on the corresponding NU7 activation. The presence of this section in the document does not prove that the change has already been activated on a particular network on the date of reading. Here it remains a conditional rule in a proposal. We don’t assign a fictitious start date to it, and we don’t carry forward the future recommended default to every existing transaction.

The default recommendation itself refers to creating a transaction, and not rewriting its fields as the chain progresses. The wallet selects a target height, takes into account the rules and receives a certain absolute limit. Already built bytes do not automatically start sliding forward with the current height. Otherwise, the promised waiting limit would keep moving away. A specific implementation may differ in its construction policy, so when parsing an operation it is useful to read its field without reconstructing it from the program name alone.

Changing default also does not change the boundary inequality. Regardless of how many blocks are added during construction, a non-zero N limits the height of the inclusion from above. It is important to distinguish between a consensus rule and a recommendation to a wallet: the first determines the admissibility of a block, the second offers the usual choice of parameter. An increased delta expands the possible wait window, but does not reserve space or compensate for invalid inputs. One number is not simultaneously an expiry limit, a fee and confirmation of payment.

Coinbase has an exception that should not be masked by the usual story of a user transfer. With NU5, the nExpiryHeight field of coinbase must be equal to the height of the block containing it; the ordinary transaction-expiry rule does not apply to it in the same way. ZIP 252 documents the historical activation of NU5, and the protocol specification contains the exact requirement. Therefore, the advice “zero means no deadline, put it everywhere” would not only be inaccurate, but would violate a separate rule for a special class of transactions.

A visible limit does not need to be turned into a promise of privacy. The expiry height is part of the transaction structure and can carry information about its construction; the expiration itself does not delete messages from others’ logs or cause observers to forget what they saw. The consensus rule governs the permissibility of inclusion rather than the wholesale destruction of copies of data. Even perfect cleaning of the mempool of one’s own node does not guarantee that copies held by other participants will disappear. This technical distinction is useful regardless of which transaction records are protected by the selected Zcash pool.

You also need to be careful with the recipient’s time. The recipient’s shop or service may have its own invoice deadline, which will expire before the protocol N. Or the invoice is still open when a specific transfer attempt is no longer suitable for the next block. The business promise and the transaction restriction do not have to be the same. The wallet needs to show the status of a particular attempt, and the recipient needs to determine which action satisfies the settlement conditions. From one expiry height it is impossible to deduce the policy of an external service, which the editors have not checked.

For a new attempt, the wallet must re-evaluate the available funds and the state of the previous one. The ability to re-spend the same transparent inputs or shielded notes depends on the valid chain history; the interface timer alone is not sufficient. There is no instruction in this explanation to manually change the fields of a signed transaction. The user’s task is to understand what statement the correct program is making when it offers to resubmit. The old message is no longer a valid candidate after its boundary, but the intent to pay needs a new verifiable result.

Sources verified October 26, 2026. The last allowed block at the beginning of the article is still allowed: N is fine, N + 1 is no longer allowed. A valid payment recorded on time does not live on the countdown until it disappears. And an unconfirmed attempt does not receive a guarantee of success from the fact that its period has not yet expired. These statements define the useful certainty provided by expiry: the exact boundary of the future inclusion of a particular transaction.

Sources & documentation

  1. ZIP 203 Transaction Expiry, Final, created 2018-01-09 ↗
  2. Zebra transaction consensus checks ↗
  3. Zcash protocol specification ↗
  4. ZIP 218 25-second block target spacing ↗
  5. ZIP 252 NU5 deployment, historical ↗