# 4. Using Ganache v7

{% hint style="info" %}
Consensys Announces the Sunset of Truffle and Ganache and New HardHat Partnership, [more details](https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github\&utm_medium=referral\&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_).
{% endhint %}

## 1. Open Sandbox

Note: Sandbox functionality is only available after logging in to ChainIDE via GitHub.

<figure><img src="/files/5QEDQp8tYbeGCXIGtisY" alt=""><figcaption></figcaption></figure>

Open Sandbox

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

## 2. Start Ganache&#x20;

Launch a local chain that can be accessed by clients outside of the terminal by entering ganache with parameters:

```
ganache -h 0.0.0.0
```

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

## 3. Port Forwarding&#x20;

To allow other clients to access the launched Ganache via a link, refer to[ ChainIDE - Port Forwarding ](/chainide-english-1/port-forwarding.md)to forward the HTTP 8545 port, and copy its address (for example: [https://sandbox-1e82a87a951241179f98494a6dbb2617-ethereum-8545.uat-sandbox.chainide.com](https://sandbox-1e82a87a951241179f98494a6dbb2617-ethereum-8545.uat-sandbox.chainide.com/)).

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

{% hint style="info" %}
You have successfully launched a Ganache local blockchain. Next, you can connect to this chain through Metamask or deploy contracts using Truffle or Hardhat, with a chain ID of 1337.
{% endhint %}

**Related Links**

* [Ganache Documentation](https://trufflesuite.com/docs/ganache/)
* [Ganache GitHub Repository](https://github.com/trufflesuite/ganache)


---

# 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://chainide.gitbook.io/chainide-english-1/ethereum-ide-1/17.-jovay-ide/4.-using-ganache-v7.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.
