Ledger devices are the perfect hardware wallets for managing your crypto & NFTs on the go. This Flutter package is a plugin for the ledger_flutter_plus package to get accounts and sign transactions using the Bitcoin blockchain.
Install the latest version of this package via pub.dev:
ledger_bitcoin: ^latest-versionFor integration with the Ledger Flutter package, check out the documentation here.
Create a new instance of an BitcoinLedgerApp and pass an instance of your LedgerConnection object.
final app = BitcoinLedgerApp(connection);Depending on the required blockchain and Ledger Application Plugin, the getAccounts() method can be used to fetch the main address from the Ledger device.
final accounts = await app.getAccounts();The ledger_bitcoin SDK is released under the MIT License (MIT). See LICENSE for details.