# xchain-binance

The section provides an overview of the underlying mechanisms and processes involved in the operation of the xchain-Binance blockchain library. This section aims to give developers a clear understanding of the library's architecture, workflow, and integration points, enabling them to effectively leverage its functionalities in their projects.

It communicates with Binance Chain by using [`binance-chain/javascript-sdk`](https://github.com/binance-chain/javascript-sdk)

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

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

* Mainnet: `https://dex.binance.org`
* Testnet: `https://testnet-dex.binance.org`

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

* Mainnet: [`https://explorer.binance.org`](https://explorer.binance.org/)
* Testnet: [`https://testnet-explorer.binance.org`](https://testnet-explorer.binance.org/)

## 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/714/0/0`

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

### Transfer Multi Transactions <a href="#transfer-multi-transactions" id="transfer-multi-transactions"></a>

```
type MultiTransfer = {
  to: Address
  coins: Coin[]
}

type MultiSendParams = {
  address?: Address
  transactions: MultiTransfer[]
  memo?: string
}

multiSend(params: MultiSendParams): Promise<TxHash>
```

### Get Multi-Transfer Fees <a href="#get-multi-transfer-fees" id="get-multi-transfer-fees"></a>

```
getMultiSendFees(): Promise<Fees>
```

### Peer Dependencies

You can visit the [xchain-binance](https://github.com/xchainjs/xchainjs-lib/tree/master/packages/xchain-binance) 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-binance/docs/index.html)
