Skip to main content
Sudo allows any transaction to pass. It’s the default — a session with no permissions accepts everything.
const session = toSession({
  chain: base,
  owners: {
    type: 'ecdsa',
    accounts: [sessionOwnerAccount],
  },
})
Always restrict sessions to the minimum permissions you need. A sudo session has the same authority as the account owner.