@tronweb3/tronwallet-adapter-ledger
TypeScript icon, indicating that this package has built-in type declarations

1.1.5 • Public • Published

@tronweb3/tronwallet-adapter-ledger

This package provides an adapter for the Ledger Wallet.

Usage

import { LedgerAdapter } from '@tronweb3/tronwallet-adapter-ledger';

const App = () => {
    const adapters = useMemo(
        () => [
            new LedgerAdapter({
                // Initial total accounts to get once connection is created
                accountNumber: 5,
                // Custom derivate path for address
                getDerivationPath(index) {
                    return `44'/195'/0'/0/${index}`;
                },
            }),
        ],
        []
    );
};

For more information about tronwallet adapters, please refer to @tronweb3/tronwallet-adapters

Install

npm i @tronweb3/tronwallet-adapter-ledger

DownloadsWeekly Downloads

207

Version

1.1.5

License

MIT

Unpacked Size

225 kB

Total Files

104

Last publish

Collaborators

  • cathytan
  • troncore
  • tron-dev