# 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="https://1705716299-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNIJ0ssLBn8FjVyBhsqsw%2Fuploads%2F7mkBmwHHOUMBz8qkBZY3%2Fimage.png?alt=media&#x26;token=1c137f7f-6d1a-4006-b97a-82f69706bd6b" 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="https://1705716299-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNIJ0ssLBn8FjVyBhsqsw%2Fuploads%2Fhvnfj5j68j2YZ3lTphVW%2Fimage.png?alt=media&#x26;token=3405f128-3b9d-4700-b92a-8b931a6eb2c8" alt=""><figcaption><p>Ethereum Console</p></figcaption></figure>
