cosmos-chain-registry-reader
v1.1.4
Published
node.js module to cache and query the cosmos chain-registry
Downloads
13
Maintainers
Readme
cosmos-chain-registry-reader
node.js module to cache and query the cosmos chain-registry
Installation
npm i cosmos-chain-registry-reader
Setup
import { CHAIN_REGISTRY } from "cosmos-chain-registry-reader";
Usage
// fetch the chain-registry asynchronously. Call again to refresh
await CHAIN_REGISTRY.load();
// query the cached registry, optionally filter fields and values
CHAIN_REGISTRY.query({
"filter_fields": ["chain_name", "pretty_name", "chain_id", "bech32_prefix", "slip44", "apis.rest"],
"search": {
"chain_name": ["akash","sentinel"]
}
});