cosmos-chain-registry-reader

1.1.4 • Public • Published

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"]
  }
});

Package Sidebar

Install

npm i cosmos-chain-registry-reader

Weekly Downloads

0

Version

1.1.4

License

MIT

Unpacked Size

9.13 kB

Total Files

4

Last publish

Collaborators

  • hannibal_hacktor