MCPcopy Create free account
hub / github.com/bitcoindevkit/bdk-cli / get_wallet_opts

Method get_wallet_opts

src/config.rs:84–89  ·  view source on GitHub ↗

Get config for a wallet

(&self, wallet_name: &str)

Source from the content-addressed store, hash-verified

82
83 /// Get config for a wallet
84 pub fn get_wallet_opts(&self, wallet_name: &str) -> Result<WalletOpts, Error> {
85 self.wallets
86 .get(wallet_name)
87 .ok_or_else(|| Error::Generic(format!("Wallet {wallet_name} not found in config")))?
88 .try_into()
89 }
90}
91
92impl TryFrom<&WalletConfigInner> for WalletOpts {

Callers 1

load_wallet_configFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected