core-lightning/doc/schemas/pay.request.json
Rusty Russell d5c736fe86 pay: require description if bolt11 only has hash.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: JSON-RPC: `pay` has `description` parameter, will be required if bolt11 only has a hash.
Changelog-Deprecated: JSON-RPC: `pay` for a bolt11 which uses a `description_hash`, without setting `description`.
2022-04-04 20:26:04 +09:30

57 lines
912 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"bolt11"
],
"properties": {
"bolt11": {
"type": "string"
},
"msatoshi": {
"type": "msat"
},
"label": {
"type": "string"
},
"riskfactor": {
"type": "number"
},
"maxfeepercent": {
"type": "number"
},
"retry_for": {
"type": "u16"
},
"maxdelay": {
"type": "u16"
},
"exemptfee": {
"type": "msat"
},
"localofferid": {
"type": "hex"
},
"exclude": {
"type": "array",
"items": {
"oneOf": [
{
"type": "short_channel_id_dir"
},
{
"type": "pubkey"
}
]
}
},
"maxfee": {
"type": "msat"
},
"description": {
"type": "string"
}
}
}