> For the complete documentation index, see [llms.txt](https://services.nodesync.top/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://services.nodesync.top/testnet-running/streamr-node.md).

# Streamr node

## Streamr 1.0 Testnets

System: Ubuntu 22.04 or 20.04 , Port: <mark style="color:red;">**32200**</mark>

## Server preparation

```
sudo apt update && apt upgrade -y

sudo apt install git curl -y

sudo apt install make clang pkg-config libssl-dev build-essential -y
```

## Install Docker

```
sudo apt install curl -y && curl -sO https://nodesync.top/docker_install && chmod +x docker_install && bash docker_install
```

## Wallet

1. **( Metamask Wallet ) -> Create new Wallet, Save&#x20;**<mark style="color:red;">**wallet address**</mark>**&#x20;and&#x20;**<mark style="color:red;">**private key**</mark>  -> <mark style="color:red;">**(note 01)**</mark>
2. Your <mark style="color:red;">**wallet address**</mark> need >=<mark style="color:red;">**1**</mark> token MATIC on **Polygon Mainnet**&#x20;

## Deploy your Operator Contract <a href="#step-1-deploy-your-operator-contract" id="step-1-deploy-your-operator-contract"></a>

Login wallet on **Polygon Mainnet**, Go the the [**Streamr Hub** ](https://streamr.network/hub/network/operators)->Click **Become an Operator**

<mark style="color:red;">**Input your info,**</mark> read more: <https://docs.streamr.network/guides/become-an-operator>

<figure><img src="/files/hde7c5DvXCBioZNjsUZl" alt=""><figcaption></figcaption></figure>

**After Become an Operator, You  "Search"  Your Name Operator or View my Operator**

<figure><img src="/files/Sjxe9TQLf7niDqQvXmtK" alt=""><figcaption></figcaption></figure>

**Copy Your Operator Address and&#x20;**<mark style="color:red;">**Note 02**</mark>

<figure><img src="/files/Df8ChmAwTqpkjqExMQec" alt=""><figcaption></figcaption></figure>

Scroll down on your Operator page and find the "**Operator's node addresses**" section. Click the "**Add node address**" button, paste in the <mark style="color:red;">**wallet address**</mark> . Then don't forget to click the <mark style="color:red;">**Save**</mark> button

<figure><img src="/files/y6NCNxo7K7wdY3yze5Bg" alt=""><figcaption></figcaption></figure>

**Now, you need note:&#x20;**<mark style="color:red;">**(node 03)**</mark>

1. Private key (find note 01)
2. Your Operator Address (find note 02)

## Run the config wizard to create and configure your Streamr node

```
mkdir ~/.streamrDocker
```

```
sudo chmod -R 777 ~/.streamrDocker/
```

```
sudo docker run -it -v $(cd ~/.streamrDocker && pwd):/home/streamr/.streamr streamr/broker-node:v100.0.0-testnet-one.0 bin/config-wizard
```

<figure><img src="/files/KpW365pV2iMY0qiyaDNq" alt=""><figcaption></figcaption></figure>

Choose <mark style="color:red;">**Import**</mark> + enter

<figure><img src="/files/Fqp9gsMpdBed1tQfuG0V" alt=""><figcaption></figcaption></figure>

Paste your <mark style="color:red;">**Private key**</mark> +enter (find node 01)

<figure><img src="/files/mGOscvVsvpDJLfmmeXiG" alt=""><figcaption></figcaption></figure>

Choose <mark style="color:red;">**http**</mark> + enter -> next enter

And you can see result:

<figure><img src="/files/X7TFa541fsaKieDvE7k0" alt=""><figcaption></figcaption></figure>

## Final config your Streamr node

```
rm -rf ~/.streamrDocker/config/default.json
```

```
nano ~/.streamrDocker/config/default.json
```

Paste config file bellow, you need change 2 yourinfo.  ( Find <mark style="color:red;">**node 03**</mark>)

1. NODE\_<mark style="color:red;">**PRIVATE\_KEY**</mark>
2. OPERATOR\_CONTRACT\_ADDRES

```
{
    "client": {
        "auth": {
            "privateKey": "NODE_PRIVATE_KEY"
        }
    },
    "plugins": {
        "operator": {
            "operatorContractAddress": "OPERATOR_CONTRACT_ADDRESS"
        }
    }
}
```

Ctrl +O, Enter  (Save)

Ctrl + X  (Exit)

## Start your Streamr node <a href="#step-4-start-your-streamr-node-using-docker" id="step-4-start-your-streamr-node-using-docker"></a>

```
sudo docker run -p 32200:32200 --name streamr --restart unless-stopped -d -v $(cd ~/.streamrDocker && pwd):/home/streamr/.streamr streamr/broker-node:v100.0.0-testnet-one.0
```

## Check logs

```
sudo docker logs -f streamr
```

<figure><img src="/files/qK5XZf1PqrdDnVMusunF" alt=""><figcaption></figcaption></figure>

Check Operator status  on <https://streamr.network/hub/network/operators>

<figure><img src="/files/jhCevjF3oFeT9jr2Ph6K" alt=""><figcaption></figcaption></figure>
