core-lightning/doc/schemas/renepay.schema.json
Lagrang3 961ad21281 renepay: add help for renepay & renepaystatus
Signed-off-by: Lagrang3 <eduardo.quintana@pm.me>
2023-08-09 11:43:58 +09:30

55 lines
1.3 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"added": "v23.08",
"type": "object",
"additionalProperties": false,
"required": [
"payment_preimage",
"payment_hash",
"created_at",
"parts",
"amount_msat",
"amount_sent_msat",
"status"
],
"properties": {
"payment_preimage": {
"type": "secret",
"description": "the proof of payment: SHA256 of this **payment_hash**"
},
"payment_hash": {
"type": "hash",
"description": "the hash of the *payment_preimage* which will prove payment"
},
"created_at": {
"type": "number",
"description": "the UNIX timestamp showing when this payment was initiated"
},
"parts": {
"type": "u32",
"description": "how many attempts this took"
},
"amount_msat": {
"type": "msat",
"description": "amount the recipient received"
},
"amount_sent_msat": {
"type": "msat",
"description": "total amount we sent (including fees)"
},
"status": {
"type": "string",
"enum": [
"complete",
"pending",
"failed"
],
"description": "status of payment"
},
"destination": {
"type": "pubkey",
"description": "the final destination of the payment"
}
}
}