Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bitgo-beta/utxo-lib

Package Overview
Dependencies
Maintainers
2
Versions
1105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitgo-beta/utxo-lib

Client-side Bitcoin JavaScript library

  • 8.0.3-beta.523
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
34K
decreased by-3.67%
Maintainers
2
Weekly downloads
 
Created
Source

BitGo UTXO library

This library is a wrapper around bitcoinjs-lib adding altcoin support.

Features

  • Multicoin support: Configurable behaviour based on network objects.
  • Backed by BitGo

Installation

# using npm
npm install @bitgo/utxo-lib

# using yarn
yarn add @bitgo/utxo-lib

Setup

JavaScript (ESM)

import * as utxolib from '@bitgo/utxo-lib';

NodeJS (CJS)

const utxolib = require('@bitgo/utxo-lib');

Usage

Support for parsing and building altcoin transactions is provided by the following methods

utxolib.bitgo.createTransactionFromBuffer(buffer, network): UtxoTransaction
// (similarly `createTransactionFromHex(string, network)`)

utxolib.bitgo.createTransactionBuilderForNetwork(network): UtxoTransactionBuilder

utxolib.bitgo.createTransactionBuilderFromTransaction(tx): UtxoTransactionBuilder

The UtxoTransaction(Builder) classes have the same interface as the Transaction type in bitcoinjs-lib .

Supported coins

NetworkMainnetTestnet
Bitcoinutxolib.networks.bitcoinutxolib.networks.testnet
Bitcoin Cashutxolib.networks.bitcoincashutxolib.networks.bitcoincashTestnet
Bitcoin Goldutxolib.networks.bitcoingoldutxolib.networks.bitcoingoldTestnet
Bitcoin SV (Satoshi Vision)utxolib.networks.bitcoinsvutxolib.networks.bitcoinsvTestnet
Dashutxolib.networks.dashutxolib.networks.dash
eCashutxolib.networks.ecashutxolib.networks.ecashTestnet
Litecoinutxolib.networks.litecoinutxolib.networks.litecoinTest
Zcashutxolib.networks.zcashutxolib.networks.zcashTest

Bitcoin SV no longer supports sending funds to BitGo wallets. Existing customers with Bitcoin SV in BitGo wallets will still be able to access and sweep funds to an external Bitcoin SV wallet.

Keywords

FAQs

Package last updated on 24 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc