Setup RPC
Manually setting up the RPC server can be a challenging task, but fortunately, we can use Docker to simplify the process.
Install Docker
- Linux
- Windows
apt update
apt install -y docker.io
curl -L "https://github.com/docker/compose/releases/download/v2.26.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
1. Download and install the docker desktop at https://www.docker.com/products/docker-desktop.
2. Launch Docker Desktop from Start Menu.
3. Wait until it shows Docker is running.
Docker Compose File
Download the docker-compose.yaml
and adjust QUBIC_NODES_QUBIC_PEER_LIST
variable:
Start The Server
docker-compose up -d
Example output:
root@31217:~/core-docker# docker-compose up -d
[+] Running 8/8
✔ Container mongo-db Running 0.0s
✔ Container qubic-nodes Healthy 1.7s
✔ Container qubic-archiver Started 0.0s
✔ Container qubic-http Started 0.0s
✔ Container stats-processor Started 0.0s
✔ Container traefik Started 0.0s
✔ Container qubic-events Started 0.0s
✔ Container stats-api Started 0.0s
Your RPC is running at IP:8000
, See RPC Docs for more details.
Let's test if our RPC is running by make a GET request to http://IP:8000/v1/tick-info
, Example output
{
"tickInfo": {
"tick": 18480136,
"duration": 0,
"epoch": 170,
"initialTick": 18480000
}
}
References
https://github.com/KavataK/QubicNetworkDeploymentGuide