lnrpc: add new RPC to decode payment requests

This commit is contained in:
Olaoluwa Osuntokun committed 2017-01-17 13:25:03 -08:00
1 parent e7631c9720
commit faae0b3bf2
4 files changed
+407 -194

No files matched your search

+51
View File
@@ -437,6 +437,31 @@
]
}
},
"/v1/payreq/{pay_req}": {
"get": {
"operationId": "DecodePayReq",
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/lnrpcPayReq"
}
}
},
"parameters": [
{
"name": "pay_req",
"in": "path",
"required": true,
"type": "string",
"format": "string"
}
],
"tags": [
"Lightning"
]
}
},
"/v1/peers": {
"get": {
"operationId": "ListPeers",
@@ -1151,6 +1176,32 @@
}
}
},
"lnrpcPayReq": {
"type": "object",
"properties": {
"destination": {
"type": "string",
"format": "string"
},
"num_satoshis": {
"type": "string",
"format": "int64"
},
"payment_hash": {
"type": "string",
"format": "string"
}
}
},
"lnrpcPayReqString": {
"type": "object",
"properties": {
"pay_req": {
"type": "string",
"format": "string"
}
}
},
"lnrpcPayment": {
"type": "object",
"properties": {