# @ledgerhq/hw-app-solana

> Ledger Hardware Wallet Solana Application API

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

## Install

```sh
npm install @ledgerhq/hw-app-solana
pnpm add @ledgerhq/hw-app-solana
yarn add @ledgerhq/hw-app-solana
bun add @ledgerhq/hw-app-solana
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 7.10.7 |
| Published | 2026-08-04 |
| First published | 2021-10-11 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 109.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 616 |
| Maintainers | phenry-ledger, sergii-shkolin, gbrahm-ledger, thomas.coudray, ldg-github-ci, vbouzon, ledger-releaser |
| Keywords | Ledger, LedgerWallet, Solana, sol, NanoS, Blue, Hardware Wallet |

## Links

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

## Dependencies (3)

- [bip32-path](https://npm.io/package/bip32-path.md) ^0.4.2
- [@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

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 7.10.7 (latest) — 2026-08-04
- 7.10.8-nightly.20260918020501 (nightly) — 2026-09-18
- 7.5.0-next.0 (next) — 2025-06-17
- 7.2.2-hotfix.0 (hotfix) — 2024-07-22
- 7.2.0-windows-certificate.0 (windows-certificate) — 2024-05-28
- 7.1.4-new-wc.0 (new-wc) — 2024-02-20
- 7.1.4-new-wc-test.0 (new-wc-test) — 2024-02-20
- 7.1.4-wc-test.0 (wc-test) — 2024-02-14
- 7.1.3-start-exchange.0 (start-exchange) — 2024-01-31
- 7.1.2-custom-exchange.0 (custom-exchange) — 2024-01-09
- 7.0.14-tag-word.0 (tag-word) — 2023-10-25
- 7.0.10-notarizer.0 (notarizer) — 2023-06-22
- 7.0.7-recover-beta.0 (recover-beta) — 2023-04-01
- 7.0.7-recover-simu.0 (recover-simu) — 2023-03-24
- 7.0.7-recover-staging.0 (recover-staging) — 2023-03-22
- … 376 more at https://npm.io/package/@ledgerhq/hw-app-solana/versions

## README

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

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

## @ledgerhq/hw-app-solana

> \[!WARNING]
> **Status: DEPRECATED** — Replaced by the Device Management Kit (DMK). Migrate to `@ledgerhq/device-signer-kit-solana`.

Ledger Hardware Wallet Solana JavaScript bindings.

***

## Are you adding Ledger support to your software wallet?

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

For a smooth and quick integration:

*   See the developers’ documentation on the [Developer Portal](https://developers.ledger.com/docs/transport/overview/) and
*   Go on [Discord](https://developers.ledger.com/discord-pro/) to chat with developer support and the developer community.

***

## Notes

To run `speculos-smoke` test make sure [Speculos](https://github.com/LedgerHQ/speculos) running (apdu port 9999 and api rest endpoint <http://0.0.0.0:5000>) with [Solana app](https://github.com/LedgerHQ/app-solana) installed on it. Then run the command from root workspace:

```bash
$ yarn run ts-node packages/hw-app-solana/tests/speculos-smoke.ts
```

## Troubleshooting

If ledger returns error `6808` - enable blind signature in settings (not needed for unit testing).

## API

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

#### Table of Contents

*   [Solana](#solana)
    *   [Parameters](#parameters)
    *   [Examples](#examples)
    *   [getAddress](#getaddress)
        *   [Parameters](#parameters-1)
        *   [Examples](#examples-1)
    *   [provideTrustedDynamicDescriptor](#providetrusteddynamicdescriptor)
        *   [Parameters](#parameters-2)
    *   [signTransaction](#signtransaction)
        *   [Parameters](#parameters-3)
        *   [Examples](#examples-2)
    *   [signOffchainMessage](#signoffchainmessage)
        *   [Parameters](#parameters-4)
        *   [Examples](#examples-3)
    *   [getAppConfiguration](#getappconfiguration)
        *   [Examples](#examples-4)
    *   [getChallenge](#getchallenge)
    *   [provideTrustedName](#providetrustedname)
        *   [Parameters](#parameters-5)

### Solana

Solana API

#### Parameters

*   `transport` **Transport** a transport for sending commands to a device
*   `scrambleKey` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** a scramble key (optional, default `"solana_default_scramble_key"`)

#### Examples

```javascript
import Solana from "@ledgerhq/hw-app-solana";
const solana = new Solana(transport);
```

#### getAddress

Get Solana address (public key) for a BIP32 path.

Because Solana uses Ed25519 keypairs, as per SLIP-0010
all derivation-path indexes will be promoted to hardened indexes.

##### Parameters

*   `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** a BIP32 path
*   `display` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** flag to show display (optional, default `false`)

##### Examples

```javascript
solana.getAddress("44'/501'/0'").then(r => r.address)
```

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{address: [Buffer](https://nodejs.org/api/buffer.html)}>** an object with the address field

#### provideTrustedDynamicDescriptor

Provides trusted dynamic and signed coin metadata

##### Parameters

*   `data` **DescriptorInput** An object containing the descriptor and its signature from the CAL

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

#### signTransaction

Sign a Solana transaction.

##### Parameters

*   `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** a BIP32 path
*   `txBuffer` **[Buffer](https://nodejs.org/api/buffer.html)** serialized transaction
*   `userInputType` **(`"ata"` | `"sol"`)?** optional user input type (ata or sol, for the case of token transfers)

##### Examples

```javascript
solana.signTransaction("44'/501'/0'", txBuffer).then(r => r.signature)
```

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{signature: [Buffer](https://nodejs.org/api/buffer.html)}>** an object with the signature field

#### signOffchainMessage

Sign a Solana off-chain message.

##### Parameters

*   `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** a BIP32 path
*   `msgBuffer` **[Buffer](https://nodejs.org/api/buffer.html)** serialized off-chain message

##### Examples

```javascript
solana.signOffchainMessage("44'/501'/0'", msgBuffer).then(r => r.signature)
```

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{signature: [Buffer](https://nodejs.org/api/buffer.html)}>** an object with the signature field

#### getAppConfiguration

Get application configuration.

##### Examples

```javascript
solana.getAppConfiguration().then(r => r.version)
```

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<AppConfig>** application config object

#### getChallenge

Method returning a 4 bytes TLV challenge as an hex string

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

#### provideTrustedName

Provides a trusted name to be displayed during transactions in place of the token address it is associated to. It shall be run just before a transaction involving the associated address that would be displayed on the device.

##### Parameters

*   `data` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** a stringified buffer of some TLV encoded data to represent the trusted name

Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)>** a boolean

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