Skip to content
Cross Platform C# Library For Ledger Hardware Wallet
Branch: master
Clone or download
Christian
Christian Release 3.4.0
Latest commit 13ba3c8 May 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
NuGet Release Oct 5, 2018
src Release 3.4.0 May 3, 2019
.gitignore Cleanup Oct 12, 2018
CONTRIBUTING.md Update CONTRIBUTING.md Apr 27, 2019
LICENSE Release 3.4.0 May 3, 2019
README.md Update README.md Apr 28, 2019

README.md

Ledger.Net

Cross Platform C# Library for the Ledger Cryptocurrency Hardwarewallet

Currently supports: .NET Framework, .NET Core, Android, UWP , See MacOS and Linux Support

Would you like to contribute?

Quick Start

  • Clone the repo and open the solution
  • Connect Ledger and enter pin
  • Open Bitcoin app on the device
  • Run the GetBitcoinPublicKey unit test
  • Repeat for Ethereum and Tron etc.

For any instructions that are not implemented you will need to create a RequestBase, and ResponseBase class. Then, you will need to call SendRequestAsync or CallAndPrompt.

NuGet: Install-Package Ledger.Net

Example:

public async Task DisplayAddress()
{
    WindowsHidDeviceFactory.Register();
    var ledgerManagerBroker = new LedgerManagerBroker(3000, null, Prompt);
    _LedgerManager = await ledgerManagerBroker.WaitForFirstDeviceAsync();
    var address = await _LedgerManager.GetAddressAsync(0, false, 0, true);
}

Contact

Contribution

The community needs your help! Unit tests, integration tests, more app integrations and bug fixes please! Check out the Issues section.

Donate

All my libraries are open source and free. Your donations will contribute to making sure that these libraries keep up with the latest firmware, functions are implemented, and the quality is maintained.

Coin Address
Bitcoin 33LrG1p81kdzNUHoCnsYGj6EHRprTKWu3U
Ethereum 0x7ba0ea9975ac0efb5319886a287dcf5eecd3038e

Based On

Library Description
Hardwarewallets.Net This library is part of the Hardwarewallets.Net suite. It is aimed toward putting a set of common C# interfaces, and utilities that will work with all hardwarewallets.
Hid.Net, Usb.Net Ledger.Net communicates with the devices via the Hid.Net and Usb.Net libraries. You can see the repo for this library here.

See Also

Library Description
Trezor.Net Trezor Hardwarewallet Library
KeepKey.Net KeepKey Hardwarewallet Library
Ledger .NET API A similar library
Ledger Bitcoin App Bitcoin wallet application for Ledger Blue and Nano S
Ledger Ethereum App Ethereum wallet application for Ledger Blue and Nano S
You can’t perform that action at this time.