# Setting up a t4l3nt node

{% hint style="danger" %}

### It is very important that you never share your secret keys with anyone. A staff member will never ask you for your secret keys or any other sensitive information.

{% endhint %}

#### Install Docker

[Installation on Ubuntu](https://docs.docker.com/engine/install/ubuntu/)

[Installation on MacOS](https://docs.docker.com/desktop/mac/install/)

#### Run docker full node

```shell
docker run -d \
    -p 8733:8733 \
    -p 9733:9733 \
    --name t4l3nt-node \
    -v tlnt-data:/home/tlnt \
    t4l3nt/t4l3nt:latest
```

Full nodes will take several days to sync. See snapshots page to import a snapshot and drastically speed up the syncing process.

#### Run docker for a rolling node (only syncs recent cycles)

`docker run -d -p 8733:8733 -p 9733:9733 -v tlnt-data:/home/tlnt t4l3nt/t4l3nt:v12-tlnt-rolling`

Rolling node will sync quickly and takes far less disk space.&#x20;

{% hint style="info" %}
For running a full node we run the container in background using **-d** flag. Another option would be to run the container in interactive mode using the **-it** flag. You could then also detach your screen using `tmux`/`screen`.\
\
The name of the container is set to `t4l3nt-node` but this can be changed or removed.
{% endhint %}

If you experience errors with the provided Docker image you try to follow the instructions in [build-the-docker-image-locally](https://decentralized-pictures-foundatio.gitbook.io/dcp-docs-v0.0.1/t4l3nt-net/blockchain/setting-up-a-t4l3nt-node/build-the-docker-image-locally "mention")

#### Start a bash session inside the container

```bash
docker exec -it t4l3nt-node bash
```

#### Inside the container, create a key pair for your node producer wallet

```shell
tlnt-client gen keys producer
```

### Remember to never share your secret keys or sensitive information with anyone.

**MAKE SURE YOU BACK UP YOUR KEY**&#x20;

you can view your private key with

`cat ~/.tlnt-client/secret_keys` (from inside the node bash session)

Copy your keys and save them somewhere securely. Write it down or save it in an encrypted disk with AES256 or better with a long complex password. Don't forget it. Back it up.

#### Get your public address and deposit FILMCredits

```shell
tlnt-client list known addresses
```

At this point, you are ready to start staking but you need to get some FILMCredits. [Contact us](https://app.gitbook.com/u/4ZrAYSlZIzfxptQ2ERVspj9mGrM2) with your public address so we can send you some FILM (for alphanet). For betanet, purchase your Miner Pack at app.decentralized.pictures.

#### Fully sync your node with the network

```
tlnt-client bootstrapped
```

#### Once the node is bootstrapped you can register your node as a producer

```
tlnt-client register key producer as delegate
```

Restart your node once it is bootstrapped and you've added yourself as a delegate.

```
supervisorctl restart all
```

You need at least 1 FILMReel (1000 FILMCredits) in order to stake in T4L3NT.

Congrats! You are now staking your balance on the network :tada:

#### Check peers list

`tlnt-admin-client p2p stat`

#### Check logs

`cat /var/log/supervisor/tlnt-node.log`

`cat /var/log/supervisor/endorser.log`

`cat /var/log/supervisor/accuser.log`

Make sure all are bootstrapped.

##


---

# 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://decentralized-pictures-foundatio.gitbook.io/dcp-docs-v0.0.1/t4l3nt-net/blockchain/setting-up-a-t4l3nt-node.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.
