Skip to content

A simple and convenient Golang server and client library for the Cosmos chain-registry

Notifications You must be signed in to change notification settings

cmwaters/skychart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Skychart

Skychart is a simple golang server and client library for the cosmos chain-registry. It provides a convenient API, automatically updating itself to any changes in the github repo once a day. In the types package you will find go generated types from the JSON schemas.

Usage

Install the binary

go install github.com/cmwaters/skychart@latest

and run the server (this is for port :8080)

skychart cosmos/chain-registry :8080

API Reference

Query Description Response Type
/v1/chains Returns an array of registered chains by name []string
/v1/chain/{chain} Returns a registered chain if it exists Chain
/v1/chain/{chain}/endpoints/rpc Returns a list of active public RPC endpoints []GrpcElement
/v1/chain/{chain}/endpoints/rest Returns a list of active public REST endpoints []GrpcElement
/v1/chain/{chain}/endpoints/grpc Returns a list of active public gRPC endpoints []GrpcElement
/v1/chain/{chain}/endpoints/peers Returns a list of chain peers []PersistentPeerElement
/v1/chain/{chain}/endpoints/seeds Returns a list of chain seeds []PersistentPeerElement
/v1/chain/{chain}/assets Returns all the native assets of the chain AssetList
/v1/assets Returns an array of registered assets by display name []string
/v1/asset/{asset} Returns an asset by display name if it exists AssetElement

Note that the {chain} search query can be both the chain name and chain id.

About

A simple and convenient Golang server and client library for the Cosmos chain-registry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages