> For the complete documentation index, see [llms.txt](https://xchainjs.gitbook.io/xchainjs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xchainjs.gitbook.io/xchainjs/clients/xchain-utxo/xchain-litecoin.md).

# 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;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xchainjs.gitbook.io/xchainjs/clients/xchain-utxo/xchain-litecoin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
