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 🙏

© 2024 – Pkg Stats / Ryan Hefner

core-sdk-test

v1.0.25

Published

该包主要功能是实现与链的交互,以及新增随机nonce

Downloads

11

Readme

星火包

该包主要功能是实现与链的交互,以及新增随机nonce

node版本

v20.0.0

功能接口

一、 账户服务接口

| 序号 | 接口 | 说明 | | -------- | ----------------------- | ----------------------------------------- | | 1 | createAccount | 生成主链数字身份 | | 2 | getAccount | 该接口用于获取指定的账户信息 | | 3 | getNonce | 该接口用于获取指定账户的nonce值 | | 4 | getAccountBalance | 该接口用于获取指定账户的星火令的余额 | | 5 | setMetadatas | 设置metadatas | | 6 | getAccountMetadatas | 该接口用于获取指定账户的metadatas信息 | | 7 | setPrivilege | 设置权限 | | 8 | getAccountPriv | 获取账户权限 |

二、 区块服务接口列表

| 序号 | 接口 | 说明 | | -------- | ----------------------- | ------------------------------------------ | | 1 | getBlockNumber | 该接口用于查询最新的区块高度 | | 2 | getTransactions | 该接口用于查询指定区块高度下的所有交易 | | 3 | getBlockInfo | 该接口用于获取区块信息 | | 4 | getBlockLatestInfo | 该接口用于获取最新区块信息 | | 5 | getValidators | 该接口用于获取指定区块中所有验证节点数 | | 6 | getLatestValidators | 该接口用于获取最新区块中所有验证节点数 |

三、 合约服务接口列表

| 序号 | 接口 | 说明 | | -------- | ------------------------ | -------------------------------------- | | 1 | checkContractAddress | 该接口用于检测合约账户的有效性 | | 2 | contractCreate | 创建合约 | | 3 | getContractInfo | 该接口用于查询合约代码 | | 4 | getContractAddress | 该接口用于根据交易Hash查询合约地址 | | 5 | contractQuery | 该接口用于调试合约代码 | | 6 | contractInvoke | 合约调用 | | 7 | batchContractInvoke | 批量合约调用 |

四、 交易服务接口列表

| 序号 | 接口 | 说明 | | -------- | ---------------------- | -------------------------------------- | | 1 | gasSend | 交易 | | 2 | getTransactionInfo | 该接口用于实现根据交易hash查询交易 | | 3 | evaluateFee | 该接口用于交易费用评估 | | 4 | submitTrans | 提交交易 | | 5 | getTxCacheSize | 该接口用于获取交易池中交易条数 | | 6 | batchEvaluateFee | 该接口为批量费用评估接口 | | 7 | parseBlob | blob****数据解析 | | 8 | batchGasSend | 批量转移星火令 |