buildDestinationAtTime

Build a TimeLockVaultDestination for the current index that unlocks at a wall-clock time (epochSeconds, Unix time) rather than a block height, and cache it as destination.

No conversion happens: the timestamp is committed directly, and the BIP-65 split makes the network read any value at/above 500,000,000 as epoch seconds, gating on median time-past. Script, derivation path and recovery layout are identical to buildDestination — a timestamp vault is a height vault on the other side of the split.

epochSeconds must lie in LOCKTIME_THRESHOLD..MAX_UNLOCK_EPOCH_SECONDS: below, the network reads it as a height; above, no claim can ever become final and the coins strand forever.

Named distinctly rather than overloaded because the JVM cannot overload on parameter name alone. Like buildDestination, this re-points the CURRENT leaf.

Otoplo caveat: Otoplo will rediscover a timestamp vault but handles only the height side — creation is height-only, the UI reads any value as a block number, and its claims set nLockTime to the tip height, which can never satisfy a timestamp vault. Use buildDestination for vaults that must stay Otoplo-operable; libnexakotlin claims either side correctly.


Jump the cursor to index and buildDestinationAtTime there, keeping its timestamp-range checks — the epoch-seconds counterpart of the buildDestination index overload. See buildDestinationAtTime for the semantics and the Otoplo compatibility caveat.