⚠️ Deprecation Notice
ModuleSDK was developed by Rhinestone and is no longer actively supported. For new projects, we recommend using the Rhinestone SDK instead.
getValueLimitPolicy
Get the value limit policy to use when creating a new session. The value limit policy can be used to enforce that only a certain amount of native value can be spent. For ERC-20 limits, use the spending limit policy.
Usage
const valueLimitPolicy = getValueLimitPolicy({
limit: BigInt(100),
})Parameters
limit
- Type:
bigint
The maximum amount of native value that can be spent.
Returns
policy
- Type:
Policy
The value limit policy.