How does Silverscript express time in contract logic?

Silverscript lets you write time durations in plain English words — seconds, minutes, hours, days, and weeks — and compiles them into the correct timelock values automatically. It also supports date literals, meaning you can write a specific date like 2026-06-30 directly in your contract source code instead of converting it to a block height or Unix timestamp by hand. This matters because time-based conditions (for example, 'release funds after 7 days') are a core building block of many smart contracts, and human-readable syntax makes those conditions far easier to write correctly and audit later.

Learn more ›