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();