We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad4f677 commit cf3201dCopy full SHA for cf3201d
src/commands.rs
@@ -472,6 +472,8 @@ pub enum HwiSubCommand {
472
Devices,
473
/// Register hardware wallet
474
Register,
475
+ /// Generate address
476
+ Address,
477
}
478
479
/// Subcommands available in REPL mode.
src/handlers.rs
@@ -375,6 +375,10 @@ pub async fn handle_offline_wallet_subcommand(
375
//TODO: return status of wallet registration
376
Ok(json!({ "hmac": hmac }))
377
378
+ HwiSubCommand::Address => {
379
+ let address = wallet.next_unused_address(KeychainKind::External);
380
+ Ok(json!({ "address": address.address }))
381
+ }
382
},
383
384
0 commit comments