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

bitcoin-address-sync

v1.0.7

Published

Bitcoin Address Sync is a repository used to sync all Bitcoin addresses and save balances inside a MySQL database. It also provides a Swagger API documentation for using the provided APIs.

Downloads

9

Readme

Bitcoin Address Sync

Bitcoin Address Sync is a repository used to sync all Bitcoin addresses and save balances inside a MySQL database. It also provides a Swagger API documentation for using the provided APIs.

Environment Variables

Set the following environment variables in your system or hosting environment:

  • DB_HOST: The IP address of your MySQL database (e.g., 127.0.0.1).
  • DB_USER: The username for accessing the MySQL database.
  • DB_PASSWORD: The password for accessing the MySQL database.
  • DB_DATABASE: The name of the MySQL database to be used for storing Bitcoin address balances.
  • SERVER_PORT: The port number on which the server will run (e.g., 8000).
  • SYNC_END_BLOCK_NUMBER: The block number until which the Bitcoin addresses should be synced.
  • EXPLORER_API_ENDPOINT: The endpoint of the Bitcoin explorer API to retrieve address balances.

Installation and Dependencies

Follow the instructions below to install the necessary dependencies and set up the environment.

1. Install MySQL

To install MySQL on Ubuntu 20.04, you can refer to the following guide: How To Install MySQL on Ubuntu 20.04.

2. Install Node.js

To install Node.js on Ubuntu 20.04, you can refer to the following guide: How To Install Node.js on Ubuntu 20.04.

3. Install Yarn

Yarn is a package manager for Node.js. You can install it globally by running the following command:

npm install -g yarn

4. Install Dependencies

To install the project dependencies, navigate to the project directory and run the following command:

yarn install

Usage

Follow the instructions below to run the Bitcoin Address Sync application.

Debug Mode

To run the application in debug mode, use the following command:

yarn run debug

Production Mode

To run the application in production mode, use the following command:

yarn start

Publishing a Release

To publish a release, follow the steps below:

  1. Log in to the npm registry:
yarn npm:login
  1. Publish the release:
yarn npm:publish

Please note that you should have the necessary permissions and credentials to publish the release.

For any further assistance or queries, feel free to contact us.

How to use

  1. Create a .env file based on the provided .env.example file.
  2. Install the bitcoin-address-sync package:
npm install bitcoin-address-sync
  1. Require bitcoin-address-sync in your code:
require('bitcoin-address-sync');