Tooling
Module SDK
Modules
Policies
getUsageLimitPolicy

⚠️ Deprecation Notice

ModuleSDK was developed by Rhinestone and is no longer actively supported. For new projects, we recommend using the Rhinestone SDK instead.

Rhinestone SDK Documentation (opens in a new tab)

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.