# @bitgo/abstract-utxo

> BitGo SDK coin library for UTXO base implementation

Latest version **13.6.9** (published 2026-11-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @bitgo/abstract-utxo
pnpm add @bitgo/abstract-utxo
yarn add @bitgo/abstract-utxo
bun add @bitgo/abstract-utxo
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 13.6.9 |
| Published | 2026-11-19 |
| First published | 2022-06-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 14 |
| Unpacked size | 4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 394 |
| Author | BitGo SDK Team |
| Maintainers | louib-bitgo, bitgobot |

## Links

- npm: https://www.npmjs.com/package/@bitgo/abstract-utxo
- Repository: https://github.com/BitGo/BitGoJS
- Homepage: https://github.com/BitGo/BitGoJS#readme
- Issues: https://github.com/BitGo/BitGoJS/issues
- npm.io page: https://npm.io/package/@bitgo/abstract-utxo

## Dependencies (14)

- [debug](https://npm.io/package/debug.md) ^3.1.0
- [io-ts](https://npm.io/package/io-ts.md) npm:@bitgo-forks/io-ts@2.1.4
- [lodash](https://npm.io/package/lodash.md) ^4.18.0
- [superagent](https://npm.io/package/superagent.md) ^9.0.1
- [bignumber.js](https://npm.io/package/bignumber.js.md) ^9.0.2
- [@types/lodash](https://npm.io/package/@types/lodash.md) ^4.14.121
- [@bitgo/sdk-api](https://npm.io/package/@bitgo/sdk-api.md) ^3.4.3
- [@bitgo/sdk-core](https://npm.io/package/@bitgo/sdk-core.md) ^40.9.0
- [@bitgo/utxo-ord](https://npm.io/package/@bitgo/utxo-ord.md) ^1.35.2
- [@bitgo/blockapis](https://npm.io/package/@bitgo/blockapis.md) ^1.13.13
- [@bitgo/utxo-core](https://npm.io/package/@bitgo/utxo-core.md) ^1.42.2
- [@bitgo/wasm-utxo](https://npm.io/package/@bitgo/wasm-utxo.md) ^5.15.0
- [@types/superagent](https://npm.io/package/@types/superagent.md) 4.1.15
- [@bitgo/utxo-descriptors](https://npm.io/package/@bitgo/utxo-descriptors.md) ^2.3.2

## Recent versions

- 13.6.9 (latest) — 2026-11-19
- 1.2.0-rc.32 (rc) — 2022-09-29
- 1.2.0-hotfix.1 (hotfix) — 2022-08-11
- 1.3.0-dev.1 (dev) — 2022-06-18
- 13.6.8 — 2026-11-18
- 13.6.7 — 2026-11-17
- 13.6.6 — 2026-11-13
- 13.6.5 — 2026-11-10
- 13.6.4 — 2026-11-05
- 13.6.3 — 2026-11-03
- 13.6.2 — 2026-10-29
- 13.6.1 — 2026-10-27
- 13.6.0 — 2026-10-22
- 13.5.1 — 2026-10-21
- 13.5.0 — 2026-10-21
- … 323 more at https://npm.io/package/@bitgo/abstract-utxo/versions

## README

# BitGo abstract-utxo

This module provides the foundational `AbstractUtxoCoin` class and concrete implementations for Bitcoin and Bitcoin-like UTXO-based cryptocurrencies within the BitGo platform.

## Overview

The `AbstractUtxoCoin` class serves as the base implementation for all UTXO-based coins, providing common functionality for transaction building, signing, verification, and recovery operations. Each supported cryptocurrency extends this class to provide coin-specific behavior while leveraging the shared UTXO infrastructure.

## Supported Coins

Concrete implementations are provided in the `src/impl/` directory:

- **btc/** - Bitcoin (BTC) and Bitcoin testnet variants
- **bch/** - Bitcoin Cash (BCH)
- **bcha/** - Bitcoin Cash ABC (BCHA)
- **bsv/** - Bitcoin SV (BSV)
- **btg/** - Bitcoin Gold (BTG)
- **ltc/** - Litecoin (LTC)
- **dash/** - Dash (DASH)
- **doge/** - Dogecoin (DOGE)
- **zec/** - Zcash (ZEC)

## Key Features

### Transaction Operations
- **Building & Signing**: Support for both legacy and PSBT transaction formats
- **Multi-signature**: 2-of-3 multisig with various script types (P2SH, P2WSH, P2SH-P2WSH, P2TR-MuSig2)
- **Verification**: Comprehensive transaction intent verification before signing
- **Explanation**: Decode and explain transaction details (inputs, outputs, fees)

### Wallet Types
- **Fixed Script Wallets**: Traditional HD wallets with deterministic address generation
- **Descriptor Wallets**: Modern wallet format using output script descriptors
- **Distributed Custody**: Support for enterprise custody configurations

### Address Management
- Address validation and derivation verification
- Support for multiple address formats (base58, bech32, cashaddr for BCH)
- Chain/index-based address generation for fixed script wallets

### Recovery Operations
- **Backup Key Recovery**: Recover funds using backup key when BitGo is unavailable
- **Cross-Chain Recovery**: Recover coins sent to wrong chain (e.g., BTC sent to LTC address)
- **V1 Wallet Recovery**: Support for legacy V1 wallet recovery

### Advanced Features
- BIP322 message signing support
- MuSig2 for Taproot multisig
- Replay protection for chain splits
- Custom change address handling
- RBF (Replace-by-Fee) transaction support

## Development Setup

### VSCode Configuration

For an optimal development experience in VSCode, configure the Mocha Test Explorer with the following settings in `.vscode/settings.json`:

```json
{
  "mochaExplorer.files": "test/**/*.ts",
  "mochaExplorer.nodeArgv": ["--import", "tsx"],
  "mochaExplorer.logpanel": true
}
```

This configuration enables:
- **Test Discovery**: Automatically finds all TypeScript test files in the `test/` directory
- **TypeScript Support**: Uses `tsx` for running TypeScript tests without compilation
- **Log Panel**: Displays test output for easier debugging

### Running Tests

With the Mocha Test Explorer configured, you can:
- View and run individual tests or test suites from the VSCode Test Explorer panel
- Set breakpoints and debug tests directly in the editor
- Monitor test output in the integrated log panel

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