Skip to main content

createCancelProposalInstruction

Builds a raw instruction to cancel an active governance proposal before it is executed. Only callable by the manager (or Exponent sentinel). This immediately transitions the proposal to a cancelled state, preventing any further voting or execution.

Usage

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

const ix = createCancelProposalInstruction({
  authority: wallet.publicKey, // manager or Exponent sentinel
  vault: vaultAddress,
  proposal: proposalAddress,
});

Accounts

NameSignerWritableDescription
authorityYesNoManager (or Exponent sentinel) authority
vaultNoNoVault account associated with the proposal
proposalNoYesActive proposal to cancel

Returns

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