Permissions (Session Keys)Policies
For the complete documentation index, see llms.txt. This page is also available as markdown.

Sudo Policy

The sudo policy gives full permission to the signer.

The signer will be able to send any UserOps and sign any messages.

API

import { toSudoPolicy } from "@zerodev/permissions/policies"

const sudoPolicy = toSudoPolicy({})

const validator = toPermissionValidator(publicClient, {
  entryPoint,
  kernelVersion,
  signer: someSigner,
  policies: [
    sudoPolicy,
    // ...other policies
  ],
})

On this page