Skip to content

@safe:owners

Owner addresses of a Safe.

⚗️ Experimental — available at next.evmcrispr.com.

Returns: array

@safe:owners(safe?)
NameTypeDescription
[safe]addressSafe address (defaults to the context Safe or connected account)
load safe
set $owners @safe:owners(0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67)
print $owners

The Safe's getOwners() read happens on-chain at assertion time as an ARRAY operand: the live owner words payload. It composes with the lang array faces like any nested array face. A Safe given as an address is fixed when the script is built.

The Safe may also be a ::! call that returns its address, such as @safe:owners!($registry::!{safe()(address)}): the read is then made against whatever address that call returns when the assertion runs.

load safe
load lang
set $safe 0x44fA8E6f47987339850636F88629646662444217
# Membership, live at judge time
assert @includes!(@safe:owners!($safe) @me) "signer removed"
# Owner-set size and a specific slot
assert @len!(@safe:owners!($safe)) >= 3
assert @at!(@safe:owners!($safe) 0) != 0x0000000000000000000000000000000000000000
  • assert, @safe:threshold!, @safe:isOwner!, @safe:modules!