@btc-vision/transaction

中文文档
1.8.9发布于 2026/07/24Apache-2.0TypeScriptESM + CJS构建来源已验证近 30 天下载 3291

OPNet transaction library allows you to create and sign transactions for the OPNet network.

原始使用文档
文档目录10 节
  1. Overview
  2. Security Audit
  3. Installation
  4. Documentation
  5. Prerequisites
  6. Development
  7. Contributing
  8. Reporting Issues
  9. License
  10. Links

OPNet - Transaction Builder

Bitcoin TypeScript NodeJS NPM Gulp ESLint

code style: prettier

Overview

This library is a modern and easy-to-use solution for developers looking to work with Bitcoin transactions and OP_NET technologies. The OP_NET Transaction Builder library allows you to create and sign transactions for Bitcoin. Written in TypeScript, this library provides a comprehensive set of functions to facilitate the creation, reading, and manipulation of OP_NET transactions, smart contracts, and other OP_NET-related technologies.

You can create any sort of transaction, and you don't have to bother about managing signer types or anything complicated.

Security Audit

Verichains

Audited by Verichains Security Report

This library has been professionally audited by Verichains.

See SECURITY.md for details.

Installation

npm install @btc-vision/transaction

Documentation

Documentation is available here and on docs.opnet.org.

Prerequisites

  • Node.js version 24.x or higher
  • npm (Node Package Manager)

Development

  1. Clone the repository:
    git clone https://github.com/btc-vision/transaction.git
    
  2. Navigate to the repository directory:
    cd transaction
    
  3. Install the required dependencies:
    npm install
    
  4. Build the project:
    npm run build
    

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests and build
  5. Submit a pull request

See the pull request template for requirements.

Contributions are welcome! Please read through the CONTRIBUTING.md file for guidelines on how to submit issues, feature requests, and pull requests.

Reporting Issues

License

Apache-2.0

版本与发布记录

@btc-vision/transaction 共发布 248 个版本,首次发布于 2024/06/06;过去 12 个月发布了 63 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.8.9latest2026/07/243 个月前
1.8.82026/07/034 个月前
1.8.72026/06/035 个月前
1.8.7-beta.0beta2026/04/256 个月前
1.8.62026/04/037 个月前
1.8.6-beta.02026/04/037 个月前

其他发布通道:alpha → 1.8.0-alpha.2,rc → 1.8.0-rc.11,beta → 1.8.7-beta.0。

关于 @btc-vision/transaction 的常见问题

@btc-vision/transaction 是什么?

OPNet transaction library allows you to create and sign transactions for the OPNet network.

如何安装 @btc-vision/transaction?

在项目目录运行 npm install @btc-vision/transaction,或使用 pnpm add / yarn add / bun add。

@btc-vision/transaction 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@btc-vision/transaction 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@btc-vision/transaction 需要什么版本的 Node.js?

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

@btc-vision/transaction 可以商用吗?

@btc-vision/transaction 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@btc-vision/transaction 的下载量有多少?

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

@btc-vision/transaction 还在维护吗?

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