> ## 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.

# Unstake Vote

> Low-level instruction to reclaim LP tokens staked for voting

# createUnstakeVoteInstruction

Builds a raw instruction to reclaim LP tokens that were previously staked for voting on a governance proposal. Can only be called after the proposal has been finalized. The original voter receives their staked LP tokens back from the escrow.

## Usage

```typescript theme={null}
import { createUnstakeVoteInstruction } from "@exponent-labs/exponent-sdk/client/vaults";
import { PublicKey } from "@solana/web3.js";
import { TOKEN_PROGRAM_ID } from "@solana/spl-token";

const ix = createUnstakeVoteInstruction({
  voter: voterKeypair.publicKey,
  vault: vaultAddress,
  proposal: proposalAddress,
  voteAccount: voteAccountAddress,
  tokenLpDst: voterLpTokenAccount,
  tokenLpEscrow: proposalLpEscrow,
  mintLp: lpMintAddress,
  tokenProgram: TOKEN_PROGRAM_ID,
});
```

## Accounts

| Name            | Signer | Writable | Description                                   |
| --------------- | ------ | -------- | --------------------------------------------- |
| `voter`         | Yes    | Yes      | The original voter reclaiming their LP tokens |
| `vault`         | No     | No       | Vault account associated with the proposal    |
| `proposal`      | No     | No       | Finalized proposal                            |
| `voteAccount`   | No     | Yes      | Per-voter account tracking their vote         |
| `tokenLpDst`    | No     | Yes      | Voter's LP token account (destination)        |
| `tokenLpEscrow` | No     | Yes      | Escrow account holding staked LP tokens       |
| `mintLp`        | No     | No       | LP token mint                                 |
| `tokenProgram`  | No     | No       | SPL Token program                             |

## Returns

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