setContractAccessControlType

Sets the access control type for the contract and returns the current instance for method chaining.

Import

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

Usage

1import { SessionKeyPermissionsBuilder } from "@account-kit/smart-contracts";
2
3const builder = new SessionKeyPermissionsBuilder();
4builder.setContractAccessControlType(SessionKeyAccessListType.ALLOWLIST);

Parameters

aclType

SessionKeyAccessListType The access control type for the session key

Returns

SessionKeyPermissionsBuilder The current instance for method chaining