chain-registry-interface (Rust)
Typed runtime access to the Cosmos chain-registry at runtime. This crate mirrors the official JSON schemas (no embedded data) and provides minimal helpers to fetch JSON from GitHub.
Key points:
- Types match schema fields exactly (serde rename where needed).
- Optional fields use Option.
- No caching or validation beyond JSON parsing.
Install (after publish):
[]
= "0.0.1"
Example
use fetch_chain;
async
Helpers
- fetch_chain(name) -> Chain
- fetch_asset_list(name) -> AssetList
- fetch_memo_keys(_) -> MemoKeys
- fetch_versions(name) -> Versions
- fetch_ibc_connection(a, b) -> IbcData from _IBC/-.json
License: Apache-2.0 OR MIT Repository: https://github.com/puneet2019/chain-registry-interface