Catalog npm
PACKAGE EXPLORERView in registry

@0xflick/mempool.js

npm

NPM package module for Mempool APIs.

axiosbisqbitcoinblockchainhtmlliquidmainetmempoolmempool.jsmempool.spacenodejssignettestnettypescriptwebsocket
Versions collected12
Direct dependencies13From release 2.3.10
Last observed20 Oct, 23:36 UTC

README

Current package documentation

Mempool JS API

npm version NPM Known Vulnerabilities License: MIT

NPM package module for Mempool APIs.

Documentation: https://mempool.space/api


Installation

ES Modules

Install the npm module.

# npm
$ npm install @mempool/mempool.js --save

# yarn
$ yarn add @mempool/mempool.js

Or if you're not into package management, just download a ZIP file.

Import the module.

import mempoolJS from '@mempool/mempool.js';

// default mempool.space endpoints
const { bitcoin, bisq, liquid } = mempoolJS();

// (optional) your custom endpoints
const { bitcoin, bisq, liquid } = mempoolJS({
  protocol: 'https', // optional, defaults to http for localhost, otherwise https
  hostname: 'mempool.space', 
  network: 'testnet' // 'signet' | 'testnet' | 'mainnet'
});

CommonJS

Include the line below in the head tag of your html file.

<script type="text/javascript" src="https://mempool.space/mempool.js"></script>

Call mempoolJS() function to access the API methods.

// default mempool.space endpoints
const { bitcoin, bisq, liquid } = mempoolJS();

// (optional) your custom endpoints
const { bitcoin, bisq, liquid } = mempoolJS({
  hostname: 'mempool.space',
  network: 'testnet' // 'signet' | 'testnet' | 'mainnet'
});

Features


Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.


License MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 12

Collected releases
VersionPublishedDirect dependenciesOpen version
2.3.10Registry latest2 Feb 202413
2.3.92 Feb 202413
2.3.82 Feb 202413
2.3.72 Feb 202413
2.3.62 Feb 202413
2.3.52 Feb 202413
2.3.41 Feb 202413
2.3.1-alpha.11 Feb 202413
2.3.37 Jan 202413
2.3.27 Jan 202413
2.3.117 Sept 202313
2.3.024 Jun 202313

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
0xflick/mempool.js

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
mempool/mempool.js

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:36 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:e2aa6b83a6f4f63995d2202535d905523daa2a1e8d627c1f0af420adb1eb5497