Skip to content

wait

Wait for a duration before executing the next action (fork simulations advance the chain's clock instead).

Smart blocks: cannot be nested. This command performs an immediate wallet, RPC, external-service or control-flow operation and cannot run inside an atomic batch.

wait <duration>
NameTypeEvaluationDescription
durationnumberBuild timeTime to wait, in time units (e.g. 30s, 1d)
# Wait a minute between two transactions
set $contract 0x44fA8E6f47987339850636F88629646662444217
exec $contract start()
wait 1m
exec $contract finish()
# Inside a fork simulation the wait is instant: the chain's clock is warped
load sim
sim:fork (
wait 1d
)
  • In live execution the client really waits (the script pauses between transactions); in sim:fork blocks the fork's timestamp is advanced instead, so timelocks and vesting cliffs can be crossed instantly.