# 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"}
```
