Last updated 11 months ago
Get network of current account
async function switchNetwork(network: string): void
the network. livenet and testnet
livenet
testnet
const provider = (window.$onekey && window.$onekey.btc) || window.unisat; async provider.switchNetwork("livenet");