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 31cfff2 commit abf9e88Copy full SHA for abf9e88
src/commands.rs
@@ -478,6 +478,8 @@ pub enum HwiSubCommand {
478
Devices,
479
/// Register hardware wallet
480
Register,
481
+ /// Generate address
482
+ Address,
483
}
484
485
/// Subcommands available in REPL mode.
src/handlers.rs
@@ -626,6 +626,10 @@ pub async fn handle_offline_wallet_subcommand(
626
//TODO: return status of wallet registration
627
Ok(json!({ "hmac": hmac }))
628
629
+ HwiSubCommand::Address => {
630
+ let address = wallet.next_unused_address(KeychainKind::External);
631
+ Ok(json!({ "address": address.address }))
632
+ }
633
},
634
635
0 commit comments