Comment on page
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);