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.

-mainnettestnetdevnetznet (localnet)
Chain IDcoreum-mainnet-1coreum-testnet-1coreum-devnet-1coreum-devnet-1
Denomucoreutestcoreudevcoreudevcore
RPC URLhttps://full-node.mainnet-1.coreum.dev:26657https://full-node.testnet-1.coreum.dev:26657https://full-node.devnet-1.coreum.dev:26657http://localhost:26657
GRPC URLfull-node.mainnet-1.coreum.dev:9090full-node.testnet-1.coreum.dev:9090full-node.devnet-1.coreum.dev:9090localhost:9090
REST URLhttps://full-node.mainnet-1.coreum.dev:1317https://full-node.testnet-1.coreum.dev:1317https://full-node.devnet-1.coreum.dev:1317http://localhost:1317
Cored versionv2.0.2v2.0.2check the latest devnet releasealready installed via crust
Explorer API Betahttps://hasura.mainnet-1.coreum.dev/v1/graphqlhttps://hasura.testnet-1.coreum.dev/v1/graphqlhttps://hasura.devnet-1.coreum.dev/v1/graphqlhttp://localhost:8080/v1/graphql
  • ⚠️ 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.

Last Updated: