Running a Relaychain Node
This guide will walk you through the process of setting up a Relaychain node on the Enjin network.
There are two different ways in which you can a Node, the first one being through Docker, and the second one through a Binary (either precompiled or Built from Source).
You can use the following
docker-compose.yml
file:1
services:
2
relaychain:
3
container_name: relaychain
4
image: enjin/relaychain:latest
5
ports:
6
- 9933:9933
7
- 9944:9944
8
- 9615:9615
9
- 30333:30333
10
- 30334:30334
11
volumes:
12
- /MY/LOCAL/DIRECTORY:/chainstate
13
command: [
14
"--name=enjin-relay-docker",
15
"--ws-external",
16
"--rpc-external",
17
"--rpc-cors=all",
18
"--chain=enjin",
19
"--base-path=/chainstate"
20
]
Simply run the command
docker-compose up -d
to run the container.1
$ ./matrix --name "enjin-relay-docker" --ws-external --rpc-external --chain enjin
Depending on the use case, there are a couple of ways to connect to the node:
- WebSocket Connection:
ws://localhost:9944
- RPC (HTTP) Connection:
http://localhost:9933
The following changes pertain to running an Archive Node.
In order to run an archive node, the following argument needs to be passed to either the binary or added to the command section of the
docker-compose.yml
file:--pruning-archive
This should be appended after line 19 in the
docker-compose.yml
file, or at the end of the Binary execution command.Last modified 22d ago