> ## Documentation Index
> Fetch the complete documentation index at: https://docs.exponent.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Market Paused

> Low-level instruction to pause or unpause a tranching market

# createSetMarketPausedInstruction

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

## Usage

```typescript theme={null}
import { createSetMarketPausedInstruction } from "@exponent-labs/exponent-sdk/client/tranching";

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

## Accounts

| Name             | Type        | Signer | Writable | Description                 |
| ---------------- | ----------- | ------ | -------- | --------------------------- |
| `authority`      | `PublicKey` | Yes    | No       | Admin or sentinel authority |
| `market`         | `PublicKey` | No     | Yes      | Tranching market account    |
| `adminState`     | `PublicKey` | No     | No       | Exponent admin state        |
| `eventAuthority` | `PublicKey` | No     | No       | Event authority PDA         |
| `program`        | `PublicKey` | No     | No       | Exponent Tranching program  |

## Args

| Name     | Type   | Description                                    |
| -------- | ------ | ---------------------------------------------- |
| `paused` | `bool` | `true` to pause the market, `false` to unpause |

## Returns

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