Overview
Policies add additional authorization logic on top of signers - threshold multisig, spending limits, weighted voting, etc. Access the manager viakit.policies.
Methods
add()
Attach a policy contract to a context rule.
remove()
Detach a policy from a context rule.
Policy Types
The SDK ships with builders for all supported policy types:| Builder | Policy | Description |
|---|---|---|
createThresholdParams(m) | Threshold | M-of-N multisig |
createWeightedThresholdParams(threshold, weights) | Weighted threshold | Weighted voting |
createSpendingLimitParams(token, limit, period) | Spending limit | Time-limited per-token cap |