Skip to content
Back to skills

Mempool Js

ASecurity

mempool.js (@mempool/mempool.js): TypeScript client for mempool.space API. REST + WebSocket; address history, fee estimates, mining stats. USE WHEN: integrating mempool.space data, building wallets / explorers.

  • 31 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
ai-agentstypescriptbashgitapi

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 8, 2026

npx -y skills add claude-dev-suite/claude-dev-suite --skill mempool-js --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mempool Js?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mempool Js
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/claude-dev-suite-mempool-js/badge)](https://www.skillsdirectory.com/skills/claude-dev-suite-mempool-js)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bitcoin-libraries-mempool-js
description: |
  mempool.js (@mempool/mempool.js): TypeScript client for mempool.space
  API. REST + WebSocket; address history, fee estimates, mining stats.
  USE WHEN: integrating mempool.space data, building wallets / explorers.
allowed-tools: Read, Grep, Glob
---

# mempool.js

Official mempool.space API client.

Repo: `github.com/mempool/mempool.js`.

## Install

```bash
npm install @mempool/mempool.js
```

## Quick examples

```ts
import mempoolJS from "@mempool/mempool.js";

const { bitcoin: { addresses, fees, transactions, blocks, mempool } } =
    mempoolJS({ hostname: "mempool.space" });

// Fees
const recommended = await fees.getFeesRecommended();
// { fastestFee, halfHourFee, hourFee, economyFee, minimumFee }

// Address
const utxos = await addresses.getAddressTxsUtxo({ address: "bc1q..." });
const txs = await addresses.getAddressTxs({ address: "bc1q..." });

// Tx
const tx = await transactions.getTx({ txid: "abc..." });
const status = await transactions.getTxStatus({ txid: "abc..." });

// Mempool
const blocksProj = await mempool.getMempoolBlocks();
```

## WebSocket

```ts
const ws = await mempoolJS.ws({ hostname: "mempool.space" });
ws.on("blocks", (block) => console.log("New block:", block.id));
ws.on("mempool-blocks", (mbs) => console.log("Projection:", mbs));
ws.send({ action: "want", data: ["blocks", "mempool-blocks"] });
```

## Use cases

- Web wallet fee selection.
- Block explorer integrations.
- Fee tracker apps.

## Self-hosted

Same API works against your own mempool.space instance:
```ts
mempoolJS({ hostname: "your-mempool.local" });
```

## See also

- [../../infrastructure/mempool-space/SKILL.md](../../infrastructure/mempool-space/SKILL.md)
- [bitcoinjs-lib/SKILL.md](../bitcoinjs-lib/SKILL.md)
- [scure-btc-signer/SKILL.md](../scure-btc-signer/SKILL.md)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.