@bitgo/utxo-bin

中文文档
3.28.4发布于 2026/11/06MIT构建来源已验证近 30 天下载 3651

Command-line utility for BitGo UTXO transactions

原始使用文档
文档目录6 节
  1. npm
  2. npx
  3. parseTx
  4. parseAddress
  5. Generate addresses
  6. Development

⚠️ Deprecated. @bitgo/utxo-bin is deprecated. Its successor is wasm-utxo-cli, the command-line interface shipped with @bitgo/wasm-utxo in the BitGoWASM repository, which provides address encoding/decoding and PSBT inspection for UTXO-based coins.

wasm-utxo-cli is a native binary built from Rust (cargo install --path . from BitGoWASM/packages/wasm-utxo/cli); it is not published as an npm package. Migrate any utxo-bin usage to wasm-utxo-cli.

utxo-bin

This repository contains a CLI tool for parsing BitGo wallet transactions (withdrawals) and formatting them for terminal output.

Installation

npm

To install the tool globally, run

npm install --global @bitgo/utxo-bin

This will enable the utxo-bin tool to be run from anywhere on your system.

npx

To run the tool without installing, you can use npx. Be aware that this will download the package every time you run it.

npx @bitgo/utxo-bin ...

parseTx

From file

utxo-bin -n bitcoin parseTx <path-to-file>

From hex or base64

utxo-bin -n bitcoin parseTx --data <hex/base64>

From stdin

echo <txhex> | utxo-bin -n bitcoin parseTx --stdin
utxo-bin -n bitcoin parseTx --stdin
<paste txhex>
<CTRL-D>

From clipboard

utxo-bin -n bitcoin parseTx --clipboard

From txid

utxo-bin -n bitcoin parseTx --txid b0b7e5c2fbbbeb42478f91e1c14b300624a9419631e70dd1564084fb28a55155

Lookup inputs

utxo-bin -n bitcoin parseTx \
  --txid b0b7e5c2fbbbeb42478f91e1c14b300624a9419631e70dd1564084fb28a55155 \
  --fetchInputs

Formats

Supported transactions formats are

  • full-signed transactions
  • half-signed transactions in proprietary bitcoinjs-lib format ("legacy")
  • half-signed transactions in PSBT/BIP174 format

Supported encodings are hex and base64.

parseAddress

utxo-bin -n bitcoin parseAddress 3QJmV3qfvL9SuYo34YihAf3sRCW3qSinyC

Convert to other networks:

utxo-bin -n bitcoin parseAddress 3QJmV3qfvL9SuYo34YihAf3sRCW3qSinyC --convert

Generate addresses

utxo-bin generateAddresses \
    --userKey xpub661MyMwAqRbcEvoSo4qrsT5xhByHzUoBjm88hdCPohF1rdQ4TkntuHfccN2N7FbmAmBgmaBxD7VY1QZ43YfgGRLBL37BBkBhYbezgnsPRVP \
    --backupKey xpub661MyMwAqRbcF8Evdu2twZS3ELM8Wg6DqSrVR8GpvCeXMgj3rNPf4nasU1FBzX9yeWYTfyikk7rfuWS5FkMqGnh3HpxeeYtuQEx7FVq5FZa \
    --bitgoKey xpub661MyMwAqRbcEnKX5fhLKdrixijBk4sYCZ7gQ1qRUmib2dXragQVAjv9GmXL4tusTKRwcrYAGrXGETFkFxKFSBCFUAuqdbdM9u2uyQtYkUW

Development

git clone https://github.com/BitGo/BitGoJS.git
yarn install
cd modules/utxo-bin
yarn tsx bin/index.ts ...

See the toplevel DEVELOPERS.md for more information.

版本与发布记录

@bitgo/utxo-bin 共发布 358 个版本,首次发布于 2022/01/27;过去 12 个月发布了 78 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
3.28.4latest2026/11/062 天前
3.28.32026/11/044 天前
3.28.22026/10/309 天前
3.28.12026/10/2711 天前
3.28.02026/10/2316 天前
3.27.172026/10/2118 天前

其他发布通道:cr604-hf → 1.0.2-hotfix.0,cr406-hf → 1.0.2-hotfix.1,dev → 1.1.0-dev.0,hotfix → 2.1.0-hotfix.1,rc → 2.1.0-rc.28。

关于 @bitgo/utxo-bin 的常见问题

@bitgo/utxo-bin 是什么?

Command-line utility for BitGo UTXO transactions

如何安装 @bitgo/utxo-bin?

在项目目录运行 npm install @bitgo/utxo-bin,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 utxo-bin,可以用 npx utxo-bin 直接运行。

@bitgo/utxo-bin 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/bitgo__utxo-bin 是否存在。

@bitgo/utxo-bin 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@bitgo/utxo-bin 可以商用吗?

@bitgo/utxo-bin 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@bitgo/utxo-bin 的下载量有多少?

根据 npm 官方下载统计,@bitgo/utxo-bin 在 2026/10/08 – 2026/11/06 这 30 天内被下载 3,651 次,日均约 122 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@bitgo/utxo-bin 还在维护吗?

最新版本 3.28.4 发布于 2026/11/06(2 天前);至今共发布 358 个版本,其中过去 12 个月发布了 78 个;首次发布于 2022/01/27。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。