# Switching Network

#### Stop the algorand service

{% code overflow="wrap" %}

```bash
sudo systemctl stop algorand
```

{% endcode %}

#### Go to directory

{% code overflow="wrap" %}

```bash
cd /var/lib/algorand/genesis/mainnet
```

{% endcode %}

#### Copy the mainnet genesis

{% code overflow="wrap" %}

```bash
sudo cp genesis.json /var/lib/algorand/
```

{% endcode %}

## Start Node

Start the node to make sure you're already switched in mainnet.

{% code overflow="wrap" %}

```bash
sudo systemctl start algorand
```

{% endcode %}

Check your node after start the service.

{% code overflow="wrap" %}

```bash
goal node status -d /var/lib/algorand
```

{% endcode %}

Here is the result if you're already set up to testnet.

<figure><img src="/files/zaghdF9Bf1oL5GBYNfD4" alt=""><figcaption><p>example screenshot from testnet</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.strnan.top/mainnet/algorand/switching-network.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
