# xchain-litecoin

This section for the XChain Litecoin library provides developers with a detailed understanding of the operational workflow and underlying mechanisms of the library. It outlines the steps involved in utilizing the library's features and functionalities to interact effectively with the Litecoin blockchain network.&#x20;

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

It communicates with Bitcoin by using [`bitcoinjs-lib`](https://github.com/bitcoinjs/bitcoinjs-lib)

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

* Mainnet: `https://sochain.com/api/v2`
* Testnet: `https://sochain.com/api/v2`

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

* Mainnet: [`https://blockstream.info`](https://blockstream.info/)
* Testnet: [`https://blockstream.info/testnet`](https://blockstream.info/)

### 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. - `84'/2'/0'/0/0` for mainnet, `84'/1'/0'/0/0` for testnet

### Blockchain-specific functions <a href="#blockchain-specific-functions" id="blockchain-specific-functions"></a>

#### Additional Functions to Get Fee Information <a href="#additional-functions-to-get-fee-information" id="additional-functions-to-get-fee-information"></a>

* `getFeesWithRates`
* `getFeesWithMemo`
* `getFeeRates`

```
type FeeRate = number
type FeeRates = Record<FeeOptionKey, FeeRate>
type FeesWithRates = { rates: FeeRates; fees: Fees }

getFeesWithRates(memo?: string): Promise<FeesWithRates>
getFeesWithMemo(memo: string): Promise<Fees>
getFeeRates(): Promise<FeeRates>
```

You can check the functions available in this client from the following link [xchain-docs](https://docs.xchainjs.org/xchain-docs/xchain-litecoin/docs/index.html)&#x20;
