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

Loading the Program

Create the Program instance

Before utilizing the Anchor methods associated with the Squads program, you'll need to instantiate the program. Ensure that you have properly setup an AnchorProvider, as well.

const provider = new AnchorProvider(connection, wallet);
// the squads-mpl program on both mainnet and devnet have the same address
const squadsProgram = await Program.at("SMPLecH534NA9acpos4G6x7uf3LWbCAwZQE9e8ZekMu", provider);
PreviousAnchor IDLNextCreate a Multisig