Skip to content

Latest commit

History

268 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Ledger.Net

Cross Platform C# Library for the Ledger Cryptocurrency Hardwarewallet

Ledger Nano X Support is here in Version 4.0.0!

a

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:

publicasyncTaskDisplayAddress(){WindowsHidDeviceFactory.Register(newDebugLogger(),newDebugTracer());varledgerManagerBroker=newLedgerManagerBroker(3000,null,null,newLedgerManagerFactory());varledgerManager=(IAddressDeriver)awaitledgerManagerBroker.WaitForFirstDeviceAsync();varpath=$"m/49'/0'/0'/0/0";varaddressPath=AddressPathBase.Parse<BIP44AddressPath>(path);varaddress=awaitledgerManager.GetAddressAsync(addressPath,false,true);}

Contact

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.

CoinAddress
Bitcoin33LrG1p81kdzNUHoCnsYGj6EHRprTKWu3U
Ethereum0x7ba0ea9975ac0efb5319886a287dcf5eecd3038e

Based On

LibraryDescription
Hardwarewallets.NetThis 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.NetLedger.Net communicates with the devices via the Hid.Net and Usb.Net libraries. You can see the repo for this library here.

See Also

LibraryDescription
Trezor.NetTrezor Hardwarewallet Library
KeepKey.NetKeepKey Hardwarewallet Library
Ledger .NET APIA similar library
Ledger Bitcoin AppBitcoin wallet application for Ledger Blue and Nano S
Ledger Ethereum AppEthereum wallet application for Ledger Blue and Nano S

About

Cross Platform C# Library For Ledger Hardware Wallet

Topics

Resources

Contributing

Stars

15 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages