GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LIGHTNING-SETPSBTVERSION(7) LIGHTNING-SETPSBTVERSION(7)

lightning-setpsbtversion -- Command for setting PSBT version

setpsbtversion psbt version

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.

  • psbt (string): The PSBT to change versions.

  • version (u32): The version to set.

On success, an object is returned, containing:

psbt (string): A converted PSBT of the requested version.

The following error codes may occur:

-32602: Parameter missed or malformed.

Gregory Sanders <gsanders87@gmail.com> is mainly responsible.

lightning-fundpsbt(7), lightning-utxopsbt(7), lightning-signpsbt(7)

Main web site: https://github.com/ElementsProject/lightning

Example 1:

Request:

$ lightning-cli setpsbtversion -k "psbt"="cHNidP8BAgpsbt1001010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101" "version"=0

{

"id": "example:setpsbtversion#1",
"method": "setpsbtversion",
"params": {
"psbt": "cHNidP8BAgpsbt1001010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",
"version": 0
} }

Response:

{

"psbt": "cHNidP8BADUCAAAAAAFAQg8AAAAAACJRIO7yw3zIUblRUcdhCLSjdFxJsYHu2s0Y29bT0bGAGdcbbwAAAAAA" }

Example 2:

Request:

$ lightning-cli setpsbtversion "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202" "2"

{

"id": "example:setpsbtversion#2",
"method": "setpsbtversion",
"params": [
"cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202",
2
] }

Response:

{

"psbt": "cHNidP8BAgpsbt20020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202" }
Core Lightning v25.02.2

Search for    or go to Top of page |  Section 7 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.