}\r
\r
/**\r
- * Request an account at a specific BIP-44 index.\r
+ * Since the Ledger device can only return one account per request, this\r
+ * overrides the default behavior of calling `accounts()` to instead\r
+ * directly derive and return a single account at the specified index.\r
*\r
* @returns Account\r
*/\r
return account\r
}\r
\r
+ /**\r
+ * Since the Ledger device can only return one account per request, this\r
+ * overrides the default behavior of returning multiple accounts to instead\r
+ * return a single account at the specified index.\r
+ *\r
+ * @returns Account\r
+ */\r
+ async accounts (): Promise<never> {\r
+ throw new Error(`Ledger device only supports 'account()' calls`)\r
+ }\r
+\r
/**\r
* Sign a block with the Ledger device.\r
*\r