wallet_getNetwork
Get the network the wallet is currently connected to
Fetch the user's Xverse wallet active networks
import Wallet from 'sats-connect';
async function example() {
const res = await Wallet.request('wallet_getNetwork', null);
if (res.status === 'error') {
console.error(res.error);
return;
}
console.log(res.result);
}β
getNetwork Result
Last updated