Skip to main content

createAddPolicyInstruction

Builds a raw instruction to add a Squads instruction constraint policy to the vault. Policies define what strategy interactions the vault’s Squads smart account is allowed to execute, gating which programs and instructions can be called. Requires the manager role.

Usage

Accounts

Args

Returns

TransactionInstruction — a transaction instruction ready to be added to a transaction.