deriveaddresses
deriveaddresses "descriptor" ( range )
Derives one or more addresses corresponding to an output descriptor.
Examples of output descriptors include:
-
pkh(<pubkey>)
: P2PKH outputs for the given public key. -
wpkh(<pubkey>)
: Native SegWit P2PKH outputs for the given public key. -
sh(multi(<n>,<pubkey>,<pubkey>,…))
: P2SH-multisig outputs for the specified threshold and public keys. -
raw(<hex script>)
: Outputs where the scriptPubKey matches the provided hex script.
In these examples, <pubkey>
can either refer to a fixed public key in hexadecimal notation or to an xpub/xprv, optionally followed by one or more path elements separated by “/”, where “h” indicates a hardened child key.
For additional details on output descriptors, refer to the documentation in the doc/descriptors.md
file.
Argument #1 – descriptor
Type: string, required
The descriptor.
Argument #2 – range
Type: numeric or array, optional
If a ranged descriptor is used, this specifies the end or the range (in [begin,end] notation) to derive.
Result
Examples
First three native segwit receive addresses: