mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +01:00
74eeaa8213
And a new "u8" type. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
43 lines
1.4 KiB
JSON
43 lines
1.4 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [ "payment_hash", "expires_at", "bolt11" ],
|
|
"properties": {
|
|
"bolt11": {
|
|
"type": "string",
|
|
"description": "the bolt11 string"
|
|
},
|
|
"payment_hash": {
|
|
"type": "hex",
|
|
"description": "the hash of the *payment_preimage* which will prove payment",
|
|
"maxLength": 64,
|
|
"minLength": 64
|
|
},
|
|
"expires_at": {
|
|
"type": "u64",
|
|
"description": "UNIX timestamp of when invoice expires"
|
|
},
|
|
"warning_capacity": {
|
|
"type": "string",
|
|
"description": "even using all possible channels, there's not enough incoming capacity to pay this invoice."
|
|
},
|
|
"warning_offline": {
|
|
"type": "string",
|
|
"description": "there would be enough incoming capacity, but some channels are offline, so there isn't."
|
|
},
|
|
"warning_deadends": {
|
|
"type": "string",
|
|
"description": "there would be enough incoming capacity, but some channels are dead-ends (no other public channels from those peers), so there isn't."
|
|
},
|
|
"warning_private_unused": {
|
|
"type": "string",
|
|
"description": "there would be enough incoming capacity, but some channels are unannounced and *exposeprivatechannels* is *false*, so there isn't."
|
|
},
|
|
"warning_mpp": {
|
|
"type": "string",
|
|
"description": "there is sufficient capacity, but not in a single channel, so the payer will have to use multi-part payments."
|
|
}
|
|
}
|
|
}
|