# Testnet

## Introduction

The Demex testnets allow application developers to test and develop their applications without incurring any real-world cost. It also provides operators intending to run a validator with a risk-free environment to practice installing and running their nodes.

There are several active testnets that run concurrently. The primary testnet (`carbon-testnet-42069`) should be used for most purposes.

{% hint style="info" %}
Please note that testnets may be reset or deprecated periodically.
{% endhint %}

## Setting Up

Setting up a new node to join a testnet is quick and easy. The following GitHub repository provides a detailed explanation on how to get started:

{% embed url="<https://github.com/Switcheo/carbon-testnets>" %}

## Getting Testnet Tokens

Before you can begin developing on Demex, you'll need to have some testnet $SWTH tokens.&#x20;

You can obtain them from the faucet [here](https://test-faucet.carbon.network/#/default/post_).

**Step 1**: Click on the `default POST /` section to expand it:&#x20;

<figure><img src="https://3548599389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MO-XZjWplLUJPNs07G8%2Fuploads%2FweFSxjmhGBOW3oeeQVYl%2Fimage.png?alt=media&#x26;token=e8d0c5ed-b4ac-460e-96a1-8232c0a0df0b" alt="" width="563"><figcaption></figcaption></figure>

**Step 2:** Once expanded click on the "**Try it out"** button.

<figure><img src="https://3548599389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MO-XZjWplLUJPNs07G8%2Fuploads%2FBuI7KqGBXyolqC7q9rGj%2Fimage.png?alt=media&#x26;token=42deb0b4-1e26-4194-bc03-308473bff66e" alt="" width="563"><figcaption></figcaption></figure>

**Step 3**: In the **Edit Value** section of the `body` field, change both the `address` and `coins` parameter of the request to your `tswth` address and required token (max 10,000 SWTH `1000000000000swth`).

> Example: `{ "address": "tswth164wzv8ug9g09jhsqhwy9gm04cwplhd6swk3kdv", "coins": [ "10000000000swth" ] }`

<figure><img src="https://3548599389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MO-XZjWplLUJPNs07G8%2Fuploads%2FEZ19VidLHea8uZTFh5nr%2FScreenshot%202023-09-11%20at%2012.56.42%20PM.png?alt=media&#x26;token=7826af6b-a276-47e3-b15c-08c489202e77" alt=""><figcaption></figcaption></figure>

**Step 4**: Hit the **Execute** button. You should receive testnet tokens at your address momentarily.

{% hint style="success" %}
If you encounter any issues, do reach out to the community and devs on [Telegram](https://t.me/demex_community) or [Discord](https://discord.gg/SPh62Hf)!
{% endhint %}
