Socket
Socket
Sign inDemoInstall

electrum-helper

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electrum-helper

A series of helper methods for interacting with the electrum-client library.


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

INTRODUCTION

electrum-helper is a series of helper methods for interacting with the electrum-client library.

INSTALLATION

  • With npm:
    • npm install electrum-helper
  • With yarn:
    • yarn add electrum-helper

USAGE

const { connectToPeer, getFeeEstimate, getNewBlockHeadersSubscribe } = require("electrum-helper");
const coin = "bitcoin";
connectToPeer({ coin }).then(async (peerResponse) => {
    const [blockHeader,feeEstimate] = await Promise.all([
        getNewBlockHeadersSubscribe({ coin }),
        getFeeEstimate({ coin })
    ]);
    console.log(peerResponse);
    console.log(blockHeader);
    console.log(feeEstimate);
})

TODO

  • Add documentation containing more examples.
  • Remove old/deprecated methods.

Keywords

FAQs

Package last updated on 21 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc