> For the complete documentation index, see [llms.txt](https://docs.squads.so/squads-v3-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.squads.so/squads-v3-docs/development/anchor-idl/transactions/approve-reject-a-transaction.md).

# Approve / Reject a Transaction

Active transactions can be voted on by the multisig key members to either approve or reject the transaction.

To approve a transaction, you can utilize the following:

```
// where member is the wallet signing as a multisig member
const member = wallet.publicKey;

await program.methods.approveTransaction()
          .accounts({
              multisig,
              transaction,
              member
           })
           .rpc();
```

Similarly, in order to reject a transaction, utilize the following:

```
// where member is the wallet signing as a multisig member
const member = wallet.publicKey;

await program.methods.rejectTransaction()
        .accounts({
             multisig,
             transaction,
             member
         })
         .rpc();
```
