At any given time, there are a number of different active Akash networks running, each with a different akash
version, chain-id, seed hosts, etc...
The generally available networks are:
Network | Description |
---|---|
mainnet | Akash Network mainnet network. |
testnet | Testnet of the current mainnet version. |
edgenet | Testnet of the next mainnet version. |
When following guides in this document, it is important to use the right parameters for the network you want to connect to.
The ovrclk/net repository contains metadata about each available network. The format is standardized across the networks so that you can use the same method to fetch the information for any of them. See below for how to use ovrclk/net in the guides here.
First determine the base URL ($AKASH_NET
) for the network you want to connect to - use the line from below that corresponds with the network you want to connect to:
# mainnet
AKASH_NET="https://raw.githubusercontent.com/ovrclk/net/master/mainnet"
# testnet
AKASH_NET="https://raw.githubusercontent.com/ovrclk/net/master/testnet"
# edgenet
AKASH_NET="https://raw.githubusercontent.com/ovrclk/net/master/edgenet"
AKASH_VERSION="$(curl -s "$AKASH_NET/version.txt")"
AKASH_CHAIN_ID="$(curl -s "$AKASH_NET/chain-id.txt")"
curl -s "$AKASH_NET/genesis.json" > genesis.json
curl -s "$AKASH_NET/seed-nodes.txt" | paste -d, -s
curl -s "$AKASH_NET/peer-nodes.txt" | paste -d, -s
Print a random RPC endpoint
AKASH_NODE="$(curl -s "$AKASH_NET/rpc-nodes.txt" | shuf -n 1)"
echo $AKASH_NODE
Print a random API endpoint
curl -s "$AKASH_NET/api-nodes.txt" | shuf -n 1