# chain-registry

The npm package for the Official Cosmos [chain registry](https://github.com/cosmos/chain-registry) ``` npm install chain-registry ``` ## example ```js import { assets, chains, ibc } from 'chain-registry'; const asset = assets.find(({chain_name})=>chain_name==='osmosis'); console.log(asset); ``` will output: ```js { '$schema': '../assetlist.schema.json', chain_name: 'osmosis', assets: [ { description: 'The native token of Osmosis', denom_units: [Array], base: 'uosmo', name: 'Osmosis', display: 'osmo', symbol: 'OSMO', logo_URIs: [Object], coingecko_id: 'osmosis' }, { denom_units: [Array], base: 'uion', name: 'Ion', display: 'ion', symbol: 'ION', logo_URIs: [Object], coingecko_id: 'ion' } ] } ``` ## packages #### [@chain-registry/keplr](packages/keplr/README.md) Keplr integration for the chain-registry returning keplr's `ChainInfo` type from `@chain-registry/types` `Chain` type. #### [@chain-registry/assets](packages/assets/README.md) Asset lists for the Cosmos ⚛️ #### [@chain-registry/utils](packages/utils/README.md) Utility functions for the chain-registry ## Developing Checkout the repository and bootstrap the yarn workspace: ```sh # Clone the repo. git clone https://github.com/cosmology-tech/chain-registry yarn yarn bootstrap ``` ### Building ```sh yarn build ```