# @ledgerhq/hw-transport-node-speculos-http

> Ledger Hardware Wallet communication layer with speculos Nano simulator using the http api

Latest version **6.36.7** (published 2026-08-04) · Apache-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @ledgerhq/hw-transport-node-speculos-http
pnpm add @ledgerhq/hw-transport-node-speculos-http
yarn add @ledgerhq/hw-transport-node-speculos-http
bun add @ledgerhq/hw-transport-node-speculos-http
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 6.36.7 |
| Published | 2026-08-04 |
| First published | 2022-01-04 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 68.2 KB |
| Known vulnerabilities | 0 (+34 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 631 |
| Maintainers | phenry-ledger, sergii-shkolin, gbrahm-ledger, thomas.coudray, ldg-github-ci, vbouzon, ledger-releaser |
| Keywords | Ledger, LedgerWallet, proxy, http, NanoS, Blue, Hardware Wallet, Speculos |

## Links

- npm: https://www.npmjs.com/package/@ledgerhq/hw-transport-node-speculos-http
- Repository: https://github.com/LedgerHQ/ledger-live
- Homepage: https://github.com/LedgerHQ/ledger-live/tree/develop/libs/ledgerjs/packages/hw-transport-node-speculos-http
- Issues: https://github.com/LedgerHQ/ledger-live/issues
- npm.io page: https://npm.io/package/@ledgerhq/hw-transport-node-speculos-http

## Dependencies (5)

- [rxjs](https://npm.io/package/rxjs.md) 7.8.2
- [axios](https://npm.io/package/axios.md) 1.13.5
- [@ledgerhq/logs](https://npm.io/package/@ledgerhq/logs.md) ^6.17.0
- [@ledgerhq/errors](https://npm.io/package/@ledgerhq/errors.md) ^7.0.0
- [@ledgerhq/hw-transport](https://npm.io/package/@ledgerhq/hw-transport.md) 6.35.7

## Alternatives

- [promise-throttle](https://npm.io/package/promise-throttle.md) — 44.2K weekly downloads
- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads

## Recent versions

- 6.36.7 (latest) — 2026-08-04
- 6.36.7-nightly.20260731030119 (nightly) — 2026-07-31
- 6.29.7-next.0 (next) — 2025-06-17
- 6.29.2-hotfix.0 (hotfix) — 2024-07-22
- 6.29.0-windows-certificate.0 (windows-certificate) — 2024-05-28
- 6.28.4-new-wc.0 (new-wc) — 2024-02-20
- 6.28.4-new-wc-test.0 (new-wc-test) — 2024-02-20
- 6.28.4-wc-test.0 (wc-test) — 2024-02-14
- 6.28.3-start-exchange.0 (start-exchange) — 2024-01-31
- 6.28.2-custom-exchange.0 (custom-exchange) — 2024-01-09
- 6.27.20-tag-word.0 (tag-word) — 2023-10-25
- 6.27.16-notarizer.0 (notarizer) — 2023-06-22
- 6.27.13-recover-beta.0 (recover-beta) — 2023-04-01
- 6.27.13-recover-simu.0 (recover-simu) — 2023-03-24
- 6.27.13-recover-staging.0 (recover-staging) — 2023-03-22
- … 353 more at https://npm.io/package/@ledgerhq/hw-transport-node-speculos-http/versions

## README

<img src="https://user-images.githubusercontent.com/4631227/191834116-59cf590e-25cc-4956-ae5c-812ea464f324.png" height="100" />

## @ledgerhq/hw-transport-node-speculos-http

> \[!NOTE]
> **Status: STABLE** — Production-ready; API is considered stable.

A transport for <https://github.com/LedgerHQ/speculos> Nano simulator using its HTTP API.

[GitHub](https://github.com/LedgerHQ/ledger-live/),
[Ledger Devs Discord](https://developers.ledger.com/discord-pro),
[Developer Portal](https://developers.ledger.com/)

### Getting started

*   Install <https://github.com/LedgerHQ/speculos>
*   Make sure to have a speculos running with an API port (default port is 5000).

```js
import SpeculosTransport from "@ledgerhq/hw-transport-node-speculos-http";

async function exampleSimple() {
  const transport = await SpeculosTransport.open();
  const res = await transport.send(0xE0, 0x01, 0x00, 0x00);
}

async function exampleAdvanced() {
  const transport = await SpeculosTransport.open({ baseURL: "http://localhost:5000" });
  transport.eventStream.once("data", {
    // we will click right when the display changes
    transport.button("right");
  });
  // we can also use eventStream.on and match the data buffer with the expected display before taking action
  // derivate btc address and ask for device verification
  const res = await transport.send(0xE0, 0x40, 0x01, 0x00, Buffer.from("058000002c8000000080000000000000000000000f"));
}
```

## API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

#### Table of Contents

*   [SpeculosHttpTransport](#speculoshttptransport)
    *   [Parameters](#parameters)
    *   [Examples](#examples)
    *   [button](#button)
        *   [Parameters](#parameters-1)

### SpeculosHttpTransport

**Extends Transport**

Speculos TCP transport implementation

#### Parameters

*   `instance` **AxiosInstance**&#x20;
*   `opts` **SpeculosHttpTransportOpts**&#x20;

#### Examples

```javascript
import SpeculosHttpTransport from "@ledgerhq/hw-transport-node-speculos-http";
const transport = await SpeculosHttpTransport.open();
const res = await transport.send(0xE0, 0x01, 0, 0);
```

#### button

Press and release button
buttons available: left, right, both

##### Parameters

*   `but` **any**&#x20;

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<void>**&#x20;

---
_Source: https://npm.io/package/@ledgerhq/hw-transport-node-speculos-http · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
