Last updated 1 year ago
Get network of current account
async function getNetwork(): string
the network. livenet and testnet
livenet
testnet
const provider = (window.$onekey && window.$onekey.btc) || window.unisat; const network = async provider.getNetwork()