
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@ledgerhq/hw-app-solana
Advanced tools
GitHub, Ledger Devs Discord, Developer Portal
Ledger Hardware Wallet Solana JavaScript bindings.
You may be using this package to communicate with the Solana Nano App.
For a smooth and quick integration:
To run speculos-smoke
test make sure Speculos running (apdu port 9999 and api rest endpoint http://0.0.0.0:5000) with Solana app installed on it. Then run the command from root workspace:
$ yarn run ts-node packages/hw-app-solana/tests/speculos-smoke.ts
If ledger returns error 6808
- enable blind signature in settings (not needed for unit testing).
Solana API
transport
Transport a transport for sending commands to a devicescrambleKey
string a scramble key (optional, default "solana_default_scramble_key"
)import Solana from "@ledgerhq/hw-app-solana";
const solana = new Solana(transport);
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.
solana.getAddress("44'/501'/0'").then(r => r.address)
Returns Promise<{address: Buffer}> an object with the address field
Sign a Solana transaction.
solana.signTransaction("44'/501'/0'", txBuffer).then(r => r.signature)
Returns Promise<{signature: Buffer}> an object with the signature field
Sign a Solana off-chain message.
solana.signOffchainMessage("44'/501'/0'", msgBuffer).then(r => r.signature)
Returns Promise<{signature: Buffer}> an object with the signature field
Get application configuration.
solana.getAppConfiguration().then(r => r.version)
Returns Promise<AppConfig> application config object
FAQs
Ledger Hardware Wallet Solana Application API
The npm package @ledgerhq/hw-app-solana receives a total of 12,284 weekly downloads. As such, @ledgerhq/hw-app-solana popularity was classified as popular.
We found that @ledgerhq/hw-app-solana demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.