@beblurt/dblurt

中文文档
0.17.0发布于 2026/07/18BSD-3-Clause-No-Military-LicenseTypeScriptCommonJS近 30 天下载 7252

Modern Blurt blockchain client library (JSON-RPC connector) for Node.js >=18 and browsers with native fetch

原始使用文档
文档目录13 节
  1. 🤖 AI-friendly developer experience
  2. At a glance
  3. Install
  4. Try it safely
  5. Main SDK surfaces
  6. Ready to go further?
  7. Examples
  8. Community and support
  9. Contributing
  10. Security
  11. Changelog
  12. Maintainer
  13. License

@beblurt/dblurt

npm Documentation TypeScript Runtime compatibility

Build modern dApps on the Blurt blockchain with a single JavaScript and TypeScript SDK.

@beblurt/dblurt is a JavaScript and TypeScript SDK for building applications on the Blurt Social Blockchain.

Whether you're building a web3 dApp, a social application, a dashboard, an automation tool, a wallet workflow or an AI integration, @beblurt/dblurt provides a modern, typed and practical foundation for interacting with the Blurt ecosystem.

New to Blurt? Discover the Blurt Social Blockchain at https://blurt.blog/**.

Want to see @beblurt/dblurt in production? BeBlurt (https://beblurt.com/**) is a complete social application built with the SDK and demonstrates how it can power a real-world Blurt experience.

[!TIP] Start here: New to @beblurt/dblurt? Begin with the Getting started guide. In just a few minutes you'll make your first call to the Blurt blockchain!

🤖 AI-friendly developer experience

@beblurt/dblurt is designed to work naturally with modern AI coding assistants.

The repository includes curated AI context, executable examples, validated documentation and a complete API reference to help assistants generate more accurate code, explanations and integrations.

Whether you use Claude Code, Hermes, Codex, ChatGPT or another coding assistant, the SDK is structured to make AI-assisted development more reliable.

At a glance

If you want to…dblurt helps you…Continue with…
Build a Blurt dAppconnect application code to Blurt blockchain data and actionsGetting started
Create social or community featuresload posts, profiles, communities, notifications and referralsUse social data
Build dashboards, bots or indexersread accounts, blocks, operations, witnesses and chain propertiesRead chain data
Make apps resilientconfigure multiple endpoints and fail over when one node is unavailableRPC endpoints and failover
Add transactions safelyprepare, sign and broadcast when your app is ready for side effectsBroadcast safely
Work in modern app stacksuse TypeScript-friendly helpers in Node.js and browser integrationsRuntime and browser

Install

npm install @beblurt/dblurt

Runtime support is defined by package metadata and validated in CI. See Compatibility for the current support model.

Try it safely

The fastest useful test is a blockchain query. It confirms your app can reach Blurt, use endpoint failover and read current chain state without a private key.

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
});

[!IMPORTANT] This example is intentionally blockchain query. It does not use a private key and does not broadcast a transaction. Read Broadcast safely before adding side effects.

Main SDK surfaces

SurfaceUse it forContinue with…
client.condensercommon Blurt chain reads: accounts, content, witnesses and chain propertiesRead chain data
client.databaseappbase database API callsAPI reference
client.accountHistoryaccount operations and virtual operation historyAPI reference
client.blockchainblock ranges, streams and operation iterationRecipes
client.nexusposts, communities, profiles, notifications and referralsUse social data
client.readhigher-level account, witness, vote and social summariesRead account summary
client.broadcastpreparing, signing and broadcasting transactionsBroadcast safely
operation buildersconstructing posts, replies, follows, reblogs, community actions and custom JSONBuild post operation
crypto and utilitieskeys, signatures, assets, vote calculations, VESTS conversion and memo helpersAPI reference

Ready to go further?

The README is only the starting point.

Whether you want to understand the Blurt blockchain, build your first dApp, explore recipes, browse the API or learn safe transaction workflows, you'll find the complete developer documentation at:

➡️ https://dblurt.beblurt.com/**

Start with the Getting started guide, then follow the learning path that matches what you want to build.

Examples

The repository includes executable examples with metadata and validation status.

For browser integrations, use Runtime and browser. For quick CDN experiments only, https://unpkg.com/@beblurt/dblurt@latest/dist/dblurt.js is available; pin a package version for production CDN use.

Community and support

Need help or want to discuss an integration?

Want to follow the project and the Blurt developer ecosystem?

Found a bug or have a feature request?

  • Open an issue on GitLab using the provided templates.

Looking for the complete documentation?

Contributing

Contributions are welcome: bug fixes, examples, documentation improvements, tests and carefully scoped SDK changes all help the project.

Please read CONTRIBUTING.md before opening a merge request. It explains the contribution workflow, validation commands, documentation expectations and how to write useful issues.

Security

Security matters for every blockchain application.

Please read SECURITY.md for our security policy, responsible disclosure process and maintainer expectations before reporting security-related issues.

Changelog

Looking for recent changes or upgrading from an earlier version?

See CHANGELOG.md for release history and migration notes.

Maintainer

Maintained by @nalexadre, Blurt blockchain Top 20 Witness.

License

This package currently declares BSD-3-Clause-No-Military-License in package.json. See LICENSE for the full license text.

版本与发布记录

@beblurt/dblurt 共发布 54 个版本,首次发布于 2022/11/26;过去 12 个月发布了 16 个版本。

版本发布日期距今
0.17.0latest2026/07/183 个月前
0.16.62026/07/173 个月前
0.16.52026/07/173 个月前
0.16.42026/07/084 个月前
0.16.32026/07/064 个月前
0.16.22026/07/064 个月前

关于 @beblurt/dblurt 的常见问题

@beblurt/dblurt 是什么?

Modern Blurt blockchain client library (JSON-RPC connector) for Node.js >=18 and browsers with native fetch

如何安装 @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 和提交记录判断。