
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
chain-registry
Advanced tools
The npm package for the Official Cosmos chain registry
npm install chain-registry
A unified store of chains info, assets, asset lists, and IBC channels for the Cosmos ecosystem. Get everything from token symbols, logos, and IBC denominations for all assets you want to support in your application.
⚠️ This repository now contains two versions of the chain-registry:
snake_case naming conventions.camelCase naming conventions based on developer feedback.*We encourage developers to migrate to v2 for improved consistency and readability.
chain-registryFetch data from chain-registry:
import { assets, chains, ibc } from 'chain-registry';
const assetList = assets.find(({chain_name})=>chain_name==='osmosis');
console.log(assetList);
will output:
{
'$schema': '../assetlist.schema.json',
chainName: 'osmosis',
assets: [
{
description: 'The native token of Osmosis',
denomUnits: [Array],
base: 'uosmo',
name: 'Osmosis',
display: 'osmo',
symbol: 'OSMO',
logoURIs: [Object],
coingeckoId: 'osmosis'
},
{
denomUnits: [Array],
base: 'uion',
name: 'Ion',
display: 'ion',
symbol: 'ION',
logoURIs: [Object],
coingeckoId: 'ion'
}
]
}
@chain-registry/client for dynamic dataDynamically fetch data:
import { ChainRegistryClient } from '@chain-registry/client';
// create an instance of ChainRegistryClient by passing in the chain names
const client = new ChainRegistryClient({
chainNames: [
'osmosis',
'juno',
'stargaze'
]
});
// chain info, assets and ibc data will be downloaded dynamically by invoking fetchUrls method
await client.fetchUrls();
// get chain data
const chain = client.getChain('osmosis');
// get asset list
const assetList = client.getChainAssetList('osmosis');
// get ibc data
const ibcData = client.getChainIbcData('osmosis');
// get asset list (including ibc assets)
const generatedAssetList = client.getGeneratedAssetLists('osmosis');
chain-registryTree-shaking is a modern JavaScript feature that allows for smaller bundle sizes by only including the code that is actually used in your project. The chain-registry package supports tree-shaking, ensuring that only the specified imports are included in your bundle. Below are examples of how to import different datasets according to your needs.
You can directly import assets and chain information based on the network type - mainnet, testnet, or devnet. Here’s how you can import data for each network type:
import { assets, chains } from 'chain-registry/mainnet';
import { assets, chains } from 'chain-registry/testnet';
import { assets, chains } from 'chain-registry/devnet';
If you are interested in a specific chain, such as Osmosis on the mainnet, you can import data related to that particular chain only:
import { assets, chain } from 'chain-registry/mainnet/osmosis';
import assets from 'chain-registry/mainnet/osmosis/assets';
import chain from 'chain-registry/mainnet/osmosis/chain';
To include data from non-Cosmos chains, use the following import:
import { assets } from 'chain-registry/noncosmos';
An npm module for the Official chain-registry for the Cosmos ⚛️
A Client for chain-registry that allows you to dynamically fetch data.
Types for chain-registry.
Keplr integration for the chain-registry returning keplr's ChainInfo type from @chain-registry/types Chain type.
Asset lists for the Cosmos ⚛️
Chain Registry info for Osmosis, including asset lists.
Chain Registry info for Juno, including asset lists.
Utility functions for chain-registry.
Checkout the repository run yarn to initialize the workspace:
# Clone the repo.
git clone https://github.com/hyperweb-io/chain-registry
yarn
First ensure you have the submodules initialized out before developing:
make init-submodules
yarn build
First, cd into the root folder of the project:
cd /your/path/to/chain-registry
Second, update the git submodules:
git submodule update --remote
Third, generate the code:
yarn codegen
Finally, commit and publish the code!
git commit -am "new registry updates"
lerna publish
Use the following Makefile commands to update the data in the submodules. These commands will ensure that your submodules are synchronized with their respective remote repositories.
cosmos/chain-registry repository. This should be used to pull the most current production data into your local environment.make update-registry
hyperweb-io/chain-registry-fixtures repository. Use this for testing purposes to ensure that your tests are running against stable, controlled data sets.make update-fixtures
A unified toolkit for building applications and smart contracts in the Interchain ecosystem
| Category | Tools | Description |
|---|---|---|
| Chain Information | Chain Registry, Utils, Client | Everything from token symbols, logos, and IBC denominations for all assets you want to support in your application. |
| Wallet Connectors | Interchain Kitbeta, Cosmos Kit | Experience the convenience of connecting with a variety of web3 wallets through a single, streamlined interface. |
| Signing Clients | InterchainJSbeta, CosmJS | A single, universal signing interface for any network |
| SDK Clients | Telescope | Your Frontend Companion for Building with TypeScript with Cosmos SDK Modules. |
| Starter Kits | Create Interchain Appbeta, Create Cosmos App | Set up a modern Interchain app by running one command. |
| UI Kits | Interchain UI | The Interchain Design System, empowering developers with a flexible, easy-to-use UI kit. |
| Testing Frameworks | Starship | Unified Testing and Development for the Interchain. |
| TypeScript Smart Contracts | Create Hyperweb App | Build and deploy full-stack blockchain applications with TypeScript |
| CosmWasm Contracts | CosmWasm TS Codegen | Convert your CosmWasm smart contracts into dev-friendly TypeScript classes. |
🛠 Built by the Constructive team — makers of Hyperweb
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.
FAQs
Cosmos chain registry ⚛️
The npm package chain-registry receives a total of 15,584 weekly downloads. As such, chain-registry popularity was classified as popular.
We found that chain-registry demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.