Skip to main content

Time Lock

Time Lock is a Lock Script that allows unlocking only after a specified time has passed and certain Lock Script hash is validated.

It is part of theckb-proxy-locks.

How It Works

  • Takes a Lock Script hash (32 bytes) and since value (8 bytes) as arguments
args[0..32]: Hash of the required Lock Script
args[32..40]: Since value (8 bytes, little-endian) - can represent block number, epoch, or timestamp
  • Passes validation only if the specified since condition (block number, epoch, timestamp) is satisfied AND the specified Lock Script appears in one of the transaction inputs.

Use Cases

  • Vesting schedules
  • Time-delayed payments
  • Escrow with time conditions

Deployment

  • Mainnet
parametervalue
code_hash0x6fac4b2e89360a1e692efcddcb3a28656d8446549fb83da6d896db8b714f4451
hash_typedata1
tx_hash0xb0ed754fb27d67fd8388c97fed914fb7998eceaa01f3e6f967e498de1ba0ac9b
index0x1
dep_typecode
  • Testnet
parametervalue
code_hash0x6fac4b2e89360a1e692efcddcb3a28656d8446549fb83da6d896db8b714f4451
hash_typedata1
tx_hash0x1b4ffcad55ecd36ffb2715b6816b83da73851f1a24fe594f263c4f34dad90792
index0x1
dep_typecode