https://github.com/coreyphillips/electrum-helper
A series of helper methods for interacting with the electrum-client library.
https://github.com/coreyphillips/electrum-helper
bitcoin electrum electrumx javascript nodejs
Last synced: 3 months ago
JSON representation
A series of helper methods for interacting with the electrum-client library.
- Host: GitHub
- URL: https://github.com/coreyphillips/electrum-helper
- Owner: coreyphillips
- License: mit
- Created: 2020-06-20T21:22:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-21T18:56:53.000Z (about 6 years ago)
- Last Synced: 2025-10-23T23:03:21.619Z (9 months ago)
- Topics: bitcoin, electrum, electrumx, javascript, nodejs
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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.