This picks up #24963.
walletprocesspsbt takes four settings after the PSBT, three of them booleans, so a positional call reads walletprocesspsbt "psbt" true "ALL" true false, and each new setting becomes one more positional parameter (#32857 would add a sixth). This moves the four settings into an options object as the second parameter. Calls that work today, by position or by name, keep working.
For the old positional form, the second position accepts either the options object or the old sign boolean, which needs a parameter to declare one type per alias. The other three settings stay as hidden positional parameters. A parameter passed by name must have the type declared for that name, so options=true is rejected instead of being read as sign=true.
Changes compared to #24963, besides the rebase on the current RPC framework.
getopenrpcinfodescribes the second parameter as an object or a boolean.- A call mixing positional and named arguments, such as
walletprocesspsbt <psbt> true finalize=falsewith-named, works as on master instead of failing with "specified twice". - The type check by name no longer reads the wrong name after an options object built from named options, which made
walletcreatefundedpsbt outputs=... add_inputs=true bip32derivs=falsefail with "JSON value of type object is not of expected type object". - A null option means the default, as a null named argument does on master.
- From review on #24963, the options are checked before the wallet sync and the PSBT decode, and a test mixes positional and named arguments.
- Unit tests for the framework changes.
descriptorprocesspsbt and createwallet I will do as follow-ups if this is accepted first.