SessionKeyPermissionsBuilder
Defined in: account-kit/smart-contracts/dist/types/src/msca/plugins/session-key/permissions.d.ts:37
A builder for creating the hex-encoded data for updating session key permissions.
Constructors
Constructor
Returns
SessionKeyPermissionsBuilder
Methods
addContractAddressAccessEntry()
Defined in: account-kit/smart-contracts/dist/types/src/msca/plugins/session-key/permissions.d.ts:79
Adds a contract access entry to the internal list of contract address access entries.
Example
Parameters
Returns
this
the instance of the current class for chaining
addContractFunctionAccessEntry()
Defined in: account-kit/smart-contracts/dist/types/src/msca/plugins/session-key/permissions.d.ts:98
Adds a contract method entry to the _contractMethodAccessEntrys array.
Example
Parameters
Returns
this
The instance of the class for method chaining
addErc20TokenSpendLimit()
Defined in: account-kit/smart-contracts/dist/types/src/msca/plugins/session-key/permissions.d.ts:153
Adds an ERC20 token spend limit to the list of limits and returns the updated object.
Example
Parameters
Returns
this
The updated object with the new ERC20 token spend limit
encode()
Defined in: account-kit/smart-contracts/dist/types/src/msca/plugins/session-key/permissions.d.ts:200
Encodes various function calls into an array of hexadecimal strings based on the provided permissions and limits.
Example
Returns
`0x${string}`[]
An array of encoded hexadecimal strings representing the function calls for setting access control, permissions, and limits.
setContractAccessControlType()
Defined in: account-kit/smart-contracts/dist/types/src/msca/plugins/session-key/permissions.d.ts:60
Sets the access control type for the contract and returns the current instance for method chaining.
Example
Parameters
Returns
this
The current instance for method chaining
setGasSpendLimit()
Defined in: account-kit/smart-contracts/dist/types/src/msca/plugins/session-key/permissions.d.ts:170
Sets the gas spend limit and returns the current instance for method chaining.
Example
Parameters
Returns
this
The current instance for chaining
setNativeTokenSpendLimit()
Defined in: account-kit/smart-contracts/dist/types/src/msca/plugins/session-key/permissions.d.ts:134
Sets the native token spend limit and returns the instance for chaining.
Example
Parameters
Returns
this
The instance for chaining
setRequiredPaymaster()
Defined in: account-kit/smart-contracts/dist/types/src/msca/plugins/session-key/permissions.d.ts:185
Sets the required paymaster address.
Example
Parameters
Returns
this
the current instance for method chaining
setTimeRange()
Defined in: account-kit/smart-contracts/dist/types/src/msca/plugins/session-key/permissions.d.ts:116
Sets the time range for an object and returns the object itself for chaining.
Example
Parameters
Returns
this
The current object for method chaining