ModuleSDK
Modules
Policies
getUsageLimitPolicy

getUsageLimitPolicy

Get the usage limits policy to use when creating a new session. The usage limit policy is used to restrict a sesion to only be able to be used a certain number of times.

Usage

const usageLimitPolicy = getUsageLimitPolicy({
  limit: BigInt(100),
})

Parameters

limit

  • Type: bigint

The maximum number of times the session can be used.

Returns

policy

The spending limits policy.