# xchain-doge

This section for the xchain Doge library provides developers with a comprehensive 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 Dogecoin blockchain network.

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

It communicates with Doge by using [BIP39](https://github.com/bitcoinjs/bip39) [bitcoinjs-lib](https://github.com/bitcoinjs/bitcoinjs-lib) and [WIF](https://github.com/bitcoinjs/wif)

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

* Mainnet: `https://api.blockcypher.com/v1`
* Testnet: `https://api.blockcypher.com/v1`

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

* Mainnet: [`https://blockchair.com/dogecoin`](https://blockchair.com/dogecoin)
* Testnet: [`https://blockexplorer.one/dogecoin/testnet`](https://blockexplorer.one/dogecoin/testnet)

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

By default, the index is 0. - `m/44'/3'/0'/0/` for mainnet, `m/44'/3'/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>
```

#### Scans UTXOs on the Address <a href="#scans-utxos-on-the-address" id="scans-utxos-on-the-address"></a>

```
scanUTXOs(): Promise<void>
```

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


---

# Agent Instructions: 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-doge.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.
