How to call System api in the Motoko

Motoko does not allow direct access to the System API, as that would easily break all safety properties of Motoko. Instead, it wraps the Systems low-level features in (hopefully) more convenient and safe higher level abstractions.

For example, it manages stable memory automatically for you, via the stable variables.

There are plans to offer more manual access to stable memory, though.

3 Likes