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

polkadot-node-api

v1.0.0

Published

API Server for Polkadot using WebSockets in JS

Downloads

4

Readme


Polkadot API 服务器使用指南

Polkadot API 服务器是对 polkadot-js/api 的封装,旨在简化使用任何编程语言查询 Polkadot 节点数据的过程。此外,API 服务器还实现了一些自定义调用,例如可以直接查询某个验证节点在任何区块高度被削减的代币数量。

此API服务器专为 PANIC 监控 Polkadot 节点而构建。因此,并非所有来自 polkadot-js/api 的功能都包含在 API 服务器中。如果您希望在 API 服务器中实现 RPC 文档查询文档 中指定的任何端点,请提交问题,我们将考虑在未来的版本中添加。如果您想尝试自己添加,还可以查看我们的贡献指南

设计与功能

想要了解更多关于 API 服务器的设计和功能集,请点击这里查看详细信息。

准备好查询了吗?

如果您准备在您的 Polkadot 节点上尝试使用 API 服务器,请按照这个指南设置并运行 API 服务器。

开始使用

  1. 安装和配置:按照提供的安装指南进行安装和配置,确保所有的依赖项都已正确安装。

  2. 运行服务器:运行 API 服务器后,它将开始监听来自 Polkadot 网络的查询请求。

  3. 发送查询:使用您选择的编程语言通过封装好的 API 端点发送查询,以获取所需的链上数据。

  4. 处理数据:API 服务器将查询结果返回给您的应用程序,您可以根据需要处理和使用这些数据。

  5. 定制和扩展:根据您的具体需求,参与到我们的项目中来,通过提交问题或贡献代码来帮助改进 API 服务器。

祝您使用愉快,有效地从 Polkadot 网络获取信息!