pub struct GetAddressInfo {
pub address: Address<NetworkUnchecked>,
pub is_mine: Option<bool>,
pub is_watchonly: Option<bool>,
pub solvable: Option<bool>,
}
Expand description
Result of the getaddressinfo
RPC method.
Provides detailed information about a Bitcoin address, including ownership status, watching capabilities, and spending permissions within the wallet.
§Note
Optional fields may be None
if the wallet doesn’t have specific information
about the address or if the address is not related to the wallet.
Fields§
§address: Address<NetworkUnchecked>
The Bitcoin address that was queried.
Returns the same address that was provided as input to getaddressinfo
,
validated and parsed into the proper Address type.
is_mine: Option<bool>
Whether the address belongs to the wallet (can receive payments to it).
true
if the wallet owns the private key or can generate signatures for this address.
false
if the address is not owned by the wallet. None
if ownership status is unknown.
is_watchonly: Option<bool>
Whether the address is watch-only (monitored but not spendable).
true
if the wallet watches this address for incoming transactions but cannot
spend from it (no private key). false
if the address is fully controlled.
None
if watch status is not applicable.
solvable: Option<bool>
Whether the wallet knows how to spend coins sent to this address.
true
if the wallet has enough information (private keys, scripts) to create
valid spending transactions from this address. false
if the address cannot
be spent by this wallet. None
if spendability cannot be determined.
Trait Implementations§
Source§impl Clone for GetAddressInfo
impl Clone for GetAddressInfo
Source§fn clone(&self) -> GetAddressInfo
fn clone(&self) -> GetAddressInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more