BluxBlux

Switch Network

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

import { core } from "@bluxcc/core";

core.switchNetwork(core.networks.testnet);

On this page