BitGo SDK coin library for UTXO base implementation
npm install @bitgo/abstract-utxoThis module provides the foundational AbstractUtxoCoin class and concrete implementations for Bitcoin and Bitcoin-like UTXO-based cryptocurrencies within the BitGo platform.
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.
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)
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/ directorytsx` for running TypeScript tests without compilation
- TypeScript Support: Uses
- Log Panel: Displays test output for easier debugging
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