> For the complete documentation index, see [llms.txt](https://docs.squads.so/squads-v3-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.squads.so/squads-v3-docs/development/anchor-idl/loading-the-program.md).

# 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.

{% code overflow="wrap" %}

```
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);
```

{% endcode %}
