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

@onechain/btc

v0.0.2

Published

Plugin BTC of One Chain.

Downloads

5

Readme

@onechain/btc

约定

  1. BTC 尚未明确 chainID ,所以在本项目中我们统一使用 mainnet, testnet, regtest 作为几个主要测试链的 chainID 。

Dependencies

  • bitcoinjs-lib 由 bitcoinjs 维护,代码结构优秀,3000+ star 。
  • bip39 由 bitcoinjs 维护,被 bitcoinjs-lib, web3 依赖。
  • coinselect 由 bitcoinjs 维护,是一个内置了多种 unspents 挑选算法的库。
  • lodash-es 知名库,38000+ star。
  • node-fetch fetch 在 node 环境的兼容实现,3000+ star,800w+ 周下载量,被 eosjs 依赖。
  • util node 的 util 模块在各种环境下的实现,web3 兼容浏览器时必须依赖,1000w+ 周下载量。
  • buffer buffer 在 browser 环境的兼容实现,star 较少,800w+ 周下载量,被很多库间接依赖。

推送交易的 fee 填错了怎么办?

这个失误主要会造成的问题是交易卡住,一直阻塞在 unconfirmed 状态。解决的方法是使用同样的 inputs 再创建一笔交易覆盖即可,也就是双花,最终 fee 更高的交易会优先被确认。对于 api 服务不支持双花的情况,可以换个 api 服务商,或使用 Electrum 钱包创建双花交易。