Skip to content

getdescriptors: add --multipath - #855

Open
Sjors wants to merge 1 commit into
bitcoin-core:masterfrom
Sjors:2026/08/getdescriptors-multipath
Open

getdescriptors: add --multipath#855
Sjors wants to merge 1 commit into
bitcoin-core:masterfrom
Sjors:2026/08/getdescriptors-multipath

Conversation

@Sjors

@Sjors Sjors commented Aug 25, 2026

Copy link
Copy Markdown
Member

Allow clients to obtain multipath descriptors, instead separate receive and change descriptors, by calling getdescriptors with --multipath.

So in addition to:

$ <cmd> --fingerprint f5acc2fd --chain test getdescriptors --account 0
{
  "receive": [
    "pkh([f5acc2fd/44h/1h/0h]tpubDCwY.../0/*)#...",
    "wpkh([f5acc2fd/84h/1h/0h]tpubDCtK.../0/*)#...",
    ...
  ],
  "internal": [
    "pkh([f5acc2fd/44h/1h/0h]tpubDCwY.../1/*)#...",
    "wpkh([f5acc2fd/84h/1h/0h]tpubDCtK.../1/*)#...",
    ...
  ]
}

Clients can use:

$ <cmd> --fingerprint f5acc2fd --chain test getdescriptors --account 0 --multipath
[
  "pkh([f5acc2fd/44h/1h/0h]tpubDCwY.../<0;1>/*)#...",
  "wpkh([f5acc2fd/84h/1h/0h]tpubDCtK.../<0;1>/*)#...",
  "sh(wpkh([f5acc2fd/49h/1h/0h]tpubDC87.../<0;1>/*))#...",
  "tr([f5acc2fd/86h/1h/0h]tpubDDKY.../<0;1>/*)#..."
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant