ILedger
Namespace: IotaSdk
A connection to the IOTA app on a Ledger device.
Every call completes once the device answers, which for address
verification includes waiting for the user to confirm on the device. Calls
on the same Ledger, including through the LedgerSigners created from
it, run one at a time.
public interface ILedger
Attributes NullableContextAttribute
Methods
ExitApp()
Close the app running on the device and return to the dashboard.
On Speculos, this ends the emulated app.
Task ExitApp()
Returns
Exceptions
GetPublicKey(String)
Read the public key at a derivation path such as
m/44'/4218'/0'/0'/0'.
Task<Ed25519PublicKey> GetPublicKey(string path)
Parameters
path String
Returns
Exceptions
IsAppOpen()
Task<bool> IsAppOpen()
Returns
OpenApp()
Open the IOTA app, from the dashboard or by closing another app first.
Does nothing if the IOTA app is already running, or on a speculos
connection.
Task OpenApp()
Returns
Exceptions
Signer(String)
Create a signer for the key at a derivation path such as
m/44'/4218'/0'/0'/0', reading its public key from the device.
The signer shares this Ledger's connection, which stays usable.
Task<LedgerSigner> Signer(string path)
Parameters
path String
Returns
Exceptions
VerifyAddress(String)
Show the address at a derivation path on the device for the user to confirm, and return its public key.
Task<Ed25519PublicKey> VerifyAddress(string path)
Parameters
path String
Returns
Exceptions
Version()
Read the version of the IOTA app.
Task<LedgerAppVersion> Version()