Safe Objects

Safe Objects are objects that can be exposed at the realm top level while still keeping the write access to their memory limited.

Safe Objects allow only authorized users (like admins) can modify their internal state, even if they are exposed at the realm top level.

A prime example of a commonly used safe object is the Ownable object, found under in p/demo/ownable.

To call methods on exposed safe objects, users need to use MsgRun.


r/docs/safeobjects.ExposedSafeObject values:

  • Message: This message can only be set by the admin.
  • Admin: g125em6arxsnj49vx35f0n0z34putv5ty3376fg5