npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ledgerhq/hw-app-aptos

v6.38.7

Published

Ledger Hardware Wallet Aptos Application API

Downloads

46,092

Readme

GitHub, Ledger Devs Discord, Developer Portal

@ledgerhq/hw-app-aptos

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

Ledger Hardware Wallet Aptos JavaScript bindings.


Are you adding Ledger support to your software wallet?

You may be using this package to communicate with the Aptos Nano App.

For a smooth and quick integration:

  • See the developers’ documentation on the Developer Portal and
  • Go on Discord to chat with developer support and the developer community.

API

Table of Contents

Aptos

Aptos API

Parameters

  • transport Transport
  • scrambleKey (optional, default "aptos")

Examples

import Transport from "@ledgerhq/hw-transport";
import Aptos from "@ledgerhq/hw-app-aptos";

function establishConnection() {
    return Transport.create()
        .then(transport => new Aptos(transport));
}

function fetchAddress(aptosClient) {
    return aptosClient.getAddress("44'/144'/0'/0/0");
}

function signTransaction(aptosClient, deviceData, seqNo, buffer) { *
    const transactionBlob = encode(buffer);

    console.log('Sending transaction to device for approval...');
    return aptosClient.signTransaction("44'/144'/0'/0/0", transactionBlob);
}

function prepareAndSign(aptosClient, seqNo) {
    return fetchAddress(aptosClient)
        .then(deviceData => signTransaction(aptosClient, deviceData, seqNo));
}

establishConnection()
    .then(aptos => prepareAndSign(aptos, 123, payload))
    .then(signature => console.log(`Signature: ${signature}`))
    .catch(e => console.log(`An error occurred (${e.message})`));

getAddress

get Aptos address for a given BIP 32 path.

Parameters
  • path string a path in BIP 32 format
  • display optionally enable or not the display (optional, default false)
Examples
const result = await aptos.getAddress("44'/144'/0'/0/0");
const { publicKey, address } = result;

Returns Promise<AddressData> an object with a publicKey, address and (optionally) chainCode

signTransaction

sign a Aptos transaction with a given BIP 32 path

Parameters
  • path string a path in BIP 32 format
  • txBuffer Buffer the buffer to be signed for transaction
Examples
const signature = await aptos.signTransaction("44'/144'/0'/0/0", "12000022800000002400000002614000000001315D3468400000000000000C73210324E5F600B52BB3D9246D49C4AB1722BA7F32B7A3E4F9F2B8A1A28B9118CC36C48114F31B152151B6F42C1D61FE4139D34B424C8647D183142ECFC1831F6E979C6DA907E88B1CAD602DB59E2F");

Returns Promise<{signature: Buffer}> a signature as hex string

bippath

BIP32 Path Handling for Aptos Wallets

This file provides utility functions to handle BIP32 paths, which are commonly used in hierarchical deterministic (HD) wallets. It includes functions to convert BIP32 paths to and from different formats, extract components from extended public keys (xpubs), and manipulate path elements.