# xchain-cosmos

This section offers developers a detailed understanding of the operational workflow and underlying mechanisms of the Xchain cosmos blockchain library. This section is designed to provide developers with insights into how they can effectively utilize the library's features and functionalities to interact with the Cosmos blockchain network.

### Third-Party Library <a href="#third-party-library" id="third-party-library"></a>

It communicates with Cosmos Chain by using [`cosmos-client`](https://github.com/cosmos-client/cosmos-client-ts)

#### Client URL <a href="#client-url" id="client-url"></a>

* Mainnet: `https://api.cosmos.network`
* Testnet: `http://lcd.gaia.bigdipper.live:1317`

#### Explorer URL <a href="#explorer-url" id="explorer-url"></a>

* Mainnet: [`https://cosmos.bigdipper.live`](https://cosmos.bigdipper.live/)
* Testnet: [`https://gaia.bigdipper.live`](https://gaia.bigdipper.live/)

#### Chain ID <a href="#chain-id" id="chain-id"></a>

* Mainnet: `cosmoshub-3`
* Testnet: `gaia-3a`

### Address Generation <a href="#address-generation" id="address-generation"></a>

It supports the [`BIP44 path derivations`](https://github.com/satoshilabs/slips/blob/master/slip-0044.md).

By default, the index is 0. - `44/118/0/0`

### Peer Dependencies

You can visit the [xchain-cosmos](https://github.com/xchainjs/xchainjs-lib/tree/master/packages/xchain-cosmos) package repository to get the updated peer dependencies by looking at the "devDependencies" object in the "package.json" file.

For more information about the API of the package, please click [here](https://docs.xchainjs.org/xchain-docs/xchain-cosmos/docs/index.html)<br>
