Catalog npm
Back to packageRELEASE DETAILS

2.3.4

npm

@0xflick/mempool.js

NPM package module for Mempool APIs.

axiosbisqbitcoinblockchainhtmlliquidmainetmempoolmempool.jsmempool.spacenodejssignettestnettypescriptwebsocket
Published1 Feb 2024
Direct dependencies13
Transitive dependenciesNot calculated

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.

Declared dependencies 13

Native requirements
13 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
axios
Environment
{
  "local_name": "axios",
  "alias": false,
  "peer_metadata": null
}
0.24.0runtime
ws
Environment
{
  "local_name": "ws",
  "alias": false,
  "peer_metadata": null
}
8.3.0runtime
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^14.14.25development
@types/websocket
Environment
{
  "local_name": "@types/websocket",
  "alias": false,
  "peer_metadata": null
}
^1.0.2development
@types/ws
Environment
{
  "local_name": "@types/ws",
  "alias": false,
  "peer_metadata": null
}
^7.4.1development
@typescript-eslint/eslint-plugin
Environment
{
  "local_name": "@typescript-eslint/eslint-plugin",
  "alias": false,
  "peer_metadata": null
}
^4.14.2development
@typescript-eslint/parser
Environment
{
  "local_name": "@typescript-eslint/parser",
  "alias": false,
  "peer_metadata": null
}
^4.14.2development
browserify
Environment
{
  "local_name": "browserify",
  "alias": false,
  "peer_metadata": null
}
^17.0.0development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^7.19.0development
nodemon
Environment
{
  "local_name": "nodemon",
  "alias": false,
  "peer_metadata": null
}
^2.0.7development
tinyify
Environment
{
  "local_name": "tinyify",
  "alias": false,
  "peer_metadata": null
}
^3.0.0development
ts-node
Environment
{
  "local_name": "ts-node",
  "alias": false,
  "peer_metadata": null
}
^9.1.1development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.1.3development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "2d8db4c44d91680c618e85c3f5612d62317135e0",
  "integrity": "sha512-aoIqxnG0aWtTJBF1A4RLxI7aNKlhlPbGPiUd5yMyt0hOL5GYmCsUbePU11VQ7LpZtl2BLiWsDG1caZyGKnVQhw==",
  "tarball": "https://registry.npmjs.org/@0xflick/mempool.js/-/mempool.js-2.3.4.tgz",
  "fileCount": 101,
  "unpackedSize": 174531,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQDcnIlv+jq7nU4KxzWwoCyyEWW32tV3srUPEQ8a69apbwIhAJuXiyOlvDaySwgQlDISWAT6H0SU80e5popEuYnGIpxa"
    }
  ]
}

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_version:9989d8b37fa5d73a11893eb10e70afa06f01713b9efba3cedd4044643288f7e3

Other collected versions

2.3.102 Feb2.3.92 Feb2.3.82 Feb2.3.72 Feb2.3.62 Feb2.3.52 FebView all collected versions →