mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
hsmd: add hsmd_preapprove_keysend and check_preapprovekeysend pay modifier
Changelog-added: hsmd: A new message `hsmd_preapprove_keysend` is added. Changelog-added: JSON-RPC: A new command `preapprovekeysend` is added.
This commit is contained in:
@@ -7,7 +7,8 @@
|
||||
],
|
||||
"properties": {
|
||||
"bolt11": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"added": "v23.02"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
27
doc/schemas/preapprovekeysend.request.json
Normal file
27
doc/schemas/preapprovekeysend.request.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"destination",
|
||||
"payment_hash",
|
||||
"amount_msat"
|
||||
],
|
||||
"properties": {
|
||||
"destination": {
|
||||
"type": "pubkey",
|
||||
"added": "v23.02"
|
||||
},
|
||||
"payment_hash": {
|
||||
"type": "hex",
|
||||
"added": "v23.02",
|
||||
"description": "the hash of the *payment_preimage* which will prove payment",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"amount_msat": {
|
||||
"type": "msat",
|
||||
"added": "v23.02"
|
||||
}
|
||||
}
|
||||
}
|
||||
6
doc/schemas/preapprovekeysend.schema.json
Normal file
6
doc/schemas/preapprovekeysend.schema.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {}
|
||||
}
|
||||
Reference in New Issue
Block a user