pub struct GetAddressInfoResponse {Show 24 fields
pub address: String,
pub desc: Option<String>,
pub embedded: Option<Value>,
pub hdkeypath: Option<String>,
pub hdmasterfingerprint: Option<String>,
pub hdseedid: Option<String>,
pub hex: Option<String>,
pub ischange: bool,
pub iscompressed: Option<bool>,
pub ismine: bool,
pub isscript: Option<bool>,
pub iswatchonly: bool,
pub iswitness: bool,
pub labels: Value,
pub parent_desc: Option<String>,
pub pubkey: Option<String>,
pub pubkeys: Option<Value>,
pub script: Option<ScriptBuf>,
pub scriptPubKey: ScriptBuf,
pub sigsrequired: Option<u64>,
pub solvable: bool,
pub timestamp: Option<u64>,
pub witness_program: Option<String>,
pub witness_version: Option<u64>,
}Expand description
Response for the GetAddressInfo RPC method
Fields§
§address: StringThe bitcoin address validated.
desc: Option<String>A descriptor for spending coins sent to this address (only when solvable).
embedded: Option<Value>Information about the address embedded in P2SH or P2WSH, if relevant and known.
hdkeypath: Option<String>The HD keypath, if the key is HD and available.
hdmasterfingerprint: Option<String>The fingerprint of the master key.
hdseedid: Option<String>The Hash160 of the HD seed.
hex: Option<String>The redeemscript for the p2sh address.
ischange: boolIf the address was used for change output.
iscompressed: Option<bool>If the pubkey is compressed.
ismine: boolIf the address is yours.
isscript: Option<bool>If the key is a script.
iswatchonly: bool(DEPRECATED) Always false.
iswitness: boolIf the address is a witness address.
labels: ValueArray of labels associated with the address. Currently limited to one label but returned as an array to keep the API stable if multiple labels are enabled in the future.
parent_desc: Option<String>The descriptor used to derive this address if this is a descriptor wallet
pubkey: Option<String>The hex value of the raw public key for single-key addresses (possibly embedded in P2SH or P2WSH).
pubkeys: Option<Value>Array of pubkeys associated with the known redeemscript (only if script is multisig).
script: Option<ScriptBuf>The output script type. Only if isscript is true and the redeemscript is known. Possible types: nonstandard, pubkey, pubkeyhash, scripthash, multisig, nulldata, witness_v0_keyhash, witness_v0_scripthash, witness_unknown.
scriptPubKey: ScriptBufThe hex-encoded output script generated by the address.
sigsrequired: Option<u64>The number of signatures required to spend multisig output (only if script is multisig).
solvable: boolIf we know how to spend coins sent to this address, ignoring the possible lack of private keys.
timestamp: Option<u64>The creation time of the key, if available, expressed in UNIX epoch time.
witness_program: Option<String>The hex value of the witness program.
witness_version: Option<u64>The version number of the witness program.
Trait Implementations§
Source§impl Clone for GetAddressInfoResponse
impl Clone for GetAddressInfoResponse
Source§fn clone(&self) -> GetAddressInfoResponse
fn clone(&self) -> GetAddressInfoResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more