2022-04-01 06:12:45 +02:00
|
|
|
{
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
"type": "object",
|
2022-04-01 06:12:45 +02:00
|
|
|
"additionalProperties": false,
|
2022-04-01 06:12:45 +02:00
|
|
|
"required": [
|
|
|
|
"onion",
|
|
|
|
"first_hop",
|
|
|
|
"payment_hash"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"onion": {
|
|
|
|
"type": "hex"
|
|
|
|
},
|
|
|
|
"first_hop": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"amount_msat",
|
|
|
|
"delay"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "pubkey"
|
|
|
|
},
|
|
|
|
"amount_msat": {
|
|
|
|
"type": "msat"
|
|
|
|
},
|
|
|
|
"delay": {
|
|
|
|
"type": "u16"
|
|
|
|
}
|
2022-04-01 06:13:34 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"payment_hash": {
|
|
|
|
"type": "hex"
|
|
|
|
},
|
|
|
|
"label": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"shared_secrets": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2022-04-01 06:12:45 +02:00
|
|
|
"type": "hex"
|
|
|
|
}
|
2022-04-01 06:13:34 +02:00
|
|
|
},
|
|
|
|
"partid": {
|
|
|
|
"type": "u16"
|
|
|
|
},
|
|
|
|
"bolt11": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"msatoshi": {
|
|
|
|
"type": "msat"
|
|
|
|
},
|
|
|
|
"destination": {
|
|
|
|
"type": "pubkey"
|
|
|
|
},
|
|
|
|
"localofferid": {
|
|
|
|
"type": "hash"
|
|
|
|
},
|
|
|
|
"groupid": {
|
|
|
|
"type": "u64"
|
2022-04-01 06:12:45 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|