getNetwork
Get network of current account
Method
async function getNetwork(): stringResponse
the network. livenet and testnet
Example
const provider = (window.$onekey && window.$onekey.btc) || window.unisat;
const network = async provider.getNetwork()Demo
Last updated
Was this helpful?