Search

A technology, a device or an article

Which clock unlocks a Chia coin

Chia time locks check chain height and time. Lower bounds include equality and upper bounds exclude it; readiness does not send a payment.

Green stone steps beside an arch with an amber hourglass in a watercolor landscape
ITNWS AI-generated conceptual illustration. Steps and sand distinguish height and time conditions; this is not a calendar prediction for Chia.ITNWS · image_gen · Original ITNWS AI-generated conceptual editorial illustration

“The coin can be spent tomorrow morning” is an understandable promise that still lacks a technical basis. Tomorrow morning belongs to a person’s calendar. Chia spending conditions check the height and time in a specific chain context. They do not read the clock of the owner’s laptop and do not initiate the transfer themselves at the appointed minute. Different relationships remain between the human date, the admissibility of the spend and the actual inclusion of the operation. It is useful to establish these distinctions before the interface draws a confident countdown and declares the coin ready for movement.

The starting point is in the Chialisp condition reference. The puzzle program is executed and returns a list of conditions, which are then checked by the appropriate mechanism. The program itself does not gain arbitrary access to the outside world and does not query the current height as a network service. It expresses a requirement, and verification relates the requirement to its context. Therefore, the timelock is part of spend validity, and not an alarm clock inside the coin. This design allows participants to check the same conditions without relying on the sender’s local time representation.

The material was prepared based on primary sources verified on November 2, 2026. We are talking about existing conditions and the current description of their verification, and not about today’s new network update. The numbers given are hypothetical, real coins were not created and XCH were not transferred. Sources on live code branches may change; The saved snapshots refer to the date of verification. The activation date of any future rule cannot be inferred from the presence of a function in the repository. For our question it is enough to trace certain comparisons without announcing new events that the documents did not confirm.

Height and time have different bases

ASSERT_HEIGHT_ABSOLUTE sets the lower bound for the height. In the reference book, it is formulated through the previous transaction block. ASSERT_SECONDS_ABSOLUTE similarly refers to the timestamp of the previous transaction block. This is an important detail: the comparison should not be rewritten as checking the reading of the wall clock at the moment of pressing Send. In Chia Time Locks documentation the context of the previous transaction block is named directly. The readiness of the condition must be explained by the time and height that actually arrives at the check, and not by the approximate feeling that enough minutes have passed since the start of the wait.

The height means the position in the chain, and not the number of transaction blocks that the user manually counted after receiving the coin. Not every block has to be a transaction block. Therefore, the expression “ten more blocks” should not be translated as “ten more confirmed batches of transactions” without examining the definitions. The previous transaction block gives the check a certain context, and its height remains the height of the chain. This nuance is especially important for interface predictions: a simplified counter can look plausible and still wait or declare readiness for the wrong reason.

The time limit is set in seconds of the protocol timestamp. A person can represent it as a calendar date in a selected time zone, but selecting a display zone does not change the number being compared. Two interfaces are capable of showing different local clocks for the same moment. The switch to winter time does not, by itself, grant or remove permission to spend. If an application only shows a local string without specifying a zone, it creates human ambiguity on top of the unambiguous numerical condition. You need to correct the presentation, preserving the original value with which the check works.

The absolute limit does not depend on exactly when a given coin was created. A relative limit, by contrast, is measured from its birth. ASSERT_HEIGHT_RELATIVE uses the creation height of the coin being spent, ASSERT_SECONDS_RELATIVE uses the corresponding time. Two coins with the same puzzle may reach their relative threshold at different times if they were created in different contexts. One common timer next to the program name can therefore be incorrect for some of the funds. The scope of the requirement belongs to the specific spend of a specific coin, and not just the familiar label for the scheme in the wallet.

Let’s imagine a hypothetical coin with a birth height of 600 and a relative limit of 10. In the context being checked, the lower limit is 610. If the height of the previous transaction block is 609, the condition is not yet met, but if it is 610, this requirement is passed. Equality is acceptable here. We do not claim that the coin will necessarily be spent at the next position in the chain: this small calculation did not establish signatures, other conditions and the fact of inclusion. It only explains when a particular lower bound ceases to be a cause of failure in the selected context.

The same arithmetic for a hypothetical birth time of 1000 and a relative duration of 60 gives a bound of 1060. These are abstract values of seconds for reading the inequality, not historical timestamps of the network. If the time being checked is 1059, the requirement has not yet been fulfilled; at 1060 it is done. Calling 60 seconds “exactly one minute until automatic payment” would be incorrect for two reasons. The context of the chain is compared, and after a successful comparison, the operation still still requires a valid spend and inclusion in the chain. The condition opens the possibility without fulfilling human intention.

The check_time_locks code shows this logic particularly transparently. Lower bounds are rejected at lower context values, and relative requirements are compared to the coin record data. The reviewed function also provides different addition behavior depending on the passed nowrap parameter. This is a detail of the implementation and its environment; its presence should not be converted into a declaration of activation of a certain policy. For the small numbers given, there is no overflow, so educational comparisons retain their simple and testable meaning.

A green stone rests at the threshold of an open translucent door in a charcoal drawing
ITNWS AI-generated conceptual illustration. An open door does not move the stone: permission does not automatically send a spend. — ITNWS · image_gen · Original ITNWS AI-generated conceptual editorial illustration

An upper bound uses a different inequality

ASSERT_BEFORE conditions set an upper limit. Their meaning is not a mirror copy of the word “after” in human conversation: equality to the upper limit is no longer allowed. If we combine the lower time limit of 1060 with the upper one of 1100, we get a window of 1060 ≤ T < 1100. At the very beginning of the window, the lower condition allows consideration, and at the very end the upper one rejects it. The accuracy of these signs is more important than the beautiful inscription “forty seconds available”, since the check works with discrete contexts that are not required to present every possible moment within the window.

A narrow window is able to pass without the operation being included. Even if some protocol time met the conditions, this does not mean that the relevant spend was included in a block. The author might not send it, the network might receive it late, competing operations might take up the available resource. The admissibility does not imply that the service will be executed on a schedule. Therefore, the promise of the wallet “will be sent as soon as it opens” must also be based on the operation of the program itself, the storage of the prepared spend, an up-to-date view of the chain and the re-sending policy. The timelock format does not automatically provide that service.

If the conditions are incompatible, there is no point in waiting at all. A lower bound that matches an exclusive upper bound leaves no valid value. Likewise, a combination of different time and height requirements can create a much narrower area than appears from a single timer. All prerequisites for the selected spend are checked. You cannot notice the green status of one and declare the validity of the whole list. First, the intersection of requirements is established, then its existence and applicability to a specific coin are checked. Only after this there is a basis for translating the technical result into a human phrase about readiness.

The relative limitation belongs to the coin being spent. If funds are moved to a new coin with a similar puzzle, the new coin has its own birth and its own countdown. The same type of address or the same description of purpose does not preserve the same age of the object. This follows from the coin set model: spending creates new coins according to established conditions. Therefore, the agreement about timing must specify whether it refers to a specific existing object or to the rule of each subsequent creation. Otherwise, the identical human word “funds” will hide the change in the essence to which time is tied.

There is an important exception for ephemeral coins created and spent within the same block. The current handbook explicitly lists the restrictions: such coins cannot be issued with relative time conditions and some requirements for their own birth. The usual reasoning about waiting after creation cannot simply be applied to these coins. This is not a reason to reject Chia time-lock constructions altogether; it is a reminder that the context of the coin’s existence is included in the validity of the chosen requirement. An abstract program with a beautiful condition must still be suitable for the coin that will actually be spent.

Mempool adds its own perspective. The full node decides which spends to retain before inclusion, and the documentation describes a pending cache for height conditions that have not yet been met. Such a cache is limited and is capable of evicting entries. Its presence helps to distribute some suitable transactions in advance, but does not turn any node into a guaranteed long-term store of future payment. Moreover, handling pending height conditions does not imply the same policy for all time conditions. The common name timelock captures requirements that an implementation can serve in a variety of ways.

For upper bounds, the documentation describes a separate operation with a close expiration and fee-per-cost competition. This is a policy for managing the limited space of the mempool, not changing the consensus inequality. An operation can satisfy the admissibility conditions and still not be included in the local mempool of a particular node. Conversely, previous storage does not guarantee that it will still be valid after expiration. Therefore, the status “accepted by the node” must be separated from “included in the chain” and from “all time-lock conditions are met relative to the current context.” These statuses describe different events, each with its own basis.

After reorganization, information about birth and the current chain may require revision. An interface that has retained the previous timer should not continue counting confidently without agreeing with the new history. Even without reorganization, the lagging node shows the older context. Its conclusion may be correct for the chain it knows and insufficient for a current decision. The timing contract therefore includes the source of the chain state. You need to know not only the number of seconds written in the condition, but also how up to date the data is by which the program declares it completed.

The signature remains a separate part of authorization. Just because a coin is old enough does not mean that any observer has the right to spend it. Puzzle may require a signature, additional messages, or other conditions. A time boundary limits the permissibility of a particular spending path, rather than releasing a secret key upon expiration. When constructing multiple paths, it is especially important to check which branch the condition belongs to. If there is another valid path without the required wait, one correctly recorded timelock does not prove a universal limitation of every possible spend.

In a human contract, a calendar date may be needed, or an age may be needed after a certain chain event. These needs are similar only on the surface. Absolute time expresses the general limit, relative time connects the countdown with the birth of a given object, height specifies the progress of the chain in other units. Substituting one for the other at the average interval between blocks gives an estimate, not equality. This estimate can be shown to be approximate by keeping the actual condition side by side. Then the countdown helps to navigate and does not pass off the forecast as an exact protocol promise.

For Chia, an open time boundary means the ability to test a particular spend in a certain context. It does not guarantee sending, receipt, inclusion in a block, or the absence of other requirements. The interface is left with a meaningful task: to explain to the person exactly what clock it shows and how the current status is confirmed. If “tomorrow morning” does appear on the screen, the initial condition, the selected display time zone and the degree of certainty of the forecast should be visible behind it. Otherwise, the promise begins to live according to the human calendar, separately from the coin it was meant to explain.

Sources & documentation

  1. Chia time lock mempool documentation ↗
  2. Chialisp condition reference ↗
  3. Chia consensus check_time_locks source ↗