# @beblurt/dblurt 中文文档

规范地址：https://npmcn.com/package/%40beblurt/dblurt/

版本：0\.17\.0
npm 元数据更新时间：2026-07-18T08:06:42.327Z
中文译文更新时间：2026-11-07T20:07:04.296Z
软件包许可：BSD-3-Clause-No-Military-License

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40beblurt/dblurt
原文对照：https://npmcn.com/package/%40beblurt/dblurt/?lang=original
项目主页：https://gitlab.com/beblurt/dblurt#readme
源码仓库：https://gitlab.com/beblurt/dblurt

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：1.8 MB，102 个文件
- 模块格式：CommonJS
- TypeScript 类型：包内自带
- Node.js 要求：\>=18
- 运行依赖：10 个
- 首次发布：2022-11-26T02:55:00.868Z
- 最新版本发布：2026-07-18T08:06:42.169Z
- 近 30 天下载量：7252（2026-10-08 至 2026-11-06，npm 官方下载统计）
- 已发布版本数：54（近 12 个月 16 个）

## 中文简介

用于 Node.js QQ18 的现代 Blurt 块链客户端库( JSON- RPC 连接器) 和带本地获取的浏览器

## 安装

```sh
npm install @beblurt/dblurt
```

也可以使用：`pnpm add @beblurt/dblurt`、`yarn add @beblurt/dblurt`、`bun add @beblurt/dblurt`

## README

# @beblurt/dblurt (英语)

[![npm](https://img.shields.io/npm/v/@beblurt/dblurt.svg)](https://www.npmjs.com/package/@beblurt/dblurt) [![Documentation](https://img.shields.io/badge/docs-dblurt.beblurt.com-blueviolet.svg)](https://dblurt.beblurt.com/) [![TypeScript](https://img.shields.io/badge/TypeScript-ready-blue.svg)](https://dblurt.beblurt.com/guides/typescript.html) [![Runtime compatibility](https://img.shields.io/badge/runtime-compatibility-brightgreen.svg)](https://dblurt.beblurt.com/reference/compatibility.html)

**构建现代 dApps** 编辑 **模糊块链** 单个 JavaScript 和 **类型脚本 SDK**。 。 。 .

`@beblurt/dblurt` 是一个用于在 $2 上构建应用程序的 JavaScript 和 TypeScript SDK **模糊的社会屏障链**。 。 。 .

你是否正在建立一个 **网络3 dApp**,社交应用程序,仪表板,自动化工具,钱包工作流程或AI集成, `@beblurt/dblurt` 为与Blurt生态系统的互动提供了现代、有打字和实用的基础.

新到模糊吗? 发现 **模糊的社会屏障链** 时间 **[https://blurt.blog/\*\* (中文(简体) )](https://blurt.blog/**)。 。 。 .**

想看看吗 `@beblurt/dblurt` 生产? **贝鲁特语Name** (单位:千美元)**[https://beblurt.com/\* (英语)](https://beblurt.com/*)\*)是用SDK构建的一款完整的社会应用,并演示它如何为现实世界的模糊体验提供动力.**

> \[TIP\] **从这里开始 :** 新建为 `@beblurt/dblurt`开始于 **[开始](https://dblurt.beblurt.com/start/getting-started.html)** 向导. **再过几分钟,你就会第一次打到Blurt区块链了!**

## AI友好开发者经验

`@beblurt/dblurt` 设计与现代AI编码助理自然相通.

该寄存器包括可执行的AI上下文,可执行实例,被验证的文档和完整的API参考,以帮助助手生成更准确的代码,解释和集成.

是否使用 **克劳德代码**, (中文(简体) ), **赫尔墨斯**, (中文(简体) ), **代码**, (中文(简体) ), **聊天游戏** 或另一个编码助理,SDK的结构使AI辅助开发更加可靠.

## 看着

| 如果你想的话.. | `dblurt` 帮你.. | 继续.. |
| --- | --- | --- |
| 构建模糊 dApp | 将应用程序代码连接到 Blurt 块链数据和动作 | [开始](https://dblurt.beblurt.com/start/getting-started.html) |
| 创建社会或社区特征 | 装卸员额、概况、社区、通知和转介 | [使用社会数据](https://dblurt.beblurt.com/guides/use-nexus-social-data.html) |
| 构建仪表板、bots或索引器 | 读取账户、块、操作、证人和链条属性 | [读取链条数据](https://dblurt.beblurt.com/guides/read-chain-data.html) |
| 使应用程序具有弹性 | 配置多个端点, 当一个节点不可用时失败 | [RPC 端点和失效](https://dblurt.beblurt.com/guides/rpc-endpoints-and-failover.html) |
| 安全添加交易 | 准备、签署和播放您的应用程序, 以备副作用 | [安全广播](https://dblurt.beblurt.com/guides/broadcast-safely.html) |
| 在现代应用程序堆栈中工作 | 在 Node.js 和浏览器集成中使用 TypeScript 方便助手 | [运行时间和浏览器](https://dblurt.beblurt.com/guides/runtime-and-browser.html) |

## 安装

```bash
npm install @beblurt/dblurt
```

运行时支持由软件包元数据定义,并在CI中验证. 见 [兼容性](https://dblurt.beblurt.com/reference/compatibility.html) 用于当前支助模式.

## 安全地试试

最快的有用测试是块链查询. 它确认您的应用程序可以到达 Blurt, 使用端点故障并读取当前链条状态而不使用私钥 .

```ts
import { Client } from '@beblurt/dblurt';

const client = new Client([
    'https://rpc.blurt.blog',
    'https://rpc.beblurt.com',
    'https://blurt-rpc.saboin.com'
], {
    timeout: 15_000,
    failoverThreshold: 3
});

const props = await client.condenser.getDynamicGlobalProperties();

console.log({
    head: props.head_block_number,
    irreversible: props.last_irreversible_block_num,
    time: props.time
});
```

> \[大 此示例是故意的块链查询. 它不使用私钥,也不广播交易. 读取 [安全广播](https://dblurt.beblurt.com/guides/broadcast-safely.html) 在添加副作用之前.

## 主要 SDK 表面

| 表面 | 用它来 | 继续.. |
| --- | --- | --- |
| `client.condenser` | 常见的模糊链为:账户、内容、证人和链条属性 | [读取链条数据](https://dblurt.beblurt.com/guides/read-chain-data.html) |
| `client.database` | aPI 数据库 | [API 参考](https://dblurt.beblurt.com/reference/api.html) |
| `client.accountHistory` | 账户操作和虚拟操作历史 | [API 参考](https://dblurt.beblurt.com/reference/api.html) |
| `client.blockchain` | 块范围、流和操作迭代 | [食谱](https://dblurt.beblurt.com/recipes/) |
| `client.nexus` | 员额、社区、概况、通知和转介 | [使用社会数据](https://dblurt.beblurt.com/guides/use-nexus-social-data.html) |
| `client.read` | 高层账户、证人、投票和社会摘要 | [读取账户摘要](https://dblurt.beblurt.com/recipes/read-account-summary.html) |
| `client.broadcast` | 准备、签署和广播交易 | [安全广播](https://dblurt.beblurt.com/guides/broadcast-safely.html) |
| 操作构建器 | 建立帖子、答复、跟踪、回信、社区行动和JSON习惯 | [建立员额操作](https://dblurt.beblurt.com/recipes/build-post-operation.html) |
| 密码和公用事业 | 密钥、签名、资产、选票计算、 VESTS 转换和备忘录助手 | [API 参考](https://dblurt.beblurt.com/reference/api.html) |

## 准备好了吗?

README只是起点.

无论是想理解 Blurt 块链,构建您的第一个 dApp,探索食谱,浏览API,还是学习安全的交易工作流程,您都会在下列地点找到完整的开发者文档:

➡️ **[https://dblurt.beblurt.com/ \* (英语)](https://dblurt.beblurt.com/*)\* 联合国**

开始于 **开始** 引导,然后遵循匹配您想要构建的学习路径.

## 实例

该寄存器包括具有元数据和验证状态的可执行实例.

-   [食谱](https://dblurt.beblurt.com/recipes/) 用于面向任务的行走
-   [示例目录](https://gitlab.com/beblurt/dblurt/-/blob/main/examples/README.md)
-   [节点.js 示例](https://gitlab.com/beblurt/dblurt/-/tree/main/examples/node)
-   [类型脚本示例](https://gitlab.com/beblurt/dblurt/-/blob/main/examples/typescript/read-account.ts)
-   [浏览器示例](https://gitlab.com/beblurt/dblurt/-/tree/main/examples/browser)

对于浏览器集成, 使用 [运行时间和浏览器](https://dblurt.beblurt.com/guides/runtime-and-browser.html)仅仅为了快速的CDN实验, `https://unpkg.com/@beblurt/dblurt@latest/dist/dblurt.js` 可用; 标出用于生产CDN的软件包版本.

## 社区和支助

需要帮助还是想讨论整合?

-   请加入 **模糊的解析器**数字 : [https://discord.blurt.blog/ (中文(简体) )](https://discord.blurt.blog/)

想跟随项目和模糊开发者生态系统吗?

-   访问 **在模糊中进行修改** 社区 : [https://beblurt.com/community/blurt-101010 (英语)](https://beblurt.com/community/blurt-101010)

找到错误还是有特性请求 ?

-   打开一个问题 **吉特拉布语Name** 使用所提供的模板.

寻找完整的文件?

-   访问 **[https://dblurt.beblurt.com/ \* (英语)](https://dblurt.beblurt.com/*)\* 联合国**

## 捐款

欢迎贡献:错误修正,实例,文档改进,测试和仔细的SDK修改都有助于项目.

请阅读 [捐款额](https://gitlab.com/beblurt/dblurt/-/blob/main/CONTRIBUTING.md) 在打开合并请求之前。 它解释了贡献工作流程、验证命令、文件预期以及如何写出有用的问题.

## 警卫

每个区块链应用程序的安全事项.

请阅读 [警卫](https://npmcn.com/package/%40beblurt/dblurt/SECURITY.md) 我们的安全政策、负责任的披露程序和在报告与安全有关的问题之前保持预期.

## 更改日志

要从早先的版本中寻找最近的修改或升级吗 ?

见 [变动情况](https://npmcn.com/package/%40beblurt/dblurt/CHANGELOG.md) 发布历史和移民笔记.

## 维护者

维护者 [@ nalexadre (英语)](https://beblurt.com/@nalexadre)蓝色板链前20名证人.

## 许可证

此软件包目前声明 `BSD-3-Clause-No-Military-License` 内 `package.json`。见 [自由主义](https://npmcn.com/package/%40beblurt/dblurt/LICENSE) 整个许可证文本.

## 常见问题

### @beblurt/dblurt 是什么？

用于 Node\.js QQ18 的现代 Blurt 块链客户端库\( JSON- RPC 连接器\) 和带本地获取的浏览器

### 如何安装 @beblurt/dblurt？

在项目目录运行 npm install @beblurt/dblurt，或使用 pnpm add / yarn add / bun add。

### @beblurt/dblurt 支持 TypeScript 吗？

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

### @beblurt/dblurt 支持 ESM 还是 CommonJS？

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

### @beblurt/dblurt 需要什么版本的 Node\.js？

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

### @beblurt/dblurt 可以商用吗？

@beblurt/dblurt 使用 BSD-3-Clause-No-Military-License 许可。声明的许可为 BSD-3-Clause-No-Military-License，请阅读许可原文确认使用条件。以上为概括，不构成法律意见，请以许可原文为准。

### @beblurt/dblurt 的下载量有多少？

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

### @beblurt/dblurt 还在维护吗？

最新版本 0\.17\.0 发布于 2026/07/18（3 个月前）；至今共发布 54 个版本，其中过去 12 个月发布了 16 个；首次发布于 2022/11/26。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

