1. Build RPC of Lumoz Chain
Requirements
CPU: 8 core +
RAM: 16 Gb+
Storage: 500 Gb+
Docker
Download docker-compose.yml
curl -L -o ./docker-compose.yml https://download.lumoz.org/lumoz-external-node/docker-run/docker-compose.yml
Download snapshot of Genesis file under the root path of docker-compose.yml
curl -L -o /tmp/genesis.tar https://download.lumoz.org/lumoz-external-node/lumoz-external-node/geth/mainnet/config/genesis.tar && tar -xvf /tmp/genesis.tar -C ./ && rm /tmp/genesis.tar
Start RPC
docker-compose up -d
Check logs
docker logs -f lumoz-mainnet-node
Test
curl http://localhost:9545 \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"eth_blockNumber","params":[],"id":1,"jsonrpc":"2.0"}'
Note:
RPC address(default): device IP+9545
WS address(default): device IP+9546
If IP is 1.2.3.4, the RPC address will be http://1.2.3.4:9545, and the WS address will be WS://1.2.3.4:9546
Customize port
Edit the docker-compose.yml if you want to change the port.
Last updated