> For the complete documentation index, see [llms.txt](https://tutorial.neoline.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tutorial.neoline.io/reference/neo3-provider-api-legacy/common-events/network_changed.md).

# NETWORK\_CHANGED

On a NETWORK\_CHANGED event, the user has changed the network their provider wallet is connected to. The event will return the updated network details.

<table><thead><tr><th width="337">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><code>networks: string[]</code></td><td>A list of all networks which this wallet provider allows access to</td></tr><tr><td><code>chainId:</code> <a href="http://localhost:8080/dapi#getBalance-BalanceRequest"><img src="http://localhost:8080/assets/images/info.svg" alt="i"></a><code>number</code></td><td>chainId the wallet is currently set to</td></tr><tr><td><code>defaultNetwork: string</code></td><td>Network the wallet is currently set to</td></tr></tbody></table>

## Example

```js
neoline.addEventListener(neoline.EVENT.NETWORK_CHANGED, (result) => {
    console.log('network:', result);
});
/* Another */
window.addEventListener('NEOLine.NEO.EVENT.NETWORK_CHANGED', (result) => {
    console.log('network:', result.detail);
});
```
