npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

openchain-sdk-yxl

v1.1.0

Published

openchain sdk

Downloads

2

Readme

OpenChain SDK for Node.js

简介

OpenChain SDK for Node.js 是一个用于与OpenChain区块链网络进行交互的JavaScript/TypeScript开发工具包。该SDK提供了一系列简单易用的API,帮助开发者快速构建基于OpenChain的应用程序。

系统要求

  • Node.js >= 18.0.0

安装

npm install openchain-sdk-yxl

或使用yarn:

yarn add openchain-sdk-yxl

主要功能

  • 账户管理
  • 区块链交互(区块和交易)
  • 智能合约操作
  • 资产管理
  • CTP10代币支持
  • WebSocket连接

基本使用

const OpenChainSDK = require('openchain-sdk-yxl');

// 初始化SDK
const sdk = new OpenChainSDK({
    // 配置项
});

// 创建账户
const account = sdk.account.create();

// 发送交易
async function sendTransaction() {
    try {
        const result = await sdk.transaction.send({
            // 交易参数
        });
        console.log('交易结果:', result);
    } catch (error) {
        console.error('交易失败:', error);
    }
}

模块说明

账户模块

  • 账户创建和管理
  • 密钥对生成
  • 地址管理

区块链模块

  • 区块查询
  • 交易处理
  • 链上数据访问

合约模块

  • 智能合约部署
  • 合约调用
  • 合约事件监听

资产模块

  • 资产发行
  • 转账操作
  • 余额查询

CTP10代币

  • 代币发行
  • 转账
  • 授权管理

依赖说明

主要依赖包括:

  • axios:HTTP客户端
  • bignumber.js:大数处理
  • protobufjs:协议缓冲区支持
  • ws:WebSocket客户端

许可证

本项目采用ISC许可证。

贡献指南

欢迎提交问题报告和改进建议。如果您想贡献代码,请:

  1. Fork 本仓库
  2. 创建您的特性分支
  3. 提交您的改动
  4. 推送到您的分支
  5. 创建Pull Request

版本历史

当前版本:1.1.0

技术支持

如果您在使用过程中遇到问题,请通过以下方式获取帮助:

  • 提交GitHub Issues
  • 查阅在线文档
  • 联系技术支持团队