/ledger-bitcoin

A Flutter Ledger App Plugin for the Bitcoin blockchain

Primary LanguageDartMIT LicenseMIT


ledger-bitcoin

A Flutter Ledger App Plugin for the Bitcoin blockchain
« Explore the docs »

Report Bug · Request Feature · Ledger Flutter



Overview

Ledger Nano devices are the perfect hardware wallets for managing your crypto & NFTs on the go. This Flutter package is a plugin for the ledger_flutter package to get accounts and sign transactions using the Bitcoin blockchain.

Getting started

Installation

Install the latest version of this package via pub.dev:

ledger_bitcoin: ^latest-version

For integration with the Ledger Flutter package, check out the documentation here.

Setup

Create a new instance of an BitcoinLedgerApp and pass an instance of your Ledger object.

final app = BitcoinLedgerApp(ledger);

Usage

Get Wallet Address

Depending on the required blockchain and Ledger Application Plugin, the getAccounts() method can be used to fetch the main address from the Ledger Nano device.

final accounts = await app.getAccounts(device);

License

The ledger_bitcoin SDK is released under the MIT License (MIT). See LICENSE for details.