This repository contains network information for the various Mantrachain networks.
In general, there will be three networks available at any given time:
Network | Status | Network version (binary version) | Description |
---|---|---|---|
mainnet | ✔️ | v1 (1.0.3) | Mantrachain Network mainnet network. |
testnet | ✔️ | v2 (2.0.0) | Mantrachain Network testnet network. |
Each network has a corresponding directory (linked to above) containing network information. Each directory includes, at a minimum:
File | Description |
---|---|
version.txt |
The Mantrachain version used to participate in the network. |
chain-id.txt |
The "chain-id" of the network. |
genesis.json |
The genesis file for the network. |
seed-nodes.txt |
A list of seed node addresses for the network. |
rpc-nodes.txt |
A list of RPC node addresses for the network. |
api-nodes.txt |
A list of API (LCD) node addresses for the network. |
explorer-url.txt |
The URL of an explorer UI for the network. |
The information in this repo may be used to automate tasks when deploying or configuring Mantrachain software.
The format is standardized across the networks so that you can use the same method to fetch the information for all of them - just change the base URL
MANTRACHAIN_NET_BASE=https://raw.githubusercontent.com/MANTRA-Chain/net/main
##
# Use _one_ of the following:
##
# mantra-1
MANTRACHAIN_NET="$MANTRACHAIN_NET_BASE/mantra-1"
# mantra-dukong-1
MANTRACHAIN_NET="$MANTRACHAIN_NET_BASE/mantra-dukong-1"
MANTRACHAIN_VERSION="$(curl -s "$MANTRACHAIN_NET/version.txt")"
MANTRACHAIN_CHAIN_ID="$(curl -s "$MANTRACHAIN_NET/chain-id.txt")"
curl -s "$MANTRACHAIN_NET/genesis.json" > genesis.json
curl -s "$MANTRACHAIN_NET/seed-nodes.txt" | paste -d, -s
Print a random RPC endpoint
curl -s "$MANTRACHAIN_NET/rpc-nodes.txt" | shuf -n 1
Print a random API endpoint
curl -s "$MANTRACHAIN_NET/api-nodes.txt" | shuf -n 1