1{ 2 "$schema": "http://json-schema.org/draft-07/schema#", 3 "type": "object", 4 "additionalProperties": false, 5 "required": [ ], 6 "properties": { 7 "warning_missing_feerates": { 8 "type": "string", 9 "description": "Some fee estimates are missing" 10 }, 11 "perkb": { 12 "type": "object", 13 "description": "If *style* parameter was perkb", 14 "additionalProperties": false, 15 "required": [ "min_acceptable", "max_acceptable" ], 16 "properties": { 17 "min_acceptable": { 18 "type": "u32", 19 "description": "The smallest feerate that you can use, usually the minimum relayed feerate of the backend" 20 }, 21 "max_acceptable": { 22 "type": "u32", 23 "description": "The largest feerate we will accept from remote negotiations. If a peer attempts to set the feerate higher than this we will unilaterally close the channel (or simply forget it if it's not open yet)." 24 }, 25 "opening": { 26 "type": "u32", 27 "description": "Default feerate for lightning-fundchannel(7) and lightning-withdraw(7)" 28 }, 29 "mutual_close": { 30 "type": "u32", 31 "description": "Feerate to aim for in cooperative shutdown. Note that since mutual close is a **negotiation**, the actual feerate used in mutual close will be somewhere between this and the corresponding mutual close feerate of the peer." 32 }, 33 "unilateral_close": { 34 "type": "u32", 35 "description": "Feerate for commitment_transaction in a live channel which we originally funded" 36 }, 37 "delayed_to_us": { 38 "type": "u32", 39 "description": "Feerate for returning unilateral close funds to our wallet" 40 }, 41 "htlc_resolution": { 42 "type": "u32", 43 "description": "Feerate for returning unilateral close HTLC outputs to our wallet" 44 }, 45 "penalty": { 46 "type": "u32", 47 "description": "Feerate to start at when penalizing a cheat attempt" 48 } 49 } 50 }, 51 "perkw": { 52 "type": "object", 53 "description": "If *style* parameter was perkw", 54 "additionalProperties": false, 55 "required": [ "min_acceptable", "max_acceptable" ], 56 "properties": { 57 "min_acceptable": { 58 "type": "u32", 59 "description": "The smallest feerate that you can use, usually the minimum relayed feerate of the backend" 60 }, 61 "max_acceptable": { 62 "type": "u32", 63 "description": "The largest feerate we will accept from remote negotiations. If a peer attempts to set the feerate higher than this we will unilaterally close the channel (or simply forget it if it's not open yet)." 64 }, 65 "opening": { 66 "type": "u32", 67 "description": "Default feerate for lightning-fundchannel(7) and lightning-withdraw(7)" 68 }, 69 "mutual_close": { 70 "type": "u32", 71 "description": "Feerate to aim for in cooperative shutdown. Note that since mutual close is a **negotiation**, the actual feerate used in mutual close will be somewhere between this and the corresponding mutual close feerate of the peer." 72 }, 73 "unilateral_close": { 74 "type": "u32", 75 "description": "Feerate for commitment_transaction in a live channel which we originally funded" 76 }, 77 "delayed_to_us": { 78 "type": "u32", 79 "description": "Feerate for returning unilateral close funds to our wallet" 80 }, 81 "htlc_resolution": { 82 "type": "u32", 83 "description": "Feerate for returning unilateral close HTLC outputs to our wallet" 84 }, 85 "penalty": { 86 "type": "u32", 87 "description": "Feerate to start at when penalizing a cheat attempt" 88 } 89 } 90 }, 91 "onchain_fee_estimates": { 92 "type": "object", 93 "additionalProperties": false, 94 "required": [ "opening_channel_satoshis", "mutual_close_satoshis", "unilateral_close_satoshis", "htlc_timeout_satoshis", "htlc_success_satoshis" ], 95 "properties": { 96 "opening_channel_satoshis": { 97 "type": "u64", 98 "description": "Estimated cost of typical channel open" 99 }, 100 "mutual_close_satoshis": { 101 "type": "u64", 102 "description": "Estimated cost of typical channel close" 103 }, 104 "unilateral_close_satoshis": { 105 "type": "u64", 106 "description": "Estimated cost of typical unilateral close (without HTLCs)" 107 }, 108 "htlc_timeout_satoshis": { 109 "type": "u64", 110 "description": "Estimated cost of typical HTLC timeout transaction" 111 }, 112 "htlc_success_satoshis": { 113 "type": "u64", 114 "description": "Estimated cost of typical HTLC fulfillment transaction" 115 } 116 } 117 } 118 } 119} 120