1{ 2 "$schema": "http://json-schema.org/draft-07/schema#", 3 "type": "object", 4 "additionalProperties": false, 5 "required": [ "psbt", "feerate_per_kw", "estimated_final_weight", "excess_msat" ], 6 "properties": { 7 "psbt": { 8 "type": "string", 9 "description": "Unsigned PSBT which fulfills the parameters given" 10 }, 11 "feerate_per_kw": { 12 "type": "u32", 13 "description": "The feerate used to create the PSBT, in satoshis-per-kiloweight" 14 }, 15 "estimated_final_weight": { 16 "type": "u32", 17 "description": "The estimated weight of the transaction once fully signed" 18 }, 19 "excess_msat": { 20 "type": "msat", 21 "description": "The amount above *satoshi* which is available. This could be zero, or dust; it will be zero if *change_outnum* is also returned" 22 }, 23 "change_outnum": { 24 "type": "u32", 25 "description": "The 0-based output number where change was placed (only if parameter *excess_as_change* was true and there was sufficient funds)" 26 }, 27 "reservations": { 28 "type": "array", 29 "description": "If *reserve* was true or a non-zero number, just as per lightning-reserveinputs(7)", 30 "items": { 31 "type": "object", 32 "required": ["txid", "vout", "was_reserved", "reserved", "reserved_to_block" ], 33 "additionalProperties": false, 34 "properties": { 35 "txid": { 36 "type": "txid", 37 "description": "The txid of the transaction" 38 }, 39 "vout": { 40 "type": "u32", 41 "description": "The 0-based output number" 42 }, 43 "was_reserved": { 44 "type": "boolean", 45 "description": "Whether this output was previously reserved" 46 }, 47 "reserved": { 48 "type": "boolean", 49 "enum": [ true ], 50 "description": "Whether this output is now reserved" 51 }, 52 "reserved_to_block": { 53 "type": "u32", 54 "description": "The blockheight the reservation will expire" 55 } 56 } 57 } 58 } 59 } 60} 61