> For the complete documentation index, see [llms.txt](https://docs.fuelet.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fuelet.app/wallet-api/getting-current-network.md).

# Getting current network

To request the network the user is connected to, use the `network` method

{% tabs %}
{% tab title="TypeScript" %}

```javascript
const networkInfo = await fuel.network();
console.log("Network ", networkInfo);
```

{% endtab %}
{% endtabs %}

It returns a promise with an object containing the `url` field, which has a GraphQL network endpoint, for example:

```javascript
{url: "https://beta-5.fuel.network/graphql"}
```
