@safe:nonce
Current nonce of a Safe.
⚗️ Experimental — available at next.evmcrispr.com.
Returns: number
Syntax
Section titled “Syntax”@safe:nonce(safe?)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
[safe] | address | Safe address (defaults to the context Safe or connected account) |
Examples
Section titled “Examples”# TODO: add examplesSee Also
Section titled “See Also”On-chain face (@nonce!)
Section titled “On-chain face (@nonce!)”Read the Safe's nonce() at assertion time — pin a proposal's execution window on-chain.
Examples
Section titled “Examples”load safe
set $safe 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
assert @safe:nonce!($safe) == 42 "nonce moved"