pub struct CreatewalletParams {
pub wallet_name: String,
pub disable_private_keys: Option<bool>,
pub blank: Option<bool>,
pub passphrase: Option<String>,
pub avoid_reuse: Option<bool>,
pub descriptors: Option<bool>,
pub load_on_startup: Option<bool>,
pub external_signer: Option<bool>,
}Expand description
Creates and loads a new wallet.
Fields§
§wallet_name: StringThe name for the new wallet. If this is a path, the wallet will be created at the path location.
disable_private_keys: Option<bool>Disable the possibility of private keys (only watchonlys are possible in this mode).
blank: Option<bool>Create a blank wallet. A blank wallet has no keys.
passphrase: Option<String>Encrypt the wallet with this passphrase.
avoid_reuse: Option<bool>Keep track of coin reuse, and treat dirty and clean coins differently with privacy considerations in mind.
descriptors: Option<bool>If set, must be “true”
load_on_startup: Option<bool>Save wallet name to persistent settings and load on startup. True to add wallet to startup list, false to remove, null to leave unchanged.
external_signer: Option<bool>Use an external signer such as a hardware wallet. Requires -signer to be configured. Wallet creation will fail if keys cannot be fetched. Requires disable_private_keys and descriptors set to true.