An open API service indexing awesome lists of open source software.

https://github.com/akash-network/net

genesis and configuration files for various akash networks
https://github.com/akash-network/net

Last synced: 18 days ago
JSON representation

genesis and configuration files for various akash networks

Awesome Lists containing this project

README

          

# Akash Networks

This repository contains network information for the various Akash networks.

Currently available networks:

| Network | Status | Network version (binary version) | Description |
| -------------------------- | ------------------ | -------------------------------- | ------------------------------------------------------ |
| [mainnet](mainnet) | :heavy_check_mark: | v2.0.1 | Akash Network mainnet network. |
| [sandbox-2](sandbox-2) | :heavy_check_mark: | v2.0.0 | Akash Network sandbox playground network. |

Each network has a corresponding directory (linked to above) containing network information.
Each directory includes, at a minimum:

| File | Description |
| ---------------- | ---------------------------------------------------------------------------------- |
| `version.txt` | The [Akash](//github.com/akash-network/node) 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. |

The following files may also be present:

| File | Description |
| ------------------ | --------------------------------------------------- |
| `peer-nodes.txt` | A list of peer 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. |
| `faucet-url.txt` | The url of a faucet server for the network. |
| `explorer-url.txt` | The url of a explorer UI for the network. |

## Usage

The information in this repo may be used to automate tasks when deploying or configuring
[Akash](//github.com/akash-network/node) 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

```sh
AKASH_NET_BASE=https://raw.githubusercontent.com/akash-network/net/main

##
# Use _one_ of the following:
##

# mainnet
AKASH_NET="$AKASH_NET_BASE/mainnet"

# sandbox-2
AKASH_NET="$AKASH_NET_BASE/sandbox-2"
```

## Fetching Information

### Version

```sh
AKASH_VERSION="$(curl -s "$AKASH_NET/version.txt")"
```

### Chain ID

```sh
AKASH_CHAIN_ID="$(curl -s "$AKASH_NET/chain-id.txt")"
```

### Genesis

```sh
curl -s "$AKASH_NET/genesis.json" > genesis.json
```

### Seed Nodes

```sh
curl -s "$AKASH_NET/seed-nodes.txt" | paste -d, -s
```

### Peer Nodes

```sh
curl -s "$AKASH_NET/peer-nodes.txt" | paste -d, -s
```

### RPC Node

Print a random RPC endpoint

```sh
curl -s "$AKASH_NET/rpc-nodes.txt" | shuf -n 1
```

### API Node

Print a random API endpoint

```sh
curl -s "$AKASH_NET/api-nodes.txt" | shuf -n 1
```