LIGHTNING-SETPSBTVERSION(7) LIGHTNING-SETPSBTVERSION(7) NAME setpsbtversion -- Command for setting PSBT version SYNOPSIS setpsbtversion psbt version DESCRIPTION The setpsbtversion RPC command converts the provided PSBT to the given ver- sion, 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. RETURN VALUE On success, an object is returned, containing: * psbt (string): A converted PSBT of the requested version. ERRORS The following error codes may occur: * -32602: Parameter missed or malformed. AUTHOR Gregory Sanders gsanders87@gmail.com is mainly responsible. SEE ALSO lightning-fundpsbt(7), lightning-utxopsbt(7), lightning-signpsbt(7) RESOURCES Main web site: https://github.com/ElementsProject/lightning EXAMPLES 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 v26.06.1 LIGHTNING-SETPSBTVERSION(7)
NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | ERRORS | AUTHOR | SEE ALSO | RESOURCES | EXAMPLES
Want to link to this manual page? Use this URL:
<https://man.FreeBSD.org/cgi/man.cgi?query=lightning-setpsbtversion&sektion=7&manpath=FreeBSD+Ports+15.1.quarterly>