Struct bitcoind_json_rpc_regtest::json::CreateWallet
source · pub struct CreateWallet {
pub name: String,
pub warnings: Option<Vec<String>>,
}
Expand description
Result of the JSON-RPC method createwallet
.
createwallet “wallet_name” ( disable_private_keys blank “passphrase” avoid_reuse descriptors load_on_startup external_signer )
Creates and loads a new wallet.
Arguments:
- wallet_name (string, required) The name for the new wallet. If this is a path, the wallet will be created at the path location.
- disable_private_keys (boolean, optional, default=false) Disable the possibility of private keys (only watchonlys are possible in this mode).
- blank (boolean, optional, default=false) Create a blank wallet. A blank wallet has no keys or HD seed. One can be set using sethdseed.
- passphrase (string, optional) Encrypt the wallet with this passphrase.
- avoid_reuse (boolean, optional, default=false) Keep track of coin reuse, and treat dirty and clean coins differently with privacy considerations in mind.
- descriptors (boolean, optional, default=true) Create a native descriptor wallet. The wallet will use descriptors internally to handle address creation. Setting to “false” will create a legacy wallet; however, the legacy wallet type is being deprecated and support for creating and opening legacy wallets will be removed in the future.
- load_on_startup (boolean, optional) 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 (boolean, optional, default=false) 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.
Fields§
§name: String
The wallet name if created successfully.
If the wallet was created using a full path, the wallet_name will be the full path.
warnings: Option<Vec<String>>
Warning messages, if any, related to creating and loading the wallet.
Trait Implementations§
source§impl Clone for CreateWallet
impl Clone for CreateWallet
source§fn clone(&self) -> CreateWallet
fn clone(&self) -> CreateWallet
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CreateWallet
impl Debug for CreateWallet
source§impl<'de> Deserialize<'de> for CreateWallet
impl<'de> Deserialize<'de> for CreateWallet
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateWallet, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateWallet, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for CreateWallet
impl PartialEq for CreateWallet
source§fn eq(&self, other: &CreateWallet) -> bool
fn eq(&self, other: &CreateWallet) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CreateWallet
impl Serialize for CreateWallet
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for CreateWallet
impl StructuralPartialEq for CreateWallet
Auto Trait Implementations§
impl Freeze for CreateWallet
impl RefUnwindSafe for CreateWallet
impl Send for CreateWallet
impl Sync for CreateWallet
impl Unpin for CreateWallet
impl UnwindSafe for CreateWallet
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more