LedgerTransportImpl
Namespace: IotaSdk
A link to a Ledger device implemented in the host language, for the links the SDK does not provide: Bluetooth through Ledger's mobile SDKs, or WebHID and WebUSB in the browser.
public class LedgerTransportImpl : LedgerTransport, System.IDisposable
Inheritance Object → LedgerTransportImpl
Implements LedgerTransport, IDisposable
Constructors
LedgerTransportImpl(UInt64)
public LedgerTransportImpl(ulong pointer)
Parameters
pointer UInt64
Methods
Destroy()
public void Destroy()
Dispose()
public void Dispose()
Exchange(Byte[])
Send an APDU command (cla ins p1 p2 len data) to the device and
return its answer: the response payload followed by the two-byte
status word.
Opening or closing an app closes the link on some transports. Ledger
then calls this at intervals until the app answers, so re-establish a
closed link here.
public async Task<Byte[]> Exchange(Byte[] apdu)
Parameters
apdu Byte[]