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

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

Last updated 2 years ago