> For the complete documentation index, see [llms.txt](https://docs.tylt.money/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tylt.money/tylt-embedded-wallet-service/wallet-management-apis/get-networks-list.md).

# Get Networks List

Retrieves the blockchain networks supported for a token or wallet operation.

### Endpoint

```http
GET /whitelabel/wallet/getNetworksList
```

### Request Headers

```http
x-tlp-apikey: <api-key>
x-tlp-signature: <hmac-signature>
```

### Query Parameters

Provide at least one of the following user identifiers: `endUserEmail`, `endUserId`, or `externalUserId`.

| Field            | Type   |    Required | Description                         |
| ---------------- | ------ | ----------: | ----------------------------------- |
| `endUserEmail`   | String | Conditional | End user’s registered email address |
| `endUserId`      | Number | Conditional | Tylt end-user ID                    |
| `externalUserId` | String | Conditional | Merchant’s own user identifier      |

At least one identifier is required.

### Example Request

```http
GET /whitelabel/wallet/getNetworksList?externalUserId=user-10021
```

Signed query object:

```json
{
  "endUserId": 20001, // Optional: Provide one user identifier only
  "endUserEmail": "joe@example.com", // Optional: Alternative to endUserId and externalUserId
  "externalUserId": "user-10021", // Optional: Alternative to endUserId and endUserEmail
}
```

> The exact token parameter name must be confirmed against the deployed API schema.

### Code Snippet

{% tabs %}
{% tab title="JavaScript (Axios)" %}

```javascript
import crypto from 'crypto';
import axios from 'axios';

const apiKey = 'your-api-key';
const apiSecret = 'your-api-secret';

const queryParams = {
  endUserId: 20001, // Optional: Provide one user identifier only
  endUserEmail: "joe@example.com", // Optional: Alternative to endUserId and externalUserId
  externalUserId: "user-10021", // Optional: Alternative to endUserId and endUserEmail
};

const rawPayload = JSON.stringify(queryParams);
const signature = crypto.createHmac('sha256', apiSecret).update(rawPayload).digest('hex');

const headers = {
    'x-tlp-apikey': apiKey,
    'x-tlp-signature': signature
};

const queryString = new URLSearchParams(queryParams).toString();
axios.get(`https://api.tylt.money/whitelabel/wallet/getNetworksList?${queryString}`, { headers })
    .then(response => console.log(response.data))
    .catch(error => console.error('Error:', error.response ? error.response.data : error.message));
```

{% endtab %}
{% endtabs %}

### Example Response

```json
{
    "msg": "",
    "data": [
      {
        "networkId": 1,
        "networkName": "TRON",
        "networkImg": "https://assets.tylt.money/holdings-icons/TRX.png",
        "networkSymbol": "TRX",
        "networkRegex": "^T[a-zA-Z0-9]{33}$"
      },
      {
        "networkId": 2,
        "networkName": "Binance Smart Chain",
        "networkImg": "https://assets.tylt.money/holdings-icons/BSC.png",
        "networkSymbol": "BSC",
        "networkRegex": "^0x[a-fA-F0-9]{40}$"
      },
      {
        "networkId": 3,
        "networkName": "Ethereum",
        "networkImg": "https://assets.tylt.money/holdings-icons/ETH.png",
        "networkSymbol": "ETH",
        "networkRegex": "^0x[a-fA-F0-9]{40}$"
      },
      {
        "networkId": 4,
        "networkName": "Polygon",
        "networkImg": "https://assets.tylt.money/holdings-icons/MATIC.png",
        "networkSymbol": "MATIC",
        "networkRegex": "^0x[a-fA-F0-9]{40}$"
      }
    ]
  }
```

### Merchant Responsibilities

The selected network must match the destination or sending wallet’s network.

The merchant should clearly display:

* Network name
* Token symbol
* Deposit availability
* Withdrawal availability
* Estimated network fee, where available
* Minimum deposit or withdrawal amount, where applicable

Using an incorrect blockchain network may result in permanent loss of funds.
