Setup CLI Network variables
If you are looking for Validator Network Variables, go to this page
This document describes the command to set up the environment depending on the type of network you want to use.
-
⚠️ Keep in mind, that our Public RPC Node is stable, but there is always a risk of DDoS attacks, and if you build your own product(wallet, etc), it is recommended to rely on your own RPC Node.
-
⚠️ Also, having own RPC node is recommended if you frequently query the Node(for instance, for indexing), since we have rate limiting there.
-
Set the chain env variables with the values corresponding to the network you want to connect to, from the table above.
export COREUM_CHAIN_ID="{Chain ID}" export COREUM_DENOM="{Denom}" export COREUM_NODE="{RPC URL}" export COREUM_VERSION="{Cored version}" export COREUM_CHAIN_ID_ARGS="--chain-id=$COREUM_CHAIN_ID" export COREUM_NODE_ARGS="--node=$COREUM_NODE" export COREUM_HOME=$HOME/.core/"$COREUM_CHAIN_ID" export COREUM_BINARY_NAME=$(arch | sed s/aarch64/cored-linux-arm64/ | sed s/x86_64/cored-linux-amd64/)
Attention! Set those variables globally so it is automatically set after starting a new terminal session.