# Switch Network

URL: https://docs.blux.cc/javascript/core/switchNetwork

Switch the active network in your Blux app at runtime.

The `switchNetwork` function switches the app to a different network. The target network must be included in the `networks` array defined in `createConfig`.

## Usage
```typescript

core.switchNetwork(core.networks.testnet);
```