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

Sudo Policy

Archived version

You are viewing @zerodev/sdk v5.3.x documentation. View the latest documentation.

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