# @xchainjs/xchain-client

> XChain Client

Latest version **2.0.18** (published 2026-10-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @xchainjs/xchain-client
pnpm add @xchainjs/xchain-client
yarn add @xchainjs/xchain-client
bun add @xchainjs/xchain-client
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.0.18 |
| Published | 2026-10-06 |
| First published | 2020-10-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 50.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | xchainjsadmin, thorchain_org, _stu, veado, thatstrangeguy, junkai121, sarawut11, thorswap, hodrthemediocre, polaris_9r, thorianite |

## Links

- npm: https://www.npmjs.com/package/@xchainjs/xchain-client
- npm.io page: https://npm.io/package/@xchainjs/xchain-client

## Dependencies (3)

- [axios](https://npm.io/package/axios.md) 1.20.0
- [@xchainjs/xchain-util](https://npm.io/package/@xchainjs/xchain-util.md) 2.0.7
- [@xchainjs/xchain-crypto](https://npm.io/package/@xchainjs/xchain-crypto.md) 1.0.8

## Recent versions

- 2.0.18 (latest) — 2026-10-06
- 2.0.17 — 2026-08-06
- 2.0.16 — 2026-07-20
- 2.0.15 — 2026-06-25
- 2.0.14 — 2026-06-03
- 2.0.13 — 2026-05-14
- 2.0.12 — 2026-04-15
- 2.0.11 — 2026-03-12
- 2.0.10 — 2026-02-10
- 2.0.9 — 2025-09-19
- 2.0.8 — 2025-07-28
- 2.0.7 — 2025-07-23
- 2.0.6 — 2025-07-23
- 2.0.5 — 2025-07-23
- 2.0.4 — 2025-07-15
- … 67 more at https://npm.io/package/@xchainjs/xchain-client/versions

## README

<div align="center">
  <h1 align="center">XChain Client</h1>

  <p align="center">
    <a href='https://www.npmjs.com/package/@xchainjs/xchain-client' target='_blank'>
      <img alt="NPM Version" src="https://img.shields.io/npm/v/%40xchainjs%2Fxchain-client" />
    </a>
    <a href='https://www.npmjs.com/package/@xchainjs/xchain-client' target='_blank'>
      <img alt="NPM Downloads" src="https://img.shields.io/npm/d18m/%40xchainjs%2Fxchain-client" />
    </a>
  </p>
</div>

<br />

Base client interface and abstract implementation for XChainJS blockchain clients. Provides a standardized interface for wallet operations across different blockchain networks.

## Modules

- `BaseXChainClient` - Abstract base class for all blockchain clients
- `types` - Core type definitions and interfaces
- `fees` - Fee calculation utilities
- `protocols` - Supported blockchain protocol definitions

## Installation

```sh
yarn add @xchainjs/xchain-client
```

or

```sh
npm install @xchainjs/xchain-client
```

Following peer dependencies have to be installed into your project. These are not included in `@xchainjs/xchain-client`.

```sh
yarn add @xchainjs/xchain-crypto @xchainjs/xchain-util axios
```

## Documentation

### [`xchain client`](http://docs.xchainjs.org/xchain-client/)

[`Overview of xchain-client`](http://docs.xchainjs.org/xchain-client/overview.html)\
[`Interface of xchain-client`](http://docs.xchainjs.org/xchain-client/interface.html)

## Features

- **Standardized Interface**: Consistent API across all blockchain implementations
- **Key Management**: Secure BIP39 phrase handling without key generation
- **Network Support**: Mainnet, Testnet, and Stagenet configurations
- **Fee Management**: Flexible fee calculation and bounds
- **Abstract Implementation**: Base class for easy client extension

---
_Source: https://npm.io/package/@xchainjs/xchain-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
