OptionalpaymentThe corresponding bitcoinjs-lib Payment for the provided expression, if applicable.
OptionalexpandedThe expanded descriptor expression. See ExpansionMap for a detailed explanation.
OptionalminiscriptThe extracted miniscript from the expression, if any.
OptionalexpansionA map of key expressions in the descriptor to their corresponding expanded keys. See ExpansionMap for a detailed explanation.
OptionalisA boolean indicating whether the descriptor uses SegWit.
OptionalisA boolean indicating whether the descriptor uses Taproot.
OptionalexpandedThe expanded miniscript, if any.
It corresponds to the expandedExpression without the top-level script
expression.
OptionaltapThe taproot tree expression, if any. Only defined for tr(KEY, TREE).
Example: {pk(02aa...),{pk(03bb...),pk(02cc...)}}.
OptionaltapThe parsed taproot tree, if any. Only defined for tr(KEY, TREE).
Example:
{
left: { expression: 'pk(02aa...)' },
right: {
left: { expression: 'pk(03bb...)' },
right: { expression: 'pk(02cc...)' }
}
}
OptionaltapThe compiled taproot tree metadata, if any. Only defined for tr(KEY, TREE).
Same as tapTree, but each leaf includes:
expandedExpression: descriptor-level expanded leaf expressionexpandedMiniscript: miniscript-expanded leaf (when applicable)tapScript)Note: @i placeholders are scoped per leaf, since each leaf is expanded
and satisfied independently.
Example:
{
left: {
expression: 'pk(02aa...)',
expandedExpression: 'pk(@0)',
expandedMiniscript: 'pk(@0)',
expansionMap: ExpansionMap;
tapScript: Uint8Array;
version: number;
},
right
OptionalredeemThe redeem script for the descriptor, if applicable.
OptionalwitnessThe witness script for the descriptor, if applicable.
Whether the descriptor is a ranged-descriptor.
This is the preferred or authoritative representation of an output descriptor expression. It removes the checksum and, if it is a ranged-descriptor, it particularizes it to its index.
DescriptorsFactorycreates and returns theexpand()function that parses a descriptor expression and destructures it into its elemental parts.Expansionis the type thatexpand()returns.