Local development network
Instructions on how to run a full local development network
The local development network consists of following services:
Mandala node
Subquery Services
Postgres database
Subquery node
GraphQL engine
Eth Rpc Adapter
Starting the stack
start the whole stack together
You can download or copy + paste this docker compose file, and then
Once you see logs like this, the local development stack is ready.
It's ok to see some error messege in the docker logs, since we don't have transactions in the node yet, so subquery will keep crashing and restarting. Once there are transactions, everything will work normally.
In order to have a clean start after every shutdown of the node, run the following command after the node was shut down:
docker compose down -v
start a light stack
A light stack is a stack without subquery services, it only contains mandala node and eth rpc adapter. It's useful when you want to test some simple transactions locally, but it lacks the ability to fetch some historical logs. (when do I need subquery?)
To start a light stack, first start a local mandala node
Then start an eth rpc adapter
The local development network services
Once the full local development network is up and running, the following services are available:
A local mandala node: ws://localhost:9944
A subquery service: http://localhost:3001
An ETH JSON-RPC service:
Local network substrate chain explorer: Polkadot.js App
You can now setup Metamask on localhost and interact with your local setup.
Try a few of the EVM tutorials to get familiar with the responses each terminal window provides as feedback.
Last updated