@gobob/bob-sdk

中文文档
6.7.1发布于 2026/11/11TypeScriptCommonJS构建来源已验证近 30 天下载 1.4万

The BOB SDK helps you interact with BOB and Bitcoin.

原始使用文档
文档目录8 节
  1. Learn more
  2. Using the sdk in your project
  3. Building BOB SDK
  4. Clone the repository
  5. Install dependencies
  6. Build
  7. Test
  8. Contributing

BOB SDK

The BOB SDK helps you interact with BOB and Bitcoin.

Learn more

Using the sdk in your project

Install @gobob/bob-sdk with your package manager of choice.

pnpm i @gobob/bob-sdk

or

yarn add @gobob/bob-sdk

or

npm i @gobob/bob-sdk

Building BOB SDK

Clone the repository

Clone the repository and change to the sdk subfolder.

git clone [email protected]:bob-collective/bob.git
cd bob/sdk

Install dependencies

We use pnpm in the examples below. But the steps below should also work when using yarn or npm instead.

pnpm i

openapi-generator-cli generate --skip-validate-spec \
    -i https://gateway-api-staging.gobob.xyz/api-doc.json \
    -g typescript-fetch \
    -o ./src/gateway/generated-client

Build

pnpm build

Test

pnpm test

Contributing

BOB is an open-source project. We welcome contributions of all sorts. There are many ways to help, from reporting issues, contributing code, and helping us improve our community.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Set up git so you can sign your commits (Alternative link: GitHub: Signing commits)
    Unsigned PRs cannot be merged, so do not skip this step.
  2. Fork the Project
  3. Create your Feature Branch (git checkout -b yourname/AmazingFeature)
  4. Commit your Changes (git commit -m 'Add some AmazingFeature')
  5. Push to the Branch (git push origin yourname/AmazingFeature)
  6. Open a Pull Request with a description of feature you are adding

If you are searching for a place to start or would like to discuss features, reach out to us:

版本与发布记录

@gobob/bob-sdk 共发布 248 个版本,首次发布于 2023/10/12;过去 12 个月发布了 148 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
6.7.1latest2026/11/115 天前
6.7.02026/11/097 天前
6.6.02026/10/2027 天前
6.5.02026/10/1928 天前
6.4.02026/10/091 个月前
6.3.02026/09/281 个月前

其他发布通道:rc → 6.0.1-rc0。

关于 @gobob/bob-sdk 的常见问题

@gobob/bob-sdk 是什么?

The BOB SDK helps you interact with BOB and Bitcoin.

如何安装 @gobob/bob-sdk?

在项目目录运行 npm install @gobob/bob-sdk,或使用 pnpm add / yarn add / bun add。

@gobob/bob-sdk 支持 TypeScript 吗?

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

@gobob/bob-sdk 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@gobob/bob-sdk 可以商用吗?

@gobob/bob-sdk 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@gobob/bob-sdk 的下载量有多少?

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

@gobob/bob-sdk 还在维护吗?

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