# @xchainjs/xchain-util

> Helper utilities for XChain clients

Latest version **2.0.7** (published 2026-04-15) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 65/100 (B)** — status: stable.

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.0.7 |
| Published | 2026-04-15 |
| First published | 2020-11-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 80.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 133 |
| Author | THORChain |
| Maintainers | xchainjsadmin, thorchain_org, _stu, veado, thatstrangeguy, junkai121, sarawut11, thorswap, hodrthemediocre, polaris_9r, thorianite |
| Keywords | THORChain, XChain |

## Links

- npm: https://www.npmjs.com/package/@xchainjs/xchain-util
- Repository: https://github.com/xchainjs/xchainjs-lib
- Issues: https://github.com/xchainjs/xchainjs-lib/issues
- npm.io page: https://npm.io/package/@xchainjs/xchain-util

## Dependencies (1)

- [bignumber.js](https://npm.io/package/bignumber.js.md) ^11.0.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 2.0.7 (latest) — 2026-04-15
- 2.0.6 — 2026-03-12
- 2.0.5 — 2025-09-19
- 2.0.4 — 2025-07-23
- 2.0.3 — 2025-07-15
- 2.0.2 — 2025-06-30
- 2.0.1 — 2025-06-23
- 2.0.0 — 2025-04-28
- 1.0.8 — 2025-01-21
- 1.0.7 — 2025-01-08
- 1.0.6 — 2024-10-11
- 1.0.5 — 2024-09-25
- 1.0.4 — 2024-09-23
- 1.0.3 — 2024-09-16
- 1.0.2 — 2024-09-10
- … 37 more at https://npm.io/package/@xchainjs/xchain-util/versions

## README

# `@xchainjs/xchain-util`

Utility helpers for XChain clients

## Modules (in alphabetical order)

- `asset` - Utilities for handling assets
- `async` - Utilities for `async` handling
- `bn` - Utilities for using `bignumber.js`
- `chain` - Utilities for multi-chain
- `string` - Utilities for strings

## Installation

```
yarn add @xchainjs/xchain-util
```
The following peer dependencies have to be installed into your project. These are not included in `@xchainjs/xchain-util`.

```
yarn add bignumber.js
```

## Documentation

### [`xchain util`](http://docs.xchainjs.org/xchain-util/)
[`How xchain-util works`](http://docs.xchainjs.org/xchain-util/how-it-works.html)\
[`How to use xchain-util`](http://docs.xchainjs.org/xchain-util/how-to-use.html)

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