Skip to content

addContractFunctionAccessEntry

Adds a contract method entry to the _contractMethodAccessEntrys array.

Import

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

Usage

import { SessionKeyPermissionsBuilder } from "@account-kit/smart-contracts";
 
const builder = new SessionKeyPermissionsBuilder();
builder.addContractAddressAccessEntry({
  contractAddress: "0x1234",
  methodSelector: "0x45678",
  isOnList: true,
});

Parameters

entry

ContractMethodEntry The contract method entry to be added

Returns

SessionKeyPermissionsBuilder The instance of the class for method chaining