# Loading the Program

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 %}
