Squads Docs
Squads Legacy (v3)
Squads Legacy (v3)
  • Getting Started
    • What's a Squad?
    • 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
    • Swap
    • Tensor
    • Dialect
    • Bonfida
    • Coinflow
  • Frequently Asked Questions
    • General
    • 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
Powered by GitBook
On this page
  1. Development
  2. Anchor IDL
  3. Transactions

Activating a Transaction

In order for the mulltisig to approve or reject a transaction, the transaction must be activated by switching the status to "Active". Only the creator of a transaction can change the state to Active, and once activated it is no longer possible to change instruction data attached to the transaction.

  // the member/creator
  const creator = wallet.publicKey;
  
  // acitvate the tx
  await program.methods.activateTransaction()
           .accounts({
                multisig,
                transaction,
                creator
           })
           .rpc();
PreviousAdding InstructionsNextApprove / Reject a Transaction