Skip to content

CronCats/cosmos-chain-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 

 


cosmos-chain-registry

A Rust API for getting chain information from the Cosmos Chain Registry.

Example:

use cosmos_chain_registry::ChainRegistry;

let registry = ChainRegistry::from_remote().unwrap();
let chain_info = registry.get_by_chain_id("juno-1").unwrap();

assert_eq!(info.chain_name, "juno");
assert_eq!(info.chain_id, "juno-1");
assert_eq!(info.pretty_name, "Juno");

Releases

No releases published

Packages

No packages published

Languages