-
Notifications
You must be signed in to change notification settings - Fork 46
Local Setup
Prabal Banerjee edited this page May 18, 2021
·
1 revision
- Get rust and other dependencies by following the instructions.
- Clone the
da-poc
branch of our forked Substrate repo.git clone https://github.com/maticnetwork/substrate.git git checkout da-poc
- Compile the substrate code. (Warning: This might take some time!)
cd bin/node-template/node cargo build --release
- Run a local dev node with temporary datastore.
You should see a chain running with blocks getting generated. If you want to host a private network, please follow the substrate docs.
cd ../../.. ./target/release/node-template --dev --tmp
-
Download and install prerequisites like
node
andnpm
. (We tested with npm version7.0.15
and node version15.4.0
) - Fetch the code from the repo
git clone https://github.com/maticnetwork/da-light-client.git
- Follow the repo README to setup and run the light client.
- Visit our explorer (or host you own from this repo)
- On the sidebar, input the custom DA node address under Development (default
ws://127.0.0.1:9944
) and custom light client address (defaulthttp://127.0.0.1:7000/v1/json-rpc
).
You can now use your local setup through both the explorer or directly. Please refer to this doc for how to use our DA chain.