2016-10-16 00:38:47 +03:00
|
|
|
{
|
|
|
|
"swagger": "2.0",
|
|
|
|
"info": {
|
|
|
|
"title": "rpc.proto",
|
|
|
|
"version": "version not set"
|
|
|
|
},
|
|
|
|
"schemes": [
|
|
|
|
"http",
|
|
|
|
"https"
|
|
|
|
],
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"paths": {
|
|
|
|
"/v1/balance/blockchain": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "WalletBalance",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcWalletBalanceResponse"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2017-02-28 06:03:43 +03:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "witness_only",
|
|
|
|
"in": "query",
|
|
|
|
"required": false,
|
|
|
|
"type": "boolean",
|
|
|
|
"format": "boolean"
|
|
|
|
}
|
|
|
|
],
|
2016-10-16 00:38:47 +03:00
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/v1/balance/channels": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "ChannelBalance",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcChannelBalanceResponse"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/v1/channels": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "ListChannels",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcListChannelsResponse"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"post": {
|
2016-11-11 04:33:24 +03:00
|
|
|
"operationId": "OpenChannelSync",
|
2016-10-16 00:38:47 +03:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
2016-11-11 04:33:24 +03:00
|
|
|
"description": "",
|
2016-10-16 00:38:47 +03:00
|
|
|
"schema": {
|
2016-11-11 04:33:24 +03:00
|
|
|
"$ref": "#/definitions/lnrpcChannelPoint"
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "body",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcOpenChannelRequest"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/v1/channels/pending": {
|
|
|
|
"get": {
|
2017-01-13 06:40:38 +03:00
|
|
|
"summary": "TODO(roasbeef): merge with below with bool?",
|
2016-10-16 00:38:47 +03:00
|
|
|
"operationId": "PendingChannels",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcPendingChannelResponse"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/v1/channels/transactions": {
|
|
|
|
"post": {
|
2016-11-11 04:33:24 +03:00
|
|
|
"operationId": "SendPaymentSync",
|
2016-10-16 00:38:47 +03:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
2016-11-11 04:33:24 +03:00
|
|
|
"description": "",
|
2016-10-16 00:38:47 +03:00
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcSendResponse"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "body",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcSendRequest"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/v1/channels/{channel_point.funding_txid}/{channel_point.output_index}/{force}": {
|
|
|
|
"delete": {
|
|
|
|
"operationId": "CloseChannel",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "(streaming responses)",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcCloseStatusUpdate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "channel_point.funding_txid",
|
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
|
|
|
"type": "string",
|
|
|
|
"format": "byte"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "channel_point.output_index",
|
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "force",
|
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
|
|
|
"type": "boolean",
|
|
|
|
"format": "boolean"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/v1/getinfo": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "GetInfo",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcGetInfoResponse"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-27 08:45:01 +03:00
|
|
|
"/v1/graph": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "DescribeGraph",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcChannelGraph"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/v1/graph/edge/{chan_id}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "GetChanInfo",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcChannelEdge"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "chan_id",
|
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
|
|
|
"type": "string",
|
|
|
|
"format": "uint64"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/v1/graph/info": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "GetNetworkInfo",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcNetworkInfo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/v1/graph/node/{pub_key}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "GetNodeInfo",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcNodeInfo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "pub_key",
|
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-03-21 05:01:32 +03:00
|
|
|
"/v1/graph/routes/{pub_key}/{amt}": {
|
2016-12-27 08:45:01 +03:00
|
|
|
"get": {
|
2017-03-21 05:01:32 +03:00
|
|
|
"operationId": "QueryRoutes",
|
2016-12-27 08:45:01 +03:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
2017-03-21 05:01:32 +03:00
|
|
|
"$ref": "#/definitions/lnrpcQueryRoutesResponse"
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "pub_key",
|
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-12-27 08:45:01 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "amt",
|
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"/v1/invoices": {
|
|
|
|
"post": {
|
|
|
|
"operationId": "AddInvoice",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcAddInvoiceResponse"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "body",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcInvoice"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/v1/invoices/subscribe": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "SubscribeInvoices",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "(streaming responses)",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcInvoice"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/v1/invoices/{pending_only}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "ListInvoices",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcListInvoiceResponse"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "pending_only",
|
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
|
|
|
"type": "boolean",
|
|
|
|
"format": "boolean"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/v1/invoices/{r_hash_str}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "LookupInvoice",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcInvoice"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "r_hash_str",
|
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "r_hash",
|
|
|
|
"in": "query",
|
|
|
|
"required": false,
|
2016-10-16 00:38:47 +03:00
|
|
|
"type": "string",
|
2017-02-28 06:03:43 +03:00
|
|
|
"format": "byte"
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/v1/newaddress": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "NewWitnessAddress",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcNewAddressResponse"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-05 14:59:36 +03:00
|
|
|
"/v1/payments": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "ListPayments",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcListPaymentsResponse"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"delete": {
|
|
|
|
"operationId": "DeleteAllPayments",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcDeleteAllPaymentsResponse"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-18 00:24:55 +03:00
|
|
|
"/v1/payreq/{pay_req}": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "DecodePayReq",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcPayReq"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "pay_req",
|
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2017-01-18 00:24:55 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"/v1/peers": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "ListPeers",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcListPeersResponse"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"post": {
|
|
|
|
"operationId": "ConnectPeer",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcConnectPeerResponse"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "body",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcConnectPeerRequest"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-04-12 00:49:39 +03:00
|
|
|
"/v1/peers/{pub_key}": {
|
|
|
|
"delete": {
|
|
|
|
"operationId": "DisconnectPeer",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcDisconnectPeerResponse"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "pub_key",
|
|
|
|
"in": "path",
|
|
|
|
"required": true,
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"/v1/transactions": {
|
|
|
|
"get": {
|
|
|
|
"operationId": "GetTransactions",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcTransactionDetails"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"post": {
|
|
|
|
"operationId": "SendCoins",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcSendCoinsResponse"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "body",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/lnrpcSendCoinsRequest"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Lightning"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"definitions": {
|
2017-01-13 06:40:38 +03:00
|
|
|
"NewAddressRequestAddressType": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"WITNESS_PUBKEY_HASH",
|
|
|
|
"NESTED_PUBKEY_HASH",
|
|
|
|
"PUBKEY_HASH"
|
|
|
|
],
|
|
|
|
"default": "WITNESS_PUBKEY_HASH"
|
|
|
|
},
|
2017-05-05 01:34:02 +03:00
|
|
|
"PendingChannelResponseClosedChannel": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"channel": {
|
|
|
|
"$ref": "#/definitions/PendingChannelResponsePendingChannel"
|
|
|
|
},
|
|
|
|
"closing_txid": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"PendingChannelResponseForceClosedChannel": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"channel": {
|
|
|
|
"$ref": "#/definitions/PendingChannelResponsePendingChannel"
|
|
|
|
},
|
|
|
|
"closing_txid": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"limbo_balance": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"maturity_height": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"blocks_til_maturity": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"PendingChannelResponsePendingChannel": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2017-05-05 01:34:02 +03:00
|
|
|
"remote_node_pub": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-10-16 00:38:47 +03:00
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"channel_point": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-10-16 00:38:47 +03:00
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"capacity": {
|
2016-10-16 00:38:47 +03:00
|
|
|
"type": "string",
|
2017-01-13 06:40:38 +03:00
|
|
|
"format": "int64"
|
2016-10-16 00:38:47 +03:00
|
|
|
},
|
|
|
|
"local_balance": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"remote_balance": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
2017-05-05 01:34:02 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"PendingChannelResponsePendingOpenChannel": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"channel": {
|
|
|
|
"$ref": "#/definitions/PendingChannelResponsePendingChannel"
|
2016-10-16 00:38:47 +03:00
|
|
|
},
|
2017-05-05 01:34:02 +03:00
|
|
|
"confirmation_height": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
2017-01-13 06:40:38 +03:00
|
|
|
},
|
2017-05-05 01:34:02 +03:00
|
|
|
"blocks_till_open": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
2017-05-17 05:13:25 +03:00
|
|
|
},
|
|
|
|
"commit_fee": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"commit_weight": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"fee_per_kw": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcActiveChannel": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2017-03-09 01:45:58 +03:00
|
|
|
"active": {
|
|
|
|
"type": "boolean",
|
|
|
|
"format": "boolean"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"remote_pubkey": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2017-01-13 06:40:38 +03:00
|
|
|
},
|
|
|
|
"channel_point": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-10-16 00:38:47 +03:00
|
|
|
},
|
2016-12-27 08:45:01 +03:00
|
|
|
"chan_id": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uint64"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"capacity": {
|
2016-10-16 00:38:47 +03:00
|
|
|
"type": "string",
|
2017-01-13 06:40:38 +03:00
|
|
|
"format": "int64"
|
2016-10-16 00:38:47 +03:00
|
|
|
},
|
|
|
|
"local_balance": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"remote_balance": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
2017-05-17 05:13:25 +03:00
|
|
|
"commit_fee": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"commit_weight": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"fee_per_kw": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"unsettled_balance": {
|
2016-11-19 03:20:44 +03:00
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"total_satoshis_sent": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"total_satoshis_received": {
|
2016-10-16 00:38:47 +03:00
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
2017-01-13 06:40:38 +03:00
|
|
|
},
|
|
|
|
"num_updates": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uint64"
|
|
|
|
},
|
|
|
|
"pending_htlcs": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/lnrpcHTLC"
|
|
|
|
}
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcAddInvoiceResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"r_hash": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "byte"
|
2017-01-13 06:40:38 +03:00
|
|
|
},
|
|
|
|
"payment_request": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-12-27 08:45:01 +03:00
|
|
|
"lnrpcChanInfoRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"chan_id": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uint64"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"lnrpcChannelBalanceRequest": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
|
|
|
"lnrpcChannelBalanceResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"balance": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcChannelCloseUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"closing_txid": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "byte"
|
|
|
|
},
|
|
|
|
"success": {
|
|
|
|
"type": "boolean",
|
|
|
|
"format": "boolean"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-12-27 08:45:01 +03:00
|
|
|
"lnrpcChannelEdge": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2017-01-13 06:40:38 +03:00
|
|
|
"channel_id": {
|
2016-12-27 08:45:01 +03:00
|
|
|
"type": "string",
|
2017-01-13 06:40:38 +03:00
|
|
|
"format": "uint64"
|
2016-12-27 08:45:01 +03:00
|
|
|
},
|
|
|
|
"chan_point": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-12-27 08:45:01 +03:00
|
|
|
},
|
|
|
|
"last_update": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"node1_pub": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-12-27 08:45:01 +03:00
|
|
|
},
|
|
|
|
"node2_pub": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2017-01-13 06:40:38 +03:00
|
|
|
},
|
|
|
|
"capacity": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"node1_policy": {
|
|
|
|
"$ref": "#/definitions/lnrpcRoutingPolicy"
|
|
|
|
},
|
|
|
|
"node2_policy": {
|
|
|
|
"$ref": "#/definitions/lnrpcRoutingPolicy"
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2017-03-14 06:37:25 +03:00
|
|
|
"lnrpcChannelEdgeUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"chan_id": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uint64"
|
|
|
|
},
|
|
|
|
"chan_point": {
|
|
|
|
"$ref": "#/definitions/lnrpcChannelPoint"
|
|
|
|
},
|
|
|
|
"capacity": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"routing_policy": {
|
|
|
|
"$ref": "#/definitions/lnrpcRoutingPolicy"
|
|
|
|
},
|
|
|
|
"advertising_node": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"connecting_node": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-12-27 08:45:01 +03:00
|
|
|
"lnrpcChannelGraph": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2017-01-13 06:40:38 +03:00
|
|
|
"nodes": {
|
2016-12-27 08:45:01 +03:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2017-01-13 06:40:38 +03:00
|
|
|
"$ref": "#/definitions/lnrpcLightningNode"
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"edges": {
|
2016-12-27 08:45:01 +03:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2017-01-13 06:40:38 +03:00
|
|
|
"$ref": "#/definitions/lnrpcChannelEdge"
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcChannelGraphRequest": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"lnrpcChannelOpenUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"channel_point": {
|
|
|
|
"$ref": "#/definitions/lnrpcChannelPoint"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"lnrpcChannelPoint": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"funding_txid": {
|
|
|
|
"type": "string",
|
2017-03-14 06:37:25 +03:00
|
|
|
"format": "byte",
|
|
|
|
"title": "TODO(roasbeef): make str vs bytes into a oneof"
|
2016-10-16 00:38:47 +03:00
|
|
|
},
|
|
|
|
"funding_txid_str": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-10-16 00:38:47 +03:00
|
|
|
},
|
|
|
|
"output_index": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcCloseChannelRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"channel_point": {
|
|
|
|
"$ref": "#/definitions/lnrpcChannelPoint"
|
|
|
|
},
|
|
|
|
"time_limit": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
2017-01-13 06:40:38 +03:00
|
|
|
},
|
|
|
|
"force": {
|
|
|
|
"type": "boolean",
|
|
|
|
"format": "boolean"
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcCloseStatusUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"close_pending": {
|
|
|
|
"$ref": "#/definitions/lnrpcPendingUpdate"
|
|
|
|
},
|
|
|
|
"confirmation": {
|
|
|
|
"$ref": "#/definitions/lnrpcConfirmationUpdate"
|
2017-01-13 06:40:38 +03:00
|
|
|
},
|
|
|
|
"chan_close": {
|
|
|
|
"$ref": "#/definitions/lnrpcChannelCloseUpdate"
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2017-03-14 06:37:25 +03:00
|
|
|
"lnrpcClosedChannelUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"chan_id": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uint64"
|
|
|
|
},
|
|
|
|
"capacity": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"closed_height": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"chan_point": {
|
|
|
|
"$ref": "#/definitions/lnrpcChannelPoint"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"lnrpcConfirmationUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"block_sha": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "byte"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"block_height": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"num_confs_left": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcConnectPeerRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"addr": {
|
|
|
|
"$ref": "#/definitions/lnrpcLightningAddress"
|
2017-01-10 06:01:06 +03:00
|
|
|
},
|
|
|
|
"perm": {
|
|
|
|
"type": "boolean",
|
|
|
|
"format": "boolean"
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcConnectPeerResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"peer_id": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"lnrpcDebugLevelRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"show": {
|
|
|
|
"type": "boolean",
|
|
|
|
"format": "boolean"
|
|
|
|
},
|
|
|
|
"level_spec": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2017-01-13 06:40:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcDebugLevelResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"sub_systems": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2017-01-13 06:40:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-12-05 14:59:36 +03:00
|
|
|
"lnrpcDeleteAllPaymentsRequest": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
|
|
|
"lnrpcDeleteAllPaymentsResponse": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
2017-04-12 00:49:39 +03:00
|
|
|
"lnrpcDisconnectPeerRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"pub_key": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcDisconnectPeerResponse": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"lnrpcGetInfoRequest": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
|
|
|
"lnrpcGetInfoResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2017-01-13 06:40:38 +03:00
|
|
|
"identity_pubkey": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-12-27 08:45:01 +03:00
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"alias": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-12-27 08:45:01 +03:00
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"num_pending_channels": {
|
2016-11-15 02:54:47 +03:00
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"num_active_channels": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"num_peers": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"block_height": {
|
2016-10-16 00:38:47 +03:00
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
2016-11-15 02:54:47 +03:00
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"block_hash": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2017-01-13 06:40:38 +03:00
|
|
|
},
|
2016-11-15 02:54:47 +03:00
|
|
|
"synced_to_chain": {
|
|
|
|
"type": "boolean",
|
|
|
|
"format": "boolean"
|
2016-12-13 02:34:20 +03:00
|
|
|
},
|
|
|
|
"testnet": {
|
|
|
|
"type": "boolean",
|
|
|
|
"format": "boolean"
|
2017-05-03 05:49:41 +03:00
|
|
|
},
|
|
|
|
"chains": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcGetTransactionsRequest": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
2017-03-14 06:37:25 +03:00
|
|
|
"lnrpcGraphTopologySubscription": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
|
|
|
"lnrpcGraphTopologyUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"node_updates": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/lnrpcNodeUpdate"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"channel_updates": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/lnrpcChannelEdgeUpdate"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"closed_chans": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/lnrpcClosedChannelUpdate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"lnrpcHTLC": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2017-01-13 06:40:38 +03:00
|
|
|
"incoming": {
|
|
|
|
"type": "boolean",
|
|
|
|
"format": "boolean"
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"amount": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"hash_lock": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "byte"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"expiration_height": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
2016-10-16 00:38:47 +03:00
|
|
|
},
|
|
|
|
"revocation_delay": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-12-27 08:45:01 +03:00
|
|
|
"lnrpcHop": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2017-01-13 06:40:38 +03:00
|
|
|
"chan_id": {
|
2016-12-27 08:45:01 +03:00
|
|
|
"type": "string",
|
2017-01-13 06:40:38 +03:00
|
|
|
"format": "uint64"
|
2016-12-27 08:45:01 +03:00
|
|
|
},
|
|
|
|
"chan_capacity": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"amt_to_forward": {
|
2016-12-27 08:45:01 +03:00
|
|
|
"type": "string",
|
2017-01-13 06:40:38 +03:00
|
|
|
"format": "int64"
|
2016-12-27 08:45:01 +03:00
|
|
|
},
|
|
|
|
"fee": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
2017-08-03 07:13:45 +03:00
|
|
|
},
|
|
|
|
"expiry": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"lnrpcInvoice": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"memo": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-10-16 00:38:47 +03:00
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"receipt": {
|
2016-10-16 00:38:47 +03:00
|
|
|
"type": "string",
|
|
|
|
"format": "byte"
|
|
|
|
},
|
|
|
|
"r_preimage": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "byte"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"r_hash": {
|
2016-10-16 00:38:47 +03:00
|
|
|
"type": "string",
|
|
|
|
"format": "byte"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"value": {
|
2016-11-13 05:03:19 +03:00
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"settled": {
|
|
|
|
"type": "boolean",
|
|
|
|
"format": "boolean"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"creation_date": {
|
2016-10-16 00:38:47 +03:00
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
2017-01-13 06:40:38 +03:00
|
|
|
},
|
|
|
|
"settle_date": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"payment_request": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcInvoiceSubscription": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
|
|
|
"lnrpcLightningAddress": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2017-01-13 06:40:38 +03:00
|
|
|
"pubkey": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-10-16 00:38:47 +03:00
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"host": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-12-27 08:45:01 +03:00
|
|
|
"lnrpcLightningNode": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2017-01-13 06:40:38 +03:00
|
|
|
"last_update": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"pub_key": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-12-27 08:45:01 +03:00
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"alias": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2017-02-17 12:29:23 +03:00
|
|
|
},
|
|
|
|
"addresses": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/lnrpcNodeAddress"
|
|
|
|
}
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"lnrpcListChannelsRequest": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
|
|
|
"lnrpcListChannelsResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"channels": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/lnrpcActiveChannel"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcListInvoiceRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"pending_only": {
|
|
|
|
"type": "boolean",
|
|
|
|
"format": "boolean"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcListInvoiceResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"invoices": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/lnrpcInvoice"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-12-05 14:59:36 +03:00
|
|
|
"lnrpcListPaymentsRequest": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
|
|
|
"lnrpcListPaymentsResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"payments": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/lnrpcPayment"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"lnrpcListPeersRequest": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
|
|
|
"lnrpcListPeersResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"peers": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/lnrpcPeer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-12-27 08:45:01 +03:00
|
|
|
"lnrpcNetworkInfo": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2017-01-13 06:40:38 +03:00
|
|
|
"graph_diameter": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
2016-12-27 08:45:01 +03:00
|
|
|
},
|
|
|
|
"avg_out_degree": {
|
|
|
|
"type": "number",
|
|
|
|
"format": "double"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"max_out_degree": {
|
2016-12-27 08:45:01 +03:00
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"num_nodes": {
|
|
|
|
"type": "integer",
|
2016-12-27 08:45:01 +03:00
|
|
|
"format": "int64"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"num_channels": {
|
2016-12-27 08:45:01 +03:00
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"total_network_capacity": {
|
2016-12-27 08:45:01 +03:00
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"avg_channel_size": {
|
|
|
|
"type": "number",
|
|
|
|
"format": "double"
|
2016-12-27 08:45:01 +03:00
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"min_channel_size": {
|
|
|
|
"type": "string",
|
2016-12-27 08:45:01 +03:00
|
|
|
"format": "int64"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"max_channel_size": {
|
2016-12-27 08:45:01 +03:00
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcNetworkInfoRequest": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"lnrpcNewAddressRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"type": {
|
|
|
|
"$ref": "#/definitions/NewAddressRequestAddressType"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"lnrpcNewAddressResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"address": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcNewWitnessAddressRequest": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
2017-02-17 12:29:23 +03:00
|
|
|
"lnrpcNodeAddress": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"network": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"addr": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-12-27 08:45:01 +03:00
|
|
|
"lnrpcNodeInfo": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"node": {
|
|
|
|
"$ref": "#/definitions/lnrpcLightningNode"
|
|
|
|
},
|
|
|
|
"num_channels": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"total_capacity": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcNodeInfoRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"pub_key": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2017-03-14 06:37:25 +03:00
|
|
|
"lnrpcNodeUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"addresses": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"identity_key": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"global_features": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "byte"
|
|
|
|
},
|
|
|
|
"alias": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"lnrpcOpenChannelRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2017-01-13 06:40:38 +03:00
|
|
|
"target_peer_id": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
2016-10-16 00:38:47 +03:00
|
|
|
},
|
2016-10-28 05:41:42 +03:00
|
|
|
"node_pubkey": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "byte"
|
|
|
|
},
|
2016-11-11 04:33:24 +03:00
|
|
|
"node_pubkey_string": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-11-11 04:33:24 +03:00
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"local_funding_amount": {
|
|
|
|
"type": "string",
|
2016-10-16 00:38:47 +03:00
|
|
|
"format": "int64"
|
|
|
|
},
|
2017-01-10 06:01:06 +03:00
|
|
|
"push_sat": {
|
2016-10-16 00:38:47 +03:00
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
2017-01-13 06:40:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcOpenStatusUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"chan_pending": {
|
|
|
|
"$ref": "#/definitions/lnrpcPendingUpdate"
|
|
|
|
},
|
|
|
|
"confirmation": {
|
|
|
|
"$ref": "#/definitions/lnrpcConfirmationUpdate"
|
|
|
|
},
|
|
|
|
"chan_open": {
|
|
|
|
"$ref": "#/definitions/lnrpcChannelOpenUpdate"
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2017-01-18 00:24:55 +03:00
|
|
|
"lnrpcPayReq": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"destination": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2017-01-18 00:24:55 +03:00
|
|
|
},
|
|
|
|
"payment_hash": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2017-01-13 06:40:38 +03:00
|
|
|
},
|
|
|
|
"num_satoshis": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
2017-01-18 00:24:55 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcPayReqString": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"pay_req": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2017-01-18 00:24:55 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-12-05 14:59:36 +03:00
|
|
|
"lnrpcPayment": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2017-01-13 06:40:38 +03:00
|
|
|
"payment_hash": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2017-01-13 06:40:38 +03:00
|
|
|
},
|
|
|
|
"value": {
|
2016-12-05 14:59:36 +03:00
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"creation_date": {
|
2016-12-05 14:59:36 +03:00
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"path": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-12-05 14:59:36 +03:00
|
|
|
}
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"fee": {
|
2016-12-05 14:59:36 +03:00
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"lnrpcPaymentHash": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"r_hash_str": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2017-01-13 06:40:38 +03:00
|
|
|
},
|
|
|
|
"r_hash": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "byte"
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcPeer": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2017-01-13 06:40:38 +03:00
|
|
|
"pub_key": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-10-16 00:38:47 +03:00
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"peer_id": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
|
|
|
},
|
|
|
|
"address": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-10-16 00:38:47 +03:00
|
|
|
},
|
|
|
|
"bytes_sent": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uint64"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"bytes_recv": {
|
2017-01-26 05:16:28 +03:00
|
|
|
"type": "string",
|
2017-01-13 06:40:38 +03:00
|
|
|
"format": "uint64"
|
2017-01-26 05:16:28 +03:00
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"sat_sent": {
|
2016-10-27 00:31:41 +03:00
|
|
|
"type": "string",
|
2017-01-13 06:40:38 +03:00
|
|
|
"format": "int64"
|
2016-10-27 00:31:41 +03:00
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"sat_recv": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"inbound": {
|
|
|
|
"type": "boolean",
|
|
|
|
"format": "boolean"
|
|
|
|
},
|
|
|
|
"ping_time": {
|
2016-10-16 00:38:47 +03:00
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcPendingChannelRequest": {
|
2017-05-05 01:34:02 +03:00
|
|
|
"type": "object"
|
2016-10-16 00:38:47 +03:00
|
|
|
},
|
|
|
|
"lnrpcPendingChannelResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2017-05-05 01:34:02 +03:00
|
|
|
"total_limbo_balance": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"pending_open_channels": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/PendingChannelResponsePendingOpenChannel"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"pending_closing_channels": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/PendingChannelResponseClosedChannel"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"pending_force_closing_channels": {
|
2016-10-16 00:38:47 +03:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2017-05-05 01:34:02 +03:00
|
|
|
"$ref": "#/definitions/PendingChannelResponseForceClosedChannel"
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcPendingUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"txid": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "byte"
|
2017-01-24 04:57:45 +03:00
|
|
|
},
|
|
|
|
"output_index": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int64"
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2017-03-21 05:01:32 +03:00
|
|
|
"lnrpcQueryRoutesRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"pub_key": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"amt": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcQueryRoutesResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"routes": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/lnrpcRoute"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-12-27 08:45:01 +03:00
|
|
|
"lnrpcRoute": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2017-01-13 06:40:38 +03:00
|
|
|
"total_time_lock": {
|
|
|
|
"type": "integer",
|
2016-12-27 08:45:01 +03:00
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"total_fees": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"total_amt": {
|
|
|
|
"type": "string",
|
2016-12-27 08:45:01 +03:00
|
|
|
"format": "int64"
|
2017-01-13 06:40:38 +03:00
|
|
|
},
|
|
|
|
"hops": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/lnrpcHop"
|
|
|
|
}
|
2016-12-27 08:45:01 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcRoutingPolicy": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2017-01-13 06:40:38 +03:00
|
|
|
"time_lock_delta": {
|
|
|
|
"type": "integer",
|
2016-12-27 08:45:01 +03:00
|
|
|
"format": "int64"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"min_htlc": {
|
2016-12-27 08:45:01 +03:00
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"fee_base_msat": {
|
2016-12-27 08:45:01 +03:00
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"fee_rate_milli_msat": {
|
|
|
|
"type": "string",
|
2016-12-27 08:45:01 +03:00
|
|
|
"format": "int64"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"lnrpcSendCoinsRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"addr": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-10-16 00:38:47 +03:00
|
|
|
},
|
|
|
|
"amount": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcSendCoinsResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"txid": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"lnrpcSendManyRequest": {
|
2016-10-16 00:38:47 +03:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2017-01-13 06:40:38 +03:00
|
|
|
"AddrToAmount": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcSendManyResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"txid": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2017-01-13 06:40:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcSendRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2016-10-16 00:38:47 +03:00
|
|
|
"dest": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "byte"
|
|
|
|
},
|
2016-11-11 04:33:24 +03:00
|
|
|
"dest_string": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-11-11 04:33:24 +03:00
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"amt": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"payment_hash": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "byte"
|
2016-11-11 04:33:24 +03:00
|
|
|
},
|
|
|
|
"payment_hash_string": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2017-01-03 02:31:38 +03:00
|
|
|
},
|
|
|
|
"payment_request": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcSendResponse": {
|
2017-01-17 07:35:29 +03:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2017-05-19 15:18:21 +03:00
|
|
|
"payment_error": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2017-02-21 10:54:52 +03:00
|
|
|
"payment_preimage": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "byte"
|
|
|
|
},
|
2017-01-17 07:35:29 +03:00
|
|
|
"payment_route": {
|
|
|
|
"$ref": "#/definitions/lnrpcRoute"
|
|
|
|
}
|
|
|
|
}
|
2016-10-16 00:38:47 +03:00
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"lnrpcSetAliasRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"new_alias": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2017-01-13 06:40:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcSetAliasResponse": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
2017-04-20 05:28:10 +03:00
|
|
|
"lnrpcSignMessageRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"msg": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "byte"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcSignMessageResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"signature": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2017-05-12 00:55:56 +03:00
|
|
|
"lnrpcStopRequest": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
|
|
|
"lnrpcStopResponse": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"lnrpcTransaction": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2017-01-13 06:40:38 +03:00
|
|
|
"tx_hash": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2017-01-13 06:40:38 +03:00
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"amount": {
|
2017-03-06 01:53:37 +03:00
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
2016-10-16 00:38:47 +03:00
|
|
|
},
|
2017-01-13 06:40:38 +03:00
|
|
|
"num_confirmations": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"block_hash": {
|
2017-02-28 06:03:43 +03:00
|
|
|
"type": "string"
|
2016-10-16 00:38:47 +03:00
|
|
|
},
|
|
|
|
"block_height": {
|
|
|
|
"type": "integer",
|
|
|
|
"format": "int32"
|
|
|
|
},
|
|
|
|
"time_stamp": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
},
|
|
|
|
"total_fees": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcTransactionDetails": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"transactions": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/lnrpcTransaction"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2017-04-20 05:28:10 +03:00
|
|
|
"lnrpcVerifyMessageRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"msg": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "byte"
|
|
|
|
},
|
|
|
|
"signature": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcVerifyMessageResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"valid": {
|
|
|
|
"type": "boolean",
|
|
|
|
"format": "boolean"
|
2017-04-29 14:44:29 +03:00
|
|
|
},
|
|
|
|
"pubkey": {
|
|
|
|
"type": "string"
|
2017-04-20 05:28:10 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-10-16 00:38:47 +03:00
|
|
|
"lnrpcWalletBalanceRequest": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"witness_only": {
|
|
|
|
"type": "boolean",
|
|
|
|
"format": "boolean"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lnrpcWalletBalanceResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"balance": {
|
2017-07-05 01:50:24 +03:00
|
|
|
"type": "string",
|
|
|
|
"format": "int64"
|
2016-10-16 00:38:47 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|