A Flutter Package to support communicate between Ledger Nano X device and EVM compatible chains apps
Fully support at Avacus so you can have the best experience.
Feel free to use and don't hesitate to raise issue if there are.
Install the latest version of this package via pub.dev:
ledger_ethereum: ^latest-version
For integration with the Ledger Flutter package, check out the documentation here.
Create a new instance of an EthereumLedgerApp
and pass an instance of your Ledger
object.
final app = EthereumLedgerApp(ledger);
final accounts = await app.getAccounts(device);
final signature = await app.signPersonalMessage(
device,
messageInBytes,
);
final signature = await app.signEIP712Message(
device,
messageInJson,
);
final transactionInBytes = TransactionHandler.encodeTx(transaction, chainId);
final signature = await app.signTransaction(
device,
transactionInBytes,
);