ledger_algorand 1.0.0-pre.1 copy "ledger_algorand: ^1.0.0-pre.1" to clipboard
ledger_algorand: ^1.0.0-pre.1 copied to clipboard

PlatformAndroid

A Ledger App Plugin for the Algorand blockchain

example/README.md


ledger-algorand

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

Report Bug · Request Feature · Ledger Flutter



/// Create a new instance of LedgerOptions.
final options = LedgerOptions(
  maxScanDuration: const Duration(milliseconds: 5000),
);

/// Create a new instance of Ledger.
final ledger = Ledger(
  options: options,
);

/// Create a new Algorand Ledger Plugin.
final algorandApp = AlgorandLedgerApp(ledger);

/// Scan for devices
ledger.scan().listen((device) => print(device));

/// or get a connected one
final device = ledger.devices.firstOrNull;

/// Fetch a list of accounts/public keys from your ledger.
final accounts = await algorandApp.getAccounts(device);