ledger_ethereum 1.0.2 copy "ledger_ethereum: ^1.0.2" to clipboard
ledger_ethereum: ^1.0.2 copied to clipboard

PlatformAndroid

Ledger App package for EVM compatible chains

ledger_ethereum #

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.

Getting Started #

Installation #

Install the latest version of this package via pub.flutter-io.cn:

ledger_ethereum: ^latest-version

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

Setup #

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

final app = EthereumLedgerApp(ledger);

Usage #

Get accounts #

final accounts = await app.getAccounts(device);

Sign personal message #

final signature = await app.signPersonalMessage(
    device,
    messageInBytes,
);

Sign typed data #

final signature = await app.signEIP712Message(
    device,
    messageInJson,
);

Sign transaction #

final transactionInBytes = TransactionHandler.encodeTx(transaction, chainId);
final signature = await app.signTransaction(
    device,
    transactionInBytes,
);
2
likes
130
points
57
downloads

Publisher

unverified uploader

Weekly Downloads

Ledger App package for EVM compatible chains

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

eth_sig_util, flutter, ledger, typed_data, web3dart_avacus

More

Packages that depend on ledger_ethereum