* Instantiates Account objects from their private keys which are used to\r
* derive public keys and then discarded.\r
*\r
- * @param {string | Uint8Array<ArrayBuffer> | KeyPair | (string | Uint8Array<ArrayBuffer> | KeyPair)[]} input - Indexes and keys of the accounts\r
+ * @param {(string | Uint8Array<ArrayBuffer> | KeyPair | (string | Uint8Array<ArrayBuffer> | KeyPair)[])} input - Indexes and keys of the accounts\r
* @param {'private'} [type] - Indicates private keys\r
- * @returns {Account | Account[] | Promise<Account | Account[]>} Promise for array of new Account objects\r
+ * @returns {(Account | Account[] | Promise<Account | Account[]>)} Promise for array of new Account objects\r
*/\r
static load (input: string | Uint8Array<ArrayBuffer> | KeyPair | (string | Uint8Array<ArrayBuffer> | KeyPair)[], type?: 'private'): Account | Account[] | Promise<Account | Account[]> {\r
const isInputArray = Array.isArray(input)\r
* A successful response sets the balance, frontier, and representative\r
* properties.\r
*\r
- * @param {Rpc|string|URL} rpc - RPC node information required to call `account_info`\r
+ * @param {(Rpc | string | URL)} rpc - RPC node information required to call `account_info`\r
*/\r
async refresh (rpc: Rpc | string | URL): Promise<void> {\r
return await _refresh(this, rpc)\r
* The block must already be signed (see `sign()` for more information).
* The block must also have a `work` value.
*
- * @param {Rpc|string|URL} rpc - RPC node information required to call `process`
+ * @param {Rpc} rpc - RPC node information required to call `process`
* @returns {Promise<string>} Hash of the processed block
*/
async process (rpc: Rpc): Promise<string> {
* Collects the funds from a specified range of accounts in a wallet and sends
* them all to a single recipient address. Hardware wallets are unsupported.
*
- * @param {Rpc|string|URL} rpc - RPC node information required to refresh accounts, calculate PoW, and process blocks
- * @param {(Wallet)} wallet - Wallet from which to sweep funds
+ * @param {(Rpc | string | URL)} rpc - RPC node information required to refresh accounts, calculate PoW, and process blocks
+ * @param {Wallet} wallet - Wallet from which to sweep funds
* @param {string} recipient - Destination address for all swept funds
* @param {number} [from=0] - Starting account index to sweep
* @param {number} [to=from] - Ending account index to sweep