Skip to main content

createSetMarketPausedInstruction

Builds a raw instruction that sets or clears the market paused flag.

Usage

import { createSetMarketPausedInstruction } from "@exponent-labs/exponent-sdk/client/tranching";

const ix = createSetMarketPausedInstruction(
  {
    authority: sentinel.publicKey,
    market: marketAddress,
    adminState,
    eventAuthority,
    program: tranchingProgram,
  },
  {
    paused: true,
  }
);

Accounts

NameTypeSignerWritableDescription
authorityPublicKeyYesNoAdmin or sentinel authority
marketPublicKeyNoYesTranching market account
adminStatePublicKeyNoNoExponent admin state
eventAuthorityPublicKeyNoNoEvent authority PDA
programPublicKeyNoNoExponent Tranching program

Args

NameTypeDescription
pausedbooltrue to pause the market, false to unpause

Returns

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