Node Commands
The following sections explain various parameters required for different use-cases of the Astar node.
For more information, consult the embedded help page:
astar-collator --help
Collator
Binary service file
- Astar
- Shiden
- Shibuya
[Unit]
Description=Astar Collator
[Service]
User=astar
Group=astar
ExecStart=/usr/local/bin/astar-collator \
--state-pruning 1000 \
--blocks-pruning 1000 \
--collator \
--name {COLLATOR_NAME} \
--chain astar \
--base-path /var/lib/astar \
--telemetry-url 'wss://telemetry.polkadot.io/submit/0' \
-- \
--sync warp
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
[Unit]
Description=Shiden Collator
[Service]
User=astar
Group=astar
ExecStart=/usr/local/bin/astar-collator \
--state-pruning 1000 \
--blocks-pruning 1000 \
--collator \
--name {COLLATOR_NAME} \
--chain shiden \
--base-path /var/lib/astar \
--telemetry-url 'wss://telemetry.polkadot.io/submit/0' \
-- \
--sync warp
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
[Unit]
Description=Shibuya Collator
[Service]
User=astar
Group=astar
ExecStart=/usr/local/bin/astar-collator \
--state-pruning 1000 \
--blocks-pruning 1000 \
--collator \
--name {COLLATOR_NAME} \
--chain shibuya \
--base-path /var/lib/astar \
--telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' \
-- \
--sync warp
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
Docker
- Astar
- Shiden
- Shibuya
docker run -d \
--name astar-container \
-u $(id -u astar):$(id -g astar) \
-p 30333:30333 \
-v "/var/lib/astar/:/data" \
staketechnologies/astar-collator:latest \
astar-collator \
--state-pruning 1000 \
--blocks-pruning 1000 \
--collator \
--name {COLLATOR_NAME} \
--chain astar \
--base-path /data \
--telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' \
-- \
--sync warp
docker run -d \
--name shiden-container \
-u $(id -u astar):$(id -g astar) \
-p 30333:30333 \
-v "/var/lib/astar/:/data" \
staketechnologies/astar-collator:latest \
astar-collator \
--state-pruning 1000 \
--blocks-pruning 1000 \
--collator \
--name {COLLATOR_NAME} \
--chain shiden \
--base-path /data \
--telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' \
-- \
--sync warp