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

https://github.com/glottologist/cosmoping

Latency report generator for Cosmos SDK addr book
https://github.com/glottologist/cosmoping

Last synced: 11 months ago
JSON representation

Latency report generator for Cosmos SDK addr book

Awesome Lists containing this project

README

          

# cosmoping

Latency report generator for Cosmos SDK addr book

## Usage

To get a basic latency report run cosmoping against a CosmosSDK addrbook.json file:

```bash
cosmoping latency --addrbook-path
```

The terminal will print the results in markdown format:

```markdown
| IP Address | Port | ID | Latency(ms) | City | Country |
| ---------- | ------ | ---------- | ----------- | ---- | ------- |
| | | | 36354 | | |
| | | | 36328 | | |
```

### Results output

You can supply an output path to save the results to file:

```bash
cosmoping latency --addrbook-path --output-path ./latencies.md
```

### Location data

You can get additional IP location data by supplying an api key from [IpInfo](https://ipinfo.io/):

```bash
cosmoping latency --addrbook-path --output-path ./latencies.md --location-api-key
```

This will enrich the resolvable IPs with locations:

```markdown
| IP Address | Port | ID | Latency(ms) | City | Country |
| ---------- | ------ | ---------- | ----------- | ------- | ---------- |
| | | | 36354 | | |
| | | | 36328 | | |
```