Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @ledgerhq/hw-transport-u2f with all npm packages installed. Try it out:

var hwTransportU2f = require("@ledgerhq/hw-transport-u2f")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@ledgerhq/hw-transport-u2f v4.72.2

Ledger Hardware Wallet Web implementation of the communication layer, using U2F api

Github, Ledger Devs Slack

@ledgerhq/hw-transport-u2f

Allows to communicate with Ledger Hardware Wallets.

[Web] (U2F) (legacy but reliable) – FIDO U2F api. check browser support.

API

Table of Contents

TransportU2F

Extends Transport

U2F web Transport implementation

Examples

import TransportU2F from "@ledgerhq/hw-transport-u2f";
...
TransportU2F.create().then(transport => ...)

exchange

Exchange with the device using APDU protocol.

Parameters

Returns Promise<Buffer> a promise of apdu response

setScrambleKey

Parameters

setUnwrap

Parameters

open

static function to create a new Transport from a connected Ledger device discoverable via U2F (browser support)

Parameters
  • _ any
  • _openTimeout number (optional, default 5000)

Returns Promise<TransportU2F>

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free