The npm package for the Official Cosmos chain registry
npm install chain-registry
import { assets, chains, ibc } from 'chain-registry';
const asset = assets.find(({chain_name})=>chain_name==='osmosis');
console.log(asset);
will output:
{
'$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'
}
]
}
Keplr integration for the chain-registry returning keplr's ChainInfo
type from @chain-registry/types
Chain
type.
Asset lists for the Cosmos ⚛️
Utility functions for the chain-registry
Checkout the repository and bootstrap the yarn workspace:
# Clone the repo.
git clone https://github.com/cosmology-tech/chain-registry
yarn
yarn bootstrap
yarn build