An open API service indexing awesome lists of open source software.

https://github.com/cake-tech/ledger-ethereum

A Flutter Ledger App Plugin for the Ethereum blockchain
https://github.com/cake-tech/ledger-ethereum

ethereum flutter flutter-package ledger

Last synced: about 2 months ago
JSON representation

A Flutter Ledger App Plugin for the Ethereum blockchain

Awesome Lists containing this project

README

          






ledger-ethereum


A Flutter plugin to scan, connect & sign transactions using Ledger Nano devices using USB & BLE


« Explore the docs »




Report Bug
· Request Feature




## 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](https://pub.dev/packages/ledger_flutter) package to get accounts and sign transactions using the
Ethereum blockchain.

### Supported devices

| | BLE | USB |
|---------|--------------------|--------------------|
| Android | :heavy_check_mark: | :heavy_check_mark: |
| iOS | :heavy_check_mark: | :x: |

### Installation

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

```yaml
ledger_ethereum: ^latest-version
```

For integration with the Ledger Flutter package, check out the documentation [here](https://pub.dev/packages/ledger_flutter).

### Setup

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

```dart
final app = EthereumLedgerApp(ledger);
```

## Usage

### Get public keys

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

Based on the implementation and supported protocol, there might be only one public key in the list of accounts.

```dart
final accounts = await app.getAccounts(device);
```