> For the complete documentation index, see [llms.txt](https://docs.truebit.io/v1docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.truebit.io/v1docs/getting-started/synchronize-the-ethereum-node.md).

# Synchronize the Ethereum Node

## **Fork from Ethereum Mainnet using Hardhat**

Execute the Ethereum node shell script for your desired environment:

{% code overflow="wrap" %}

```bash
npx hardhat node --network hardhat
```

{% endcode %}

{% hint style="danger" %}
Do not close this terminal until the fork is complete.
{% endhint %}

<figure><img src="/files/EBkW2k3fmMBfzrRy7ICh" alt=""><figcaption><p>Hardhat local Fork</p></figcaption></figure>

## Use Ethereum Mainnet for production purposes.

**Open a new terminal and execute docker container**

```
docker exec -it truebit /bin/bash
```

**Start your forked Ethereum node.**

```bash
bash ./mainnet.sh
```

**Observe the state of your Ethereum node using the Ethereum console.**&#x20;

{% hint style="info" %}
Use `CTRL+B` move between windows in the Ethereum console
{% endhint %}

<figure><img src="/files/QdL9qrhY5A6G0dyRvkYG" alt=""><figcaption><p>Ethereum Console</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.truebit.io/v1docs/getting-started/synchronize-the-ethereum-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.
