#[macro_export]
macro_rules! impl_client_v22__list_descriptors {
() => {
impl Client {
pub fn list_descriptors(&self) -> Result<ListDescriptors> {
self.call("listdescriptors", &[])
}
}
};
}
#[macro_export]
macro_rules! impl_client_v22__load_wallet {
() => {
impl Client {
pub fn load_wallet(&self, wallet: &str) -> Result<LoadWallet> {
self.call("loadwallet", &[wallet.into()])
}
}
};
}
#[macro_export]
macro_rules! impl_client_v22__wallet_display_address {
() => {
impl Client {
pub fn wallet_display_address(&self, address: &str) -> Result<WalletDisplayAddress> {
self.call("walletdisplayaddress", &[address.into()])
}
}
};
}
#[macro_export]
macro_rules! impl_client_v22__create_wallet {
() => {
impl Client {
pub fn create_wallet_external_signer(&self, wallet: &str) -> Result<CreateWallet> {
let disable_private_keys = true;
let blank = false;
let passphrase = String::new();
let avoid_reuse = false;
let descriptors = true;
let load_on_startup = false;
let external_signer = true;
self.call(
"createwallet",
&[
wallet.into(),
disable_private_keys.into(),
blank.into(),
passphrase.into(),
avoid_reuse.into(),
descriptors.into(),
load_on_startup.into(),
external_signer.into(),
],
)
}
}
};
}