wait
Wait for a duration before executing the next action (fork simulations advance the chain’s clock instead).
Syntax
Section titled “Syntax”wait <duration>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
duration |
number |
Time to wait, in seconds |
Examples
Section titled “Examples”# Wait a minute between two transactionsset $contract 0x44fA8E6f47987339850636F88629646662444217exec $contract start()wait 60exec $contract finish()# Inside a fork simulation the wait is instant: the chain's clock is warpedload simsim:fork ( wait 86400)- In live execution the client really waits (the script pauses between
transactions); in
sim:forkblocks the fork’s timestamp is advanced instead, so timelocks and vesting cliffs can be crossed instantly.