# wallet\_getNetwork

## Fetch the user's Xverse wallet active networks

Your app can fetch the networks that the user's wallet is currently connected to, using `wallet_getNetwork`.&#x20;

The app must have first [connected to the wallet](https://docs.xverse.app/sats-connect/connecting-to-the-wallet/connect-to-xverse-wallet) and obtained [account read permissions.](https://docs.xverse.app/sats-connect/xverse-wallet-permissions)&#x20;

```typescript
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);
}
```

## :white\_check\_mark: getNetwork Result&#x20;

The response contains network information for each of the wallet's supported chains:

An example response:

```json
{
  "bitcoin": {
    "name": "Mainnet"
  },
  "stacks": {
    "name": "Mainnet"
  },
  "spark": {
    "name": "Mainnet"
  },
  "starknet": {
    "name": "Mainnet"
  },
}
```
