You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add PSBT version setting RPC to aid with debugging and compatibility
PSBTv2 support is quite low in the ecosystem, so having a call to convert
log messages and the like should be useful since they'll often be in v2.
Changelog-Added: Added setpsbtversion RPC to aid debugging and compatibility
The **setpsbtversion** RPC command converts the provided PSBT to the given version, and returns the base64 result of the conversion. Returns an error if version is invalid.
13
+
14
+
-*psbt*: The PSBT to change versions.
15
+
-*version*: The version to set.
16
+
17
+
EXAMPLE JSON REQUEST
18
+
------------
19
+
```json
20
+
{
21
+
"id": 82,
22
+
"method": "setpsbtversion",
23
+
"params": {
24
+
"psbt": "cHNidP8BAAoCAAAAAAAAAAAAAA==",
25
+
"version": "2"
26
+
}
27
+
}
28
+
```
29
+
30
+
RETURN VALUE
31
+
------------
32
+
33
+
If successful the command returns a converted PSBT of the requested version.
0 commit comments