If your users are trying to get on the Phoenix Blockchain network but have not added the network yet, here is a method to help switch them over when connecting to your dAPP:
const phoenixNetwork = {
chainId: 0x${parseInt(Phoenix.chainId).toString(16)},
chainName: “Phoenix”,
nativeCurrency: {
name: “Phoenix”,
symbol: “PHX”,
decimals: 18
},
rpcUrls: [“https://rpc.phoenixplorer.com/”],
blockExplorerUrls: [“https://phoenixplorer.com/”]
};
useEffect(() => {
if (isMismatched) {
// Prompt their wallet to switch networks
switchNetwork(Phoenix.chainId);