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

iobroker.mempool-space

v0.0.3

Published

Mempool.space Websocket

Downloads

133

Readme

Logo

ioBroker.mempool-space

NPM version Downloads Number of Installations Current version in stable repository

NPM

Tests: Test and Release

The adapter is under development and can change daily! Not intended for productive use.

Experience the Bitcoin network up close in your home!

Live data from mempool.space WebSocket API.

This adapter provides real-time Bitcoin network information using WebSocket connections to the mempool.space API. It offers a wide range of data points including block information, transaction fees, network statistics ans price conversions.

Live data websocket

Important: The adapter or mempool.space will never ask for your seed!

⚠️ NEVER ⚠️

If you share your seed you will lose 100% of everything!

Features

  1. Real-time Data: Utilizes WebSocket connections for live updates from the Bitcoin network.

  2. Price Conversions:

    • Bitcoin to USD and EUR conversion rates
    • "Moscow Time" representation (Satoshis per USD/EUR)
  3. Transaction Fees:

    • Fastest, Half-Hour, Hour, Economy, and Minimum fee rates
  4. Block Information:

    • Latest block height, hash, and timestamp
    • Time since last block
    • Mining pool that mined the last block
  5. Network Statistics:

    • Average block time
    • Current and previous difficulty adjustments
    • Estimated time until next difficulty adjustment
    • Estimated time until next halving
  6. Mempool Information:

    • Number of unconfirmed transactions

Configuration

In the adapter settings, you can configure the following option:

  • WebSocket URL: The URL for the mempool.space WebSocket API (default: wss://mempool.space/api/v1/ws)

  • You can use a public or local mempool.space instance.

  • For a local instance, refer to the documentation of your bitcoin node software.

No further configuration is required. All states and connections are created automatically by the adapter.

States

The adapter creates automatically the following channels and states:

  • conversion

    • usd: Bitcoin to USD conversion rate
    • eur: Bitcoin to EUR conversion rate
    • moscowtimeUSD: Moscow-Time USD
    • moscowtimeEUR: Moscow-Time EUR
    • timestamp: Timestamp of the last conversion update
  • fees

    • fastest: Fastest transaction fee rate
    • halfHour: Fee rate for confirmation within half an hour
    • hour: Fee rate for confirmation within an hour
    • economy: Economy fee rate
    • minimum: Minimum fee rate
  • block

    • height: Height of the latest block
    • hash: Hash of the latest block
    • timestamp: Timestamp of the latest block
    • miningPool: Name of the pool that mined the last block
    • timeSinceLastBlock: Time elapsed since the last block
  • network

    • averageBlockTime: Average Blocktime
    • difficultyChange: Current difficulty adjustment (in percent)
    • previousDifficultyChange: Previous difficulty adjustment (in percent)
    • nextDifficultyAdjustment: Estimated timestamp of the next difficulty adjustment
    • remainingTimeToDifficulty: Remaining time until the next difficulty adjustment
    • remainingTimeToHalving: Remaining time until the next halving
  • mempool

    • transactionCount: Number of unconfirmed transactions in the mempool
  • info

    • connectionn: Indicates if the WebSocket connection is active

Library

  • API-Documentation: https://mempool.space/docs/api/websocket
  • npm-Module: https://www.npmjs.com/package/@mempool/mempool.js
  • luxon-Module: https://github.com/moment/luxon

Changelog

0.0.3 (2024-11-17)

  • (Hans-Wurst-21) fix issue from ioBroker-Bot
  • (Hans-Wurst-21) add bluefox at npm
  • (Hans-Wurst-21) correction readme
  • (Hans-Wurst-21) set ioBroker.admin to '>=6.17.14'
  • (Hans-Wurst-21) add responsive design for adminconfig

0.0.2 (2024-11-16)

  • (Hans-Wurst-21) npm release
  • (Hans-Wurst-21) fix issue from ioBroker-Bot
  • (Hans-Wurst-21) prepare for npm upload

To-do

  • [ ] Complete translation
  • [ ] Clean up code
  • [ ] Add examples
  • [ ] Query of user-defined addresses
  • [ ] Query of user-defined transactions
  • [ ] Maybe telegram-bot

Special Thanks

A special thanks to https://einundzwanzig.space and https://www.youtube.com/@haus_automation

License

MIT License

Copyright (c) 2024 Hans-Wurst-21 [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.