# Add Node to Tres Leches Chain

Clone the following genesis file from our github repro.

You can clone it by running:

<pre><code>//Clone the repro
<strong>git clone https://github.com/treslecheschain/Blockchain/
</strong>
</code></pre>

{% embed url="<https://github.com/treslecheschain/Blockchain/tree/main/Configuration/Genesis>" %}

```
// Cd ~Blockchain
mkdir /usr/local/node
cp -r Configuration/Genesis/Mainet/treslechesmainnet.json /usr/local/node/treslechesmainnet.json
cd /usr/local/node
geth init --datadir data treslechesmainnet.json
cp -r ~/Blockchain/Configuration/Nodes/TrustedNodes/trusted-nodes.json /usr/local/node/data/trusted-nodes.json
cp -r ~/Blockchain/Configuration/Nodes/StaticNodes/static-nodes.json /usr/local/node/data/static-nodes.json

```

After you have configure the node, you need to run the node. We recommend the following commandline to get your node running.

```
// geth --networkid 6066 --datadir data --identity "External Miner" --bootnodes enode://333de758402827269778b4a96f675b3d207ddb4b7fdb2a60d505d7d10d5eac564a0aa2b6cded48bbbaf7328092b81eef293c182a04e302b4b0dd01285a324b60@147.182.143.50:0?discport=30301  --port 30306 --miner.threads 1 --miner.etherbase=0x000000000000000000000000000000000000dEaD --syncmode full --http --http.vhosts "*" --http.corsdomain "*" --http.port 8548 --cache 8192  --ws.port 8549 --http.api debug,net,eth,web3,txpool --ws.api "eth,net,web3,network,debug,txpool"  --authrpc.port 8550  console

```

You have now onboarded your now into our chain, to make it official create a pull request here.

{% embed url="<https://github.com/treslecheschain/Blockchain/blob/main/Configuration/Nodes/ExternalNodes/static-nodes.json>" %}
Static Nodes
{% endembed %}

Add your enode following the fomart of the json file and we will then commit and update the mainnetserver on the next maintenance cycle.


---

# 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.treschain.io/our-blockchain/blockchain/nodes/add-node-to-tres-leches-chain.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.
