Ganache Proxy Server

I am following this tutorial https://docs.moralis.io/guides/deploy-and-track-erc20-events#connecting-moralis-to-your-local-ganache-instance but when I get to the point where I am supposed to connect Moralis to my local ganache instance, I canā€™t continue because my moralis server does not have a ā€œGanache Proxy Serverā€ tabā€¦ Halp?

Thanks in advance :slight_smile:

1 Like

It has been renamed to ā€œDevchain Proxy Serverā€, can you see that?

In that tab you should see 2 configs, one for hardhat and one for Ganache. You can copy the one thatā€™s right below ā€œGanacheā€.

When I open my moralis server details, I only see ā€œServer Detailsā€ and ā€œEmail Configurationā€ and no reference to Devchain

What is your server version? Can you click update/restart button to make sure youā€™re using the latest version? (0.0.189)

It was 0.0.187, I updated to 0.0.189 and refreshed the page but still no proxy server config tab :thinking:

Hmm, is it possible that the server is setup for the mainnet or a testnet? Can you try creating a new server and select Local Dev Chain.

1 Like

Ah I see - In the first page of the tutorial it says we need to start a server on the Mainet net:

https://docs.moralis.io/guides/build-a-simple-dapp-in-3-minutes

Thank you! :slight_smile:

1 Like

Glad that it works. And thanks for the feedback.
Weā€™ll see if we can make this more clearer :slight_smile:

1 Like

Hi Erno, maybe you can help me out. I use Ganache locally for testingā€¦ What is this Ganache proxy server about? Why would I need it ? Thanks a lot ! I am a bit confused what this Ganache proxy server settings is aboutā€¦
Thanks a lot in advance!

1 Like

To interact with your local ganache, you need to establish a connection with the server and the ganache. Otherwise, you wonā€™t be able to track real-time data with moralis for example. If you are having troubles setting it up, you can also try connecting it using moralis-admin-cli, which you can learn more about at the bottom of the page at https://docs.moralis.io/guides/setting-up-ganache

Thanks, I had this problem too. Is there an option to change the Server from Main net to localDev chain after its been created?

Hey @Jargo!
Unfortunately you can not change the network of a server after it is created.
Doing so would corrupt any existing data in the database because the data is within the context of a specific network.
The best thing to do at the moment would be to create a new server and just copy the cloud functions over to that one.

How secure is this proxy server? Are there alternatives that donā€™t require us to download from an unknown github account?

I donā€™t know of another alternative, you need that proxy only to sync data from local devchain in Moralis Server db, you could use a testnet instead of local Ganache if you donā€™t want to use that proxy

Thanks cryptokid! Your answers are much appreciated.