require_admin

function require_admin()(source)

Utility function that checks if the signer is admin. Not intended for use in production. If you need admin functionality, e.g. for authorizing certain operations that the users should never be allowed to call, building a different framework for that is strongly recommended, as it will allow multisigs and rotating the admin key.

Can only be called from an operation.

Throws "ADMIN REQUIRED" if the signer is not admin