Node Commands

The following sections summarize the commands of Mandala Chain nodes you need for different cases. For any more details, you can consult the help page:

madya-solo --help

Collator​

Binary service file

[Unit]
Description=Madya Solo

[Service]
User=madya
Group=madya

ExecStart=/usr/local/bin/madya-solo \
  --pruning archive \
  --validator \
  --name {VALIDATOR_NAME} \
  --chain madya \
  --base-path /var/lib/madya \
  --trie-cache-size 0 \
  --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' \

Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

Docker

docker run -d \
--name madya-container \
-u $(id -u madya):$(id -g madya) \
-p 30333:30333 \
-v "/var/lib/madya/:/data" \
mandalachain/madya-solo:latest \
madya-solo \
--pruning archive \
--validator \
--name {VALIDATOR_NAME} \
--chain madya \
--base-path /data \
--trie-cache-size 0 \
--telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' \

Archive node as RPC endpoint

Binary

[Unit]
Description=Madya Solo node

[Service]
User=madya
Group=madya
  
ExecStart=/usr/local/bin/madya-solo \
  --pruning archive \
  --rpc-cors all \
  --name {NODE_NAME} \
  --chain madya \
  --base-path /var/lib/madya \
  --rpc-external \
  --rpc-methods Safe \
  --rpc-max-request-size 1 \
  --rpc-max-response-size 1 \
  --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' \
  
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

Docker

docker run -d \
--name madya-container \
-u $(id -u madya):$(id -g madya) \
-p 30333:30333 \
-p 9944:9944 \
-v "/var/lib/madya/:/data" \
mandalachain/madya-collator:latest \
madya-collator \
--pruning archive \
--rpc-cors all \
--name {NODE_NAME} \
--chain madya \
--base-path /data \
--rpc-external \
--rpc-methods Safe \
--rpc-max-request-size 1 \
--rpc-max-response-size 1 \
--telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' \

Specific cases command args​

External monitoring​

--prometheus-external

Full command documentation​

To see full node command binary embedded documentation, please use the help option.

$ ./madya-solo -h

Last updated