Skip to content

genesis and configuration files for various mantrachain networks

License

Notifications You must be signed in to change notification settings

MANTRA-Chain/net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mantrachain Networks

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.

Usage

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"

Fetching Information

Version

MANTRACHAIN_VERSION="$(curl -s "$MANTRACHAIN_NET/version.txt")"

Chain ID

MANTRACHAIN_CHAIN_ID="$(curl -s "$MANTRACHAIN_NET/chain-id.txt")"

Genesis

curl -s "$MANTRACHAIN_NET/genesis.json" > genesis.json

Seed Nodes

curl -s "$MANTRACHAIN_NET/seed-nodes.txt" | paste -d, -s

RPC Node

Print a random RPC endpoint

curl -s "$MANTRACHAIN_NET/rpc-nodes.txt" | shuf -n 1

API Node

Print a random API endpoint

curl -s "$MANTRACHAIN_NET/api-nodes.txt" | shuf -n 1

About

genesis and configuration files for various mantrachain networks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published