Clarity theorytheory 0/50 · 0%
Control Flow · medium

37. Time-bound Actions

Using block height for logic.

Contracts can use `block-height` to implement vesting, deadlines, or expiring offers.

clarity
(asserts! (> block-height deadline) (err u401))

Check your understanding

  1. 1. Is block-height guaranteed to be accurate?