Skip to content

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

License

Notifications You must be signed in to change notification settings

coreyphillips/electrum-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published