Skip to content

encode

Encodes various function calls into an array of hexadecimal strings based on the provided permissions and limits.

Import

import { SessionKeyPermissionsBuilder } from "@account-kit/smart-contracts";

Usage

import { SessionKeyPermissionsBuilder } from "@account-kit/smart-contracts";
 
const builder = new SessionKeyPermissionsBuilder();
builder.setRequiredPaymaster("0x1234");
const encoded = builder.encode();

Returns

Hex[] An array of encoded hexadecimal strings representing the function calls for setting access control, permissions, and limits.