createRemovePolicyInstruction
Builds a raw instruction to remove a Squads instruction constraint policy from the vault. Once removed, the vault’s smart account will no longer be able to execute transactions matching the removed policy. Requires the manager role.Usage
Accounts
| Name | Signer | Writable | Description |
|---|---|---|---|
payer | Yes | Yes | Fee payer for the transaction |
vault | No | No | The Strategy Vault account |
manager | Yes | No | The vault manager authority |
squadsSettings | No | Yes | Squads settings account |
squadsSettingsTransaction | No | Yes | Squads settings transaction PDA |
squadsProposal | No | Yes | Squads proposal PDA |
squadsPolicy | No | Yes | Squads policy PDA to remove |
squadsProgram | No | No | Squads v4 program |
systemProgram | No | No | System program |
Returns
TransactionInstruction — a transaction instruction ready to be added to a transaction.