Squads v3 Docs
  • Welcome to Squads
  • Who we are?
  • Basics
    • What's a Multisig?
    • What's a Squad?
  • Getting Started
    • Create a Squad
  • Navigating Your Squad
    • Dashboard
    • Vault
    • Transactions
    • Developers
      • Programs
      • Token Manager
      • Validators
      • TX Builder
    • Creators
    • Apps
    • Owners and Settings
  • Integrations
    • Staking
      • Stakewiz
      • JitoSOL
      • Lido
      • Marinade
      • SolBlaze
    • Tensor
    • Cardinal
    • Dialect
    • Bonfida
    • Jupiter
    • Coinflow
  • Security and audits
    • Security
    • Security Policy & Bug Bounty
    • Audit reports
  • Frequently Asked Questions
    • General
    • Protocol
    • Costs of using Squads
  • Development
    • PDAs
      • Multisig
      • Transaction
      • Instruction
      • Derivation
    • Authorities
    • Anchor IDL
      • Loading the Program
      • Create a Multisig
      • Transactions
        • Create a Transaction
        • Adding Instructions
        • Activating a Transaction
        • Approve / Reject a Transaction
        • Executing
    • SDK
  • Squads Community
    • Self Custody Society (SCS)
    • Community
Powered by GitBook
On this page
  1. Development
  2. Anchor IDL
  3. Transactions

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();
PreviousActivating a TransactionNextExecuting

Last updated 2 years ago