pcli/command/view/
wallet_id.rs

1use anyhow::Result;
2
3use penumbra_sdk_keys::FullViewingKey;
4
5#[derive(Debug, clap::Parser)]
6pub struct WalletIdCmd {}
7
8impl WalletIdCmd {
9    /// Determine if this command requires a network sync before it executes.
10    pub fn offline(&self) -> bool {
11        true
12    }
13
14    pub fn exec(&self, fvk: &FullViewingKey) -> Result<()> {
15        let wallet_id = fvk.wallet_id();
16        println!("{wallet_id}");
17
18        Ok(())
19    }
20}