Skip to main content

Documentation Index

Fetch the complete documentation index at: https://v2-docs.exponent.finance/llms.txt

Use this file to discover all available pages before exploring further.

createSentinelSetVaultFlagsInstruction

Builds a raw instruction to set or clear vault status flags that block specific operation categories. Only callable by the sentinel role. Used for emergency controls such as pausing deposits, withdrawals, or strategy execution when a risk event is detected.

Usage

import { createSentinelSetVaultFlagsInstruction } from "@exponent-labs/exponent-sdk/client/vaults";
import { PublicKey } from "@solana/web3.js";

const ix = createSentinelSetVaultFlagsInstruction(
  {
    sentinel: wallet.publicKey,
    vault: vaultAddress,
  },
  {
    action: { setFlag: 0x01 },
  }
);

Accounts

NameSignerWritableDescription
sentinelYesNoThe vault sentinel authority
vaultNoYesThe Strategy Vault account

Args

NameTypeDescription
actionVaultFlagActionFlag action to apply: { setFlag: u8 }, { clearFlag: u8 }, or { setAllFlags: u8 }

Returns

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