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" : {
2018-02-18 02:37:32 +03:00
"summary" : "* lncli: `walletbalance`\nWalletBalance returns total unspent outputs(confirmed and unconfirmed), all\nconfirmed unspent outputs and all unconfirmed unspent outputs under control\nof the wallet." ,
2016-10-16 00:38:47 +03:00
"operationId" : "WalletBalance" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcWalletBalanceResponse"
}
}
} ,
"tags" : [
"Lightning"
]
}
} ,
"/v1/balance/channels" : {
"get" : {
2017-08-22 10:07:25 +03:00
"summary" : "* lncli: `channelbalance`\nChannelBalance returns the total funds available across all open channels\nin satoshis." ,
2016-10-16 00:38:47 +03:00
"operationId" : "ChannelBalance" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcChannelBalanceResponse"
}
}
} ,
"tags" : [
"Lightning"
]
}
} ,
2018-04-09 00:34:06 +03:00
"/v1/changepassword" : {
"post" : {
"summary" : "* lncli: `changepassword`\nChangePassword changes the password of the encrypted wallet. This will\nautomatically unlock the wallet database if successful." ,
"operationId" : "ChangePassword" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcChangePasswordResponse"
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcChangePasswordRequest"
}
}
] ,
"tags" : [
"WalletUnlocker"
]
}
} ,
2016-10-16 00:38:47 +03:00
"/v1/channels" : {
"get" : {
2017-08-22 10:07:25 +03:00
"summary" : "* lncli: `listchannels`\nListChannels returns a description of all the open channels that this node\nis a participant in." ,
2016-10-16 00:38:47 +03:00
"operationId" : "ListChannels" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcListChannelsResponse"
}
}
} ,
2018-03-13 22:11:09 +03:00
"parameters" : [
{
"name" : "active_only" ,
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
} ,
{
"name" : "inactive_only" ,
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
} ,
{
"name" : "public_only" ,
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
} ,
{
"name" : "private_only" ,
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
}
] ,
2016-10-16 00:38:47 +03:00
"tags" : [
"Lightning"
]
} ,
"post" : {
2017-08-22 10:07:25 +03:00
"summary" : "*\nOpenChannelSync is a synchronous version of the OpenChannel RPC call. This\ncall is meant to be consumed by clients to the REST proxy. As with all\nother sync calls, all byte slices are intended to be populated as hex\nencoded strings." ,
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"
]
}
} ,
2018-11-05 10:13:33 +03:00
"/v1/channels/abandon/{channel_point.funding_txid_str}/{channel_point.output_index}" : {
"delete" : {
"summary" : "* lncli: `abandonchannel`\nAbandonChannel removes all channel state from the database except for a\nclose summary. This method can be used to get rid of permanently unusable\nchannels due to bugs fixed in newer versions of lnd. Only available\nwhen in debug builds of lnd." ,
"operationId" : "AbandonChannel" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcAbandonChannelResponse"
}
}
} ,
"parameters" : [
{
"name" : "channel_point.funding_txid_str" ,
"in" : "path" ,
"required" : true ,
"type" : "string"
} ,
{
"name" : "channel_point.output_index" ,
"in" : "path" ,
"required" : true ,
"type" : "integer" ,
"format" : "int64"
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2018-05-24 12:36:35 +03:00
"/v1/channels/closed" : {
"get" : {
"summary" : "* lncli: `closedchannels`\nClosedChannels returns a description of all the closed channels that \nthis node was a participant in." ,
"operationId" : "ClosedChannels" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcClosedChannelsResponse"
}
}
} ,
"parameters" : [
{
"name" : "cooperative" ,
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
} ,
{
"name" : "local_force" ,
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
} ,
{
"name" : "remote_force" ,
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
} ,
{
"name" : "breach" ,
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
} ,
{
"name" : "funding_canceled" ,
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
2018-05-29 12:26:47 +03:00
} ,
{
"name" : "abandoned" ,
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
2018-05-24 12:36:35 +03:00
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2016-10-16 00:38:47 +03:00
"/v1/channels/pending" : {
"get" : {
2017-08-22 10:07:25 +03:00
"summary" : "* lncli: `pendingchannels`\nPendingChannels returns a list of all the channels that are currently\nconsidered \"pending\". A channel is pending if it has finished the funding\nworkflow and is waiting for confirmations for the funding txn, or is in the\nprocess of closure, either initiated cooperatively or non-cooperatively." ,
2016-10-16 00:38:47 +03:00
"operationId" : "PendingChannels" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
2018-01-04 23:20:25 +03:00
"$ref" : "#/definitions/lnrpcPendingChannelsResponse"
2016-10-16 00:38:47 +03:00
}
}
} ,
"tags" : [
"Lightning"
]
}
} ,
"/v1/channels/transactions" : {
"post" : {
2017-08-22 10:07:25 +03:00
"summary" : "*\nSendPaymentSync is the synchronous non-streaming version of SendPayment.\nThis RPC is intended to be consumed by clients of the REST proxy.\nAdditionally, this RPC expects the destination's public key and the payment\nhash (if any) to be encoded as hex strings." ,
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"
]
}
} ,
2018-06-07 06:29:42 +03:00
"/v1/channels/transactions/route" : {
2018-01-25 08:08:46 +03:00
"post" : {
2018-06-07 06:29:42 +03:00
"summary" : "*\nSendToRouteSync is a synchronous version of SendToRoute. It Will block\nuntil the payment either fails or succeeds." ,
2018-01-25 08:08:46 +03:00
"operationId" : "SendToRouteSync" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcSendResponse"
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcSendToRouteRequest"
}
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2018-01-11 22:00:30 +03:00
"/v1/channels/{channel_point.funding_txid_str}/{channel_point.output_index}" : {
2016-10-16 00:38:47 +03:00
"delete" : {
2018-11-05 10:13:33 +03:00
"summary" : "* lncli: `closechannel`\nCloseChannel attempts to close an active channel identified by its channel\noutpoint (ChannelPoint). The actions of this method can additionally be\naugmented to attempt a force close after a timeout period in the case of an\ninactive peer. If a non-force close (cooperative closure) is requested,\nthen the user can specify either a target number of blocks until the\nclosure transaction is confirmed, or a manual fee rate. If neither are\nspecified, then a default lax, block confirmation target is used." ,
"operationId" : "CloseChannel" ,
2016-10-16 00:38:47 +03:00
"responses" : {
"200" : {
2018-11-05 10:13:33 +03:00
"description" : "(streaming responses)" ,
2016-10-16 00:38:47 +03:00
"schema" : {
2018-11-05 10:13:33 +03:00
"$ref" : "#/definitions/lnrpcCloseStatusUpdate"
2016-10-16 00:38:47 +03:00
}
}
} ,
"parameters" : [
{
2018-01-11 22:00:30 +03:00
"name" : "channel_point.funding_txid_str" ,
2016-10-16 00:38:47 +03:00
"in" : "path" ,
"required" : true ,
2018-01-11 22:00:30 +03:00
"type" : "string"
2016-10-16 00:38:47 +03:00
} ,
{
"name" : "channel_point.output_index" ,
"in" : "path" ,
"required" : true ,
"type" : "integer" ,
"format" : "int64"
2017-08-22 10:07:25 +03:00
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2018-01-13 15:22:41 +03:00
"/v1/chanpolicy" : {
"post" : {
"summary" : "* lncli: `updatechanpolicy`\nUpdateChannelPolicy allows the caller to update the fee schedule and\nchannel policies for all channels globally, or a particular channel." ,
"operationId" : "UpdateChannelPolicy" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcPolicyUpdateResponse"
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcPolicyUpdateRequest"
}
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2018-02-02 07:16:40 +03:00
"/v1/fees" : {
"get" : {
"summary" : "* lncli: `feereport`\nFeeReport allows the caller to obtain a report detailing the current fee\nschedule enforced by the node globally for each channel." ,
"operationId" : "FeeReport" ,
2017-10-12 12:10:29 +03:00
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
2018-02-02 07:16:40 +03:00
"$ref" : "#/definitions/lnrpcFeeReportResponse"
2017-10-12 12:10:29 +03:00
}
}
} ,
"tags" : [
2018-02-02 07:16:40 +03:00
"Lightning"
2017-10-12 12:10:29 +03:00
]
}
} ,
2018-02-02 07:16:40 +03:00
"/v1/genseed" : {
2017-08-22 10:07:25 +03:00
"get" : {
2018-02-02 07:16:40 +03:00
"summary" : "*\nGenSeed is the first method that should be used to instantiate a new lnd\ninstance. This method allows a caller to generate a new aezeed cipher seed\ngiven an optional passphrase. If provided, the passphrase will be necessary\nto decrypt the cipherseed to expose the internal wallet seed." ,
"description" : "Once the cipherseed is obtained and verified by the user, the InitWallet\nmethod should be used to commit the newly generated seed, and create the\nwallet." ,
"operationId" : "GenSeed" ,
2017-08-22 10:07:25 +03:00
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
2018-02-02 07:16:40 +03:00
"$ref" : "#/definitions/lnrpcGenSeedResponse"
2017-08-22 10:07:25 +03:00
}
}
} ,
2018-02-02 07:16:40 +03:00
"parameters" : [
{
"name" : "aezeed_passphrase" ,
"description" : "*\naezeed_passphrase is an optional user provided passphrase that will be used\nto encrypt the generated aezeed cipher seed." ,
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "byte"
} ,
{
"name" : "seed_entropy" ,
"description" : "*\nseed_entropy is an optional 16-bytes generated via CSPRNG. If not\nspecified, then a fresh set of randomness will be used to create the seed." ,
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "byte"
}
] ,
2017-08-22 10:07:25 +03:00
"tags" : [
2018-02-02 07:16:40 +03:00
"WalletUnlocker"
2017-08-22 10:07:25 +03:00
]
2016-10-16 00:38:47 +03:00
}
} ,
"/v1/getinfo" : {
"get" : {
2018-02-13 03:28:39 +03:00
"summary" : "* lncli: `getinfo`\nGetInfo returns general information concerning the lightning node including\nit's identity pubkey, alias, the chains it is connected to, and information\nconcerning the number of open+pending channels." ,
2016-10-16 00:38:47 +03:00
"operationId" : "GetInfo" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcGetInfoResponse"
}
}
} ,
"tags" : [
"Lightning"
]
}
} ,
2016-12-27 08:45:01 +03:00
"/v1/graph" : {
"get" : {
2017-08-22 10:07:25 +03:00
"summary" : "* lncli: `describegraph`\nDescribeGraph returns a description of the latest graph state from the\npoint of view of the node. The graph information is partitioned into two\ncomponents: all the nodes/vertexes, and all the edges that connect the\nvertexes themselves. As this is a directed graph, the edges also contain\nthe node directional specific routing policy which includes: the time lock\ndelta, fee information, etc." ,
2016-12-27 08:45:01 +03:00
"operationId" : "DescribeGraph" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcChannelGraph"
}
}
} ,
2018-09-26 18:26:04 +03:00
"parameters" : [
{
"name" : "include_unannounced" ,
"description" : "*\nWhether unannounced channels are included in the response or not. If set,\nunannounced channels are included. Unannounced channels are both private\nchannels, and public channels that are not yet announced to the network." ,
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
}
] ,
2016-12-27 08:45:01 +03:00
"tags" : [
"Lightning"
]
}
} ,
"/v1/graph/edge/{chan_id}" : {
"get" : {
2017-08-22 10:07:25 +03:00
"summary" : "* lncli: `getchaninfo`\nGetChanInfo returns the latest authenticated network announcement for the\ngiven channel identified by its channel ID: an 8-byte integer which\nuniquely identifies the location of transaction's funding output within the\nblockchain." ,
2016-12-27 08:45:01 +03:00
"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" : {
2017-08-22 10:07:25 +03:00
"summary" : "* lncli: `getnetworkinfo`\nGetNetworkInfo returns some basic stats about the known channel graph from\nthe point of view of the node." ,
2016-12-27 08:45:01 +03:00
"operationId" : "GetNetworkInfo" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcNetworkInfo"
}
}
} ,
"tags" : [
"Lightning"
]
}
} ,
"/v1/graph/node/{pub_key}" : {
"get" : {
2017-08-22 10:07:25 +03:00
"summary" : "* lncli: `getnodeinfo`\nGetNodeInfo returns the latest advertised, aggregated, and authenticated\nchannel information for the specified node identified by its public key." ,
2016-12-27 08:45:01 +03:00
"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" : {
2018-02-07 06:11:11 +03:00
"summary" : "* lncli: `queryroutes`\nQueryRoutes attempts to query the daemon's Channel Router for a possible\nroute to a target destination capable of carrying a specific amount of\nsatoshis. The retuned route contains the full details required to craft and\nsend an HTLC, also including the necessary information that should be\npresent within the Sphinx packet encapsulated within the HTLC." ,
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"
2018-02-13 03:28:39 +03:00
} ,
{
"name" : "num_routes" ,
"description" : "/ The max number of routes to return." ,
"in" : "query" ,
"required" : false ,
"type" : "integer" ,
"format" : "int32"
2018-02-15 15:01:57 +03:00
} ,
{
"name" : "final_cltv_delta" ,
"description" : "/ An optional CLTV delta from the current height that should be used for the timelock of the final hop." ,
"in" : "query" ,
"required" : false ,
"type" : "integer" ,
"format" : "int32"
2018-02-01 01:36:10 +03:00
} ,
{
2018-04-19 01:13:55 +03:00
"name" : "fee_limit.fixed" ,
"description" : "/ The fee limit expressed as a fixed amount of satoshis." ,
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "int64"
} ,
{
"name" : "fee_limit.percent" ,
"description" : "/ The fee limit expressed as a percentage of the payment amount." ,
2018-02-01 01:36:10 +03:00
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "int64"
2016-12-27 08:45:01 +03:00
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2018-02-02 07:16:40 +03:00
"/v1/initwallet" : {
"post" : {
2018-03-09 04:06:28 +03:00
"summary" : "* \nInitWallet is used when lnd is starting up for the first time to fully\ninitialize the daemon and its internal wallet. At the very least a wallet\npassword must be provided. This will be used to encrypt sensitive material\non disk." ,
2018-02-02 07:16:40 +03:00
"description" : "In the case of a recovery scenario, the user can also specify their aezeed\nmnemonic and passphrase. If set, then the daemon will use this prior state\nto initialize its internal wallet.\n\nAlternatively, this can be used along with the GenSeed RPC to obtain a\nseed, then present it to the user. Once it has been verified by the user,\nthe seed can be fed into this RPC in order to commit the new wallet." ,
"operationId" : "InitWallet" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcInitWalletResponse"
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcInitWalletRequest"
}
}
] ,
"tags" : [
"WalletUnlocker"
]
}
} ,
2018-01-22 08:19:24 +03:00
"/v1/invoice/{r_hash_str}" : {
"get" : {
2018-02-07 06:11:11 +03:00
"summary" : "* lncli: `lookupinvoice`\nLookupInvoice attempts to look up an invoice according to its payment hash.\nThe passed payment hash *must* be exactly 32 bytes, if not, an error is\nreturned." ,
2018-01-22 08:19:24 +03:00
"operationId" : "LookupInvoice" ,
2016-10-16 00:38:47 +03:00
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
2018-01-22 08:19:24 +03:00
"$ref" : "#/definitions/lnrpcInvoice"
2016-10-16 00:38:47 +03:00
}
}
} ,
"parameters" : [
{
2018-01-22 08:19:24 +03:00
"name" : "r_hash_str" ,
"in" : "path" ,
2016-10-16 00:38:47 +03:00
"required" : true ,
2018-01-22 08:19:24 +03:00
"type" : "string"
} ,
{
"name" : "r_hash" ,
"description" : "/ The payment hash of the invoice to be looked up." ,
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "byte"
2016-10-16 00:38:47 +03:00
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2018-01-22 08:19:24 +03:00
"/v1/invoices" : {
2016-10-16 00:38:47 +03:00
"get" : {
2019-01-23 05:23:39 +03:00
"summary" : "* lncli: `listinvoices`\nListInvoices returns a list of all the invoices currently stored within the\ndatabase. Any active debug invoices are ignored. It has full support for\npaginated responses, allowing users to query for specific invoices through\ntheir add_index. This can be done by using either the first_index_offset or\nlast_index_offset fields included in the response as the index_offset of the\nnext request. By default, the first 100 invoices created will be returned.\nBackwards pagination is also supported through the Reversed flag." ,
2018-01-22 08:19:24 +03:00
"operationId" : "ListInvoices" ,
2016-10-16 00:38:47 +03:00
"responses" : {
"200" : {
2018-01-22 08:19:24 +03:00
"description" : "" ,
2016-10-16 00:38:47 +03:00
"schema" : {
2018-01-22 08:19:24 +03:00
"$ref" : "#/definitions/lnrpcListInvoiceResponse"
2016-10-16 00:38:47 +03:00
}
}
} ,
2018-01-22 08:19:24 +03:00
"parameters" : [
{
"name" : "pending_only" ,
2018-08-11 05:35:38 +03:00
"description" : "/ If set, only unsettled invoices will be returned in the response." ,
2018-01-22 08:19:24 +03:00
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
2018-08-11 05:35:38 +03:00
} ,
{
"name" : "index_offset" ,
2018-09-14 00:50:58 +03:00
"description" : "*\nThe index of an invoice that will be used as either the start or end of a\nquery to determine which invoices should be returned in the response." ,
2018-08-11 05:35:38 +03:00
"in" : "query" ,
"required" : false ,
2018-09-11 04:19:06 +03:00
"type" : "string" ,
"format" : "uint64"
2018-08-11 05:35:38 +03:00
} ,
{
"name" : "num_max_invoices" ,
"description" : "/ The max number of invoices to return in the response to this query." ,
"in" : "query" ,
"required" : false ,
2018-09-11 04:19:06 +03:00
"type" : "string" ,
"format" : "uint64"
} ,
{
"name" : "reversed" ,
2018-09-14 00:50:58 +03:00
"description" : "*\nIf set, the invoices returned will result from seeking backwards from the\nspecified index offset. This can be used to paginate backwards." ,
2018-09-11 04:19:06 +03:00
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
2018-01-22 08:19:24 +03:00
}
] ,
2016-10-16 00:38:47 +03:00
"tags" : [
"Lightning"
]
2018-01-22 08:19:24 +03:00
} ,
"post" : {
"summary" : "* lncli: `addinvoice`\nAddInvoice attempts to add a new invoice to the invoice database. Any\nduplicated invoices are rejected, therefore all invoices *must* have a\nunique payment preimage." ,
"operationId" : "AddInvoice" ,
2016-10-16 00:38:47 +03:00
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
2018-01-22 08:19:24 +03:00
"$ref" : "#/definitions/lnrpcAddInvoiceResponse"
2016-10-16 00:38:47 +03:00
}
}
} ,
"parameters" : [
{
2018-01-22 08:19:24 +03:00
"name" : "body" ,
"in" : "body" ,
2016-10-16 00:38:47 +03:00
"required" : true ,
2018-01-22 08:19:24 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcInvoice"
}
2016-10-16 00:38:47 +03:00
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2018-01-22 08:19:24 +03:00
"/v1/invoices/subscribe" : {
2016-10-16 00:38:47 +03:00
"get" : {
2018-04-18 08:22:55 +03:00
"summary" : "*\nSubscribeInvoices returns a uni-directional stream (server -\u003e client) for\nnotifying the client of newly added/settled invoices. The caller can\noptionally specify the add_index and/or the settle_index. If the add_index\nis specified, then we'll first start by sending add invoice events for all\ninvoices with an add_index greater than the specified value. If the\nsettle_index is specified, the next, we'll send out all settle events for\ninvoices with a settle_index greater than the specified value. One or both\nof these fields can be set. If no fields are set, then we'll only send out\nthe latest add/settle events." ,
2018-01-22 08:19:24 +03:00
"operationId" : "SubscribeInvoices" ,
2016-10-16 00:38:47 +03:00
"responses" : {
"200" : {
2018-01-22 08:19:24 +03:00
"description" : "(streaming responses)" ,
2016-10-16 00:38:47 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcInvoice"
}
}
} ,
2018-04-25 06:41:22 +03:00
"parameters" : [
{
"name" : "add_index" ,
"description" : "*\nIf specified (non-zero), then we'll first start by sending out\nnotifications for all added indexes with an add_index greater than this\nvalue. This allows callers to catch up on any events they missed while they\nweren't connected to the streaming RPC." ,
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "uint64"
} ,
{
"name" : "settle_index" ,
"description" : "*\nIf specified (non-zero), then we'll first start by sending out\nnotifications for all settled indexes with an settle_index greater than\nthis value. This allows callers to catch up on any events they missed while\nthey weren't connected to the streaming RPC." ,
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "uint64"
}
] ,
2016-10-16 00:38:47 +03:00
"tags" : [
"Lightning"
]
}
} ,
"/v1/newaddress" : {
"get" : {
2018-09-28 01:54:59 +03:00
"summary" : "* lncli: `newaddress`\nNewAddress creates a new address under control of the local wallet." ,
"operationId" : "NewAddress" ,
2016-10-16 00:38:47 +03:00
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcNewAddressResponse"
}
}
} ,
2018-09-28 01:54:59 +03:00
"parameters" : [
{
"name" : "type" ,
"description" : "/ The address type." ,
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"enum" : [
"WITNESS_PUBKEY_HASH" ,
"NESTED_PUBKEY_HASH"
] ,
"default" : "WITNESS_PUBKEY_HASH"
}
] ,
2016-10-16 00:38:47 +03:00
"tags" : [
"Lightning"
]
}
} ,
2016-12-05 14:59:36 +03:00
"/v1/payments" : {
"get" : {
2017-08-22 10:07:25 +03:00
"summary" : "* lncli: `listpayments`\nListPayments returns a list of all outgoing payments." ,
2016-12-05 14:59:36 +03:00
"operationId" : "ListPayments" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcListPaymentsResponse"
}
}
} ,
"tags" : [
"Lightning"
]
} ,
"delete" : {
2017-08-22 10:07:25 +03:00
"summary" : "*\nDeleteAllPayments deletes all outgoing payments from DB." ,
2016-12-05 14:59:36 +03:00
"operationId" : "DeleteAllPayments" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcDeleteAllPaymentsResponse"
}
}
} ,
"tags" : [
"Lightning"
]
}
} ,
2017-01-18 00:24:55 +03:00
"/v1/payreq/{pay_req}" : {
"get" : {
2017-08-22 10:07:25 +03:00
"summary" : "* lncli: `decodepayreq`\nDecodePayReq takes an encoded payment request string and attempts to decode\nit, returning a full description of the conditions encoded within the\npayment request." ,
2017-01-18 00:24:55 +03:00
"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" : {
2017-08-22 10:07:25 +03:00
"summary" : "* lncli: `listpeers`\nListPeers returns a verbose listing of all currently active peers." ,
2016-10-16 00:38:47 +03:00
"operationId" : "ListPeers" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcListPeersResponse"
}
}
} ,
"tags" : [
"Lightning"
]
} ,
"post" : {
2017-08-22 10:07:25 +03:00
"summary" : "* lncli: `connect`\nConnectPeer attempts to establish a connection to a remote peer. This is at\nthe networking level, and is used for communication between nodes. This is\ndistinct from establishing a channel with a peer." ,
2016-10-16 00:38:47 +03:00
"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" : {
2017-08-22 10:07:25 +03:00
"summary" : "* lncli: `disconnect`\nDisconnectPeer attempts to disconnect one peer from another identified by a\ngiven pubKey. In the case that we currently have a pending or active channel\nwith the target peer, then this action will be not be allowed." ,
2017-04-12 00:49:39 +03:00
"operationId" : "DisconnectPeer" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcDisconnectPeerResponse"
}
}
} ,
"parameters" : [
{
"name" : "pub_key" ,
"in" : "path" ,
"required" : true ,
"type" : "string"
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2018-11-12 20:55:14 +03:00
"/v1/signmessage" : {
"post" : {
"summary" : "* lncli: `signmessage`\nSignMessage signs a message with this node's private key. The returned\nsignature string is `zbase32` encoded and pubkey recoverable, meaning that\nonly the message digest and signature are needed for verification." ,
"operationId" : "SignMessage" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcSignMessageResponse"
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcSignMessageRequest"
}
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2018-02-28 09:22:06 +03:00
"/v1/switch" : {
"post" : {
2018-03-09 04:06:28 +03:00
"summary" : "* lncli: `fwdinghistory`\nForwardingHistory allows the caller to query the htlcswitch for a record of\nall HTLC's forwarded within the target time range, and integer offset\nwithin that time range. If no time-range is specified, then the first chunk\nof the past 24 hrs of forwarding history are returned." ,
2018-02-28 09:22:06 +03:00
"description" : "A list of forwarding events are returned. The size of each forwarding event\nis 40 bytes, and the max message size able to be returned in gRPC is 4 MiB.\nAs a result each message can only contain 50k entries. Each response has\nthe index offset of the last entry. The index offset can be provided to the\nrequest to allow the caller to skip a series of records." ,
"operationId" : "ForwardingHistory" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcForwardingHistoryResponse"
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcForwardingHistoryRequest"
}
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2016-10-16 00:38:47 +03:00
"/v1/transactions" : {
"get" : {
2017-08-22 10:07:25 +03:00
"summary" : "* lncli: `listchaintxns`\nGetTransactions returns a list describing all the known transactions\nrelevant to the wallet." ,
2016-10-16 00:38:47 +03:00
"operationId" : "GetTransactions" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcTransactionDetails"
}
}
} ,
"tags" : [
"Lightning"
]
} ,
"post" : {
2017-11-23 22:40:14 +03:00
"summary" : "* lncli: `sendcoins`\nSendCoins executes a request to send coins to a particular address. Unlike\nSendMany, this RPC call only allows creating a single output at a time. If\nneither target_conf, or sat_per_byte are set, then the internal wallet will\nconsult its fee model to determine a fee for the default confirmation\ntarget." ,
2016-10-16 00:38:47 +03:00
"operationId" : "SendCoins" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcSendCoinsResponse"
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcSendCoinsRequest"
}
}
] ,
"tags" : [
"Lightning"
]
}
2017-10-12 12:10:29 +03:00
} ,
"/v1/unlockwallet" : {
"post" : {
"summary" : "* lncli: `unlock`\nUnlockWallet is used at startup of lnd to provide a password to unlock\nthe wallet database." ,
"operationId" : "UnlockWallet" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcUnlockWalletResponse"
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcUnlockWalletRequest"
}
}
] ,
"tags" : [
"WalletUnlocker"
]
}
2018-11-12 20:55:14 +03:00
} ,
2018-09-27 16:49:44 +03:00
"/v1/utxos" : {
"get" : {
"summary" : "* lncli: `listunspent`\nListUnspent returns a list of all utxos spendable by the wallet with a\nnumber of confirmations between the specified minimum and maximum." ,
"operationId" : "ListUnspent" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcListUnspentResponse"
}
}
} ,
"parameters" : [
{
"name" : "min_confs" ,
"description" : "/ The minimum number of confirmations to be included." ,
"in" : "query" ,
"required" : false ,
"type" : "integer" ,
"format" : "int32"
} ,
{
"name" : "max_confs" ,
"description" : "/ The maximum number of confirmations to be included." ,
"in" : "query" ,
"required" : false ,
"type" : "integer" ,
"format" : "int32"
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2018-11-12 20:55:14 +03:00
"/v1/verifymessage" : {
"post" : {
"summary" : "* lncli: `verifymessage`\nVerifyMessage verifies a signature over a msg. The signature must be\nzbase32 encoded and signed by an active node in the resident node's\nchannel database. In addition to returning the validity of the signature,\nVerifyMessage also returns the recovered pubkey from the signature." ,
"operationId" : "VerifyMessage" ,
"responses" : {
"200" : {
"description" : "" ,
"schema" : {
"$ref" : "#/definitions/lnrpcVerifyMessageResponse"
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcVerifyMessageRequest"
}
}
] ,
"tags" : [
"Lightning"
]
}
2016-10-16 00:38:47 +03:00
}
} ,
"definitions" : {
2018-05-24 12:36:35 +03:00
"ChannelCloseSummaryClosureType" : {
"type" : "string" ,
"enum" : [
"COOPERATIVE_CLOSE" ,
"LOCAL_FORCE_CLOSE" ,
"REMOTE_FORCE_CLOSE" ,
"BREACH_CLOSE" ,
2018-05-29 12:26:47 +03:00
"FUNDING_CANCELED" ,
"ABANDONED"
2018-05-24 12:36:35 +03:00
] ,
"default" : "COOPERATIVE_CLOSE"
} ,
2019-01-23 05:28:27 +03:00
"ChannelEventUpdateUpdateType" : {
"type" : "string" ,
"enum" : [
"OPEN_CHANNEL" ,
"CLOSED_CHANNEL" ,
"ACTIVE_CHANNEL" ,
"INACTIVE_CHANNEL"
] ,
"default" : "OPEN_CHANNEL"
} ,
2018-12-19 18:03:48 +03:00
"InvoiceInvoiceState" : {
"type" : "string" ,
"enum" : [
"OPEN" ,
"SETTLED"
] ,
"default" : "OPEN"
} ,
2018-01-04 23:20:25 +03:00
"PendingChannelsResponseClosedChannel" : {
2017-05-05 01:34:02 +03:00
"type" : "object" ,
"properties" : {
"channel" : {
2018-01-04 23:20:25 +03:00
"$ref" : "#/definitions/PendingChannelsResponsePendingChannel" ,
2017-08-22 10:07:25 +03:00
"title" : "/ The pending channel to be closed"
2017-05-05 01:34:02 +03:00
} ,
"closing_txid" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ The transaction id of the closing transaction"
2017-05-05 01:34:02 +03:00
}
}
} ,
2018-01-04 23:20:25 +03:00
"PendingChannelsResponseForceClosedChannel" : {
2017-05-05 01:34:02 +03:00
"type" : "object" ,
"properties" : {
"channel" : {
2018-01-04 23:20:25 +03:00
"$ref" : "#/definitions/PendingChannelsResponsePendingChannel" ,
2017-08-22 10:07:25 +03:00
"title" : "/ The pending channel to be force closed"
2017-05-05 01:34:02 +03:00
} ,
"closing_txid" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ The transaction id of the closing transaction"
2017-05-05 01:34:02 +03:00
} ,
"limbo_balance" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ The balance in satoshis encumbered in this pending channel"
2017-05-05 01:34:02 +03:00
} ,
"maturity_height" : {
"type" : "integer" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ The height at which funds can be sweeped into the wallet"
2017-05-05 01:34:02 +03:00
} ,
"blocks_til_maturity" : {
"type" : "integer" ,
2017-11-09 06:27:45 +03:00
"format" : "int32" ,
"description" : "Remaining # of blocks until the commitment output can be swept.\nNegative values indicate how many blocks have passed since becoming\nmature."
} ,
"recovered_balance" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
2017-11-09 06:27:45 +03:00
"title" : "/ The total value of funds successfully recovered from this channel"
} ,
"pending_htlcs" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcPendingHTLC"
}
2017-05-05 01:34:02 +03:00
}
}
} ,
2018-01-04 23:20:25 +03:00
"PendingChannelsResponsePendingChannel" : {
2016-10-16 00:38:47 +03:00
"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
}
}
} ,
2018-01-04 23:20:25 +03:00
"PendingChannelsResponsePendingOpenChannel" : {
2017-05-05 01:34:02 +03:00
"type" : "object" ,
"properties" : {
"channel" : {
2018-01-04 23:20:25 +03:00
"$ref" : "#/definitions/PendingChannelsResponsePendingChannel" ,
2017-08-22 10:07:25 +03:00
"title" : "/ The pending channel"
2016-10-16 00:38:47 +03:00
} ,
2017-05-05 01:34:02 +03:00
"confirmation_height" : {
"type" : "integer" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ The height at which this channel will be confirmed"
2017-01-13 06:40:38 +03:00
} ,
2017-05-17 05:13:25 +03:00
"commit_fee" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"description" : "*\nThe amount calculated to be paid in fees for the current set of\ncommitment transactions. The fee amount is persisted with the channel\nin order to allow the fee amount to be removed and recalculated with\neach channel state update, including updates that happen after a system\nrestart."
2017-05-17 05:13:25 +03:00
} ,
"commit_weight" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ The weight of the commitment transaction"
2017-05-17 05:13:25 +03:00
} ,
"fee_per_kw" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"description" : "*\nThe required number of satoshis per kilo-weight that the requester will\npay at all times, for both the funding transaction and commitment\ntransaction. This value can later be updated once the channel is open."
2016-10-16 00:38:47 +03:00
}
}
} ,
2018-04-12 13:58:21 +03:00
"PendingChannelsResponseWaitingCloseChannel" : {
"type" : "object" ,
"properties" : {
"channel" : {
"$ref" : "#/definitions/PendingChannelsResponsePendingChannel" ,
"title" : "/ The pending channel waiting for closing tx to confirm"
} ,
"limbo_balance" : {
"type" : "string" ,
"format" : "int64" ,
"title" : "/ The balance in satoshis encumbered in this channel"
}
}
} ,
2018-05-29 12:26:47 +03:00
"lnrpcAbandonChannelResponse" : {
"type" : "object"
} ,
2018-03-13 22:11:09 +03:00
"lnrpcAddInvoiceResponse" : {
"type" : "object" ,
"properties" : {
"r_hash" : {
"type" : "string" ,
"format" : "byte"
} ,
"payment_request" : {
"type" : "string" ,
"description" : "*\nA bare-bones invoice for a payment within the Lightning Network. With the\ndetails of the invoice, the sender has all the data necessary to send a\npayment to the recipient."
2018-06-30 04:06:10 +03:00
} ,
"add_index" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "*\nThe \"add\" index of this invoice. Each newly created invoice will increment\nthis index making it monotonically increasing. Callers to the\nSubscribeInvoices call can use this to instantly get notified of all added\ninvoices with an add_index greater than this one."
2018-03-13 22:11:09 +03:00
}
}
} ,
2018-09-27 16:49:44 +03:00
"lnrpcAddressType" : {
"type" : "string" ,
"enum" : [
"WITNESS_PUBKEY_HASH" ,
"NESTED_PUBKEY_HASH"
] ,
"default" : "WITNESS_PUBKEY_HASH" ,
"description" : "- `p2wkh`: Pay to witness key hash (`WITNESS_PUBKEY_HASH` = 0)\n- `np2wkh`: Pay to nested witness key hash (`NESTED_PUBKEY_HASH` = 1)" ,
"title" : "* \n`AddressType` has to be one of:"
} ,
2019-01-02 18:10:12 +03:00
"lnrpcChain" : {
"type" : "object" ,
"properties" : {
"chain" : {
2018-11-18 08:07:48 +03:00
"type" : "string" ,
"title" : "/ The blockchain the node is on (eg bitcoin, litecoin)"
2019-01-02 18:10:12 +03:00
} ,
"network" : {
2018-11-18 08:07:48 +03:00
"type" : "string" ,
"title" : "/ The network the node is on (eg regtest, testnet, mainnet)"
2019-01-02 18:10:12 +03:00
}
}
} ,
2018-04-09 00:34:06 +03:00
"lnrpcChangePasswordRequest" : {
"type" : "object" ,
"properties" : {
"current_password" : {
"type" : "string" ,
"format" : "byte" ,
"description" : "*\ncurrent_password should be the current valid passphrase used to unlock the\ndaemon."
} ,
"new_password" : {
"type" : "string" ,
"format" : "byte" ,
"description" : "*\nnew_password should be the new passphrase that will be needed to unlock the\ndaemon."
}
}
} ,
"lnrpcChangePasswordResponse" : {
"type" : "object"
} ,
2018-03-13 22:11:09 +03:00
"lnrpcChannel" : {
2016-10-16 00:38:47 +03:00
"type" : "object" ,
"properties" : {
2017-03-09 01:45:58 +03:00
"active" : {
"type" : "boolean" ,
2017-08-22 10:07:25 +03:00
"format" : "boolean" ,
"title" : "/ Whether this channel is active or not"
2017-03-09 01:45:58 +03:00
} ,
2017-01-13 06:40:38 +03:00
"remote_pubkey" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ The identity pubkey of the remote node"
2017-01-13 06:40:38 +03:00
} ,
"channel_point" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"description" : "*\nThe outpoint (txid:index) of the funding transaction. With this value, Bob\nwill be able to generate a signature for Alice's version of the commitment\ntransaction."
2016-10-16 00:38:47 +03:00
} ,
2016-12-27 08:45:01 +03:00
"chan_id" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "uint64" ,
"description" : "*\nThe unique channel ID for the channel. The first 3 bytes are the block\nheight, the next 3 the index within the block, and the last 2 bytes are the\noutput index for the channel."
2016-12-27 08:45:01 +03:00
} ,
2017-01-13 06:40:38 +03:00
"capacity" : {
2016-10-16 00:38:47 +03:00
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ The total amount of funds held in this channel"
2016-10-16 00:38:47 +03:00
} ,
"local_balance" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ This node's current balance in this channel"
2016-10-16 00:38:47 +03:00
} ,
"remote_balance" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ The counterparty's current balance in this channel"
2016-10-16 00:38:47 +03:00
} ,
2017-05-17 05:13:25 +03:00
"commit_fee" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"description" : "*\nThe amount calculated to be paid in fees for the current set of commitment\ntransactions. The fee amount is persisted with the channel in order to\nallow the fee amount to be removed and recalculated with each channel state\nupdate, including updates that happen after a system restart."
2017-05-17 05:13:25 +03:00
} ,
"commit_weight" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ The weight of the commitment transaction"
2017-05-17 05:13:25 +03:00
} ,
"fee_per_kw" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"description" : "*\nThe required number of satoshis per kilo-weight that the requester will pay\nat all times, for both the funding transaction and commitment transaction.\nThis value can later be updated once the channel is open."
2017-05-17 05:13:25 +03:00
} ,
2017-01-13 06:40:38 +03:00
"unsettled_balance" : {
2016-11-19 03:20:44 +03:00
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ The unsettled balance in this channel"
2016-11-19 03:20:44 +03:00
} ,
"total_satoshis_sent" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"description" : "*\nThe total number of satoshis we've sent within this channel."
2016-11-19 03:20:44 +03:00
} ,
2017-01-13 06:40:38 +03:00
"total_satoshis_received" : {
2016-10-16 00:38:47 +03:00
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"description" : "*\nThe total number of satoshis we've received within this channel."
2017-01-13 06:40:38 +03:00
} ,
"num_updates" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "uint64" ,
"description" : "*\nThe total number of updates conducted within this channel."
2017-01-13 06:40:38 +03:00
} ,
"pending_htlcs" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcHTLC"
2017-08-22 10:07:25 +03:00
} ,
"description" : "*\nThe list of active, uncleared HTLCs currently pending within the channel."
2017-12-06 04:27:30 +03:00
} ,
"csv_delay" : {
"type" : "integer" ,
"format" : "int64" ,
"description" : "*\nThe CSV delay expressed in relative blocks. If the channel is force\nclosed, we'll need to wait for this many blocks before we can regain our\nfunds."
2017-01-13 06:40:38 +03:00
} ,
2018-03-13 22:11:09 +03:00
"private" : {
"type" : "boolean" ,
"format" : "boolean" ,
2019-01-15 04:26:22 +03:00
"description" : "/ Whether this channel is advertised to the network or not."
} ,
"initiator" : {
"type" : "boolean" ,
"format" : "boolean" ,
"description" : "/ True if we were the ones that creted the channel."
2016-12-27 08:45:01 +03:00
}
}
} ,
2016-10-16 00:38:47 +03:00
"lnrpcChannelBalanceResponse" : {
"type" : "object" ,
"properties" : {
"balance" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ Sum of channels balances denominated in satoshis"
2018-04-01 02:38:04 +03:00
} ,
"pending_open_balance" : {
"type" : "string" ,
"format" : "int64" ,
"title" : "/ Sum of channels pending balances denominated in satoshis"
2016-10-16 00:38:47 +03:00
}
}
} ,
2018-05-24 12:36:35 +03:00
"lnrpcChannelCloseSummary" : {
"type" : "object" ,
"properties" : {
"channel_point" : {
"type" : "string" ,
"description" : "/ The outpoint (txid:index) of the funding transaction."
} ,
"chan_id" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "/ The unique channel ID for the channel."
} ,
"chain_hash" : {
"type" : "string" ,
"description" : "/ The hash of the genesis block that this channel resides within."
} ,
"closing_tx_hash" : {
"type" : "string" ,
"description" : "/ The txid of the transaction which ultimately closed this channel."
} ,
"remote_pubkey" : {
"type" : "string" ,
"description" : "/ Public key of the remote peer that we formerly had a channel with."
} ,
"capacity" : {
"type" : "string" ,
"format" : "int64" ,
"description" : "/ Total capacity of the channel."
} ,
"close_height" : {
"type" : "integer" ,
"format" : "int64" ,
"description" : "/ Height at which the funding transaction was spent."
} ,
"settled_balance" : {
"type" : "string" ,
"format" : "int64" ,
"title" : "/ Settled balance at the time of channel closure"
} ,
"time_locked_balance" : {
"type" : "string" ,
"format" : "int64" ,
"title" : "/ The sum of all the time-locked outputs at the time of channel closure"
} ,
"close_type" : {
"$ref" : "#/definitions/ChannelCloseSummaryClosureType" ,
"description" : "/ Details on how the channel was closed."
}
}
} ,
2016-10-16 00:38:47 +03:00
"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-08-22 10:07:25 +03:00
"format" : "uint64" ,
"description" : "*\nThe unique channel ID for the channel. The first 3 bytes are the block\nheight, the next 3 the index within the block, and the last 2 bytes are the\noutput index for the channel."
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-08-22 10:07:25 +03:00
} ,
2018-04-18 05:02:04 +03:00
"description" : "*\nA fully authenticated channel along with all its unique attributes.\nOnce an authenticated channel announcement has been processed on the network,\nthen an instance of ChannelEdgeInfo encapsulating the channels attributes is\nstored. The other portions relevant to routing policy of a channel are stored\nwithin a ChannelEdgePolicy for each direction of the channel."
2016-12-27 08:45:01 +03:00
} ,
2017-03-14 06:37:25 +03:00
"lnrpcChannelEdgeUpdate" : {
"type" : "object" ,
"properties" : {
"chan_id" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "uint64" ,
"description" : "*\nThe unique channel ID for the channel. The first 3 bytes are the block\nheight, the next 3 the index within the block, and the last 2 bytes are the\noutput index for the channel."
2017-03-14 06:37:25 +03:00
} ,
"chan_point" : {
"$ref" : "#/definitions/lnrpcChannelPoint"
} ,
"capacity" : {
"type" : "string" ,
"format" : "int64"
} ,
"routing_policy" : {
"$ref" : "#/definitions/lnrpcRoutingPolicy"
} ,
"advertising_node" : {
"type" : "string"
} ,
"connecting_node" : {
"type" : "string"
}
}
} ,
2019-01-23 05:28:27 +03:00
"lnrpcChannelEventUpdate" : {
"type" : "object" ,
"properties" : {
"open_channel" : {
"$ref" : "#/definitions/lnrpcChannel"
} ,
"closed_channel" : {
"$ref" : "#/definitions/lnrpcChannelCloseSummary"
} ,
"active_channel" : {
"$ref" : "#/definitions/lnrpcChannelPoint"
} ,
"inactive_channel" : {
"$ref" : "#/definitions/lnrpcChannelPoint"
} ,
"type" : {
"$ref" : "#/definitions/ChannelEventUpdateUpdateType"
}
}
} ,
2017-08-22 10:07:25 +03:00
"lnrpcChannelFeeReport" : {
"type" : "object" ,
"properties" : {
"chan_point" : {
"type" : "string" ,
"description" : "/ The channel that this fee report belongs to."
} ,
"base_fee_msat" : {
"type" : "string" ,
"format" : "int64" ,
"description" : "/ The base fee charged regardless of the number of milli-satoshis sent."
} ,
"fee_per_mil" : {
"type" : "string" ,
"format" : "int64" ,
"description" : "/ The amount charged per milli-satoshis transferred expressed in millionths of a satoshi."
} ,
"fee_rate" : {
"type" : "number" ,
"format" : "double" ,
"description" : "/ The effective fee rate in milli-satoshis. Computed by dividing the fee_per_mil value by 1 million."
}
}
} ,
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"
2017-08-22 10:07:25 +03:00
} ,
"title" : "/ The list of `LightningNode`s in this channel graph"
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"
2017-08-22 10:07:25 +03:00
} ,
"title" : "/ The list of `ChannelEdge`s in this channel graph"
2016-12-27 08:45:01 +03:00
}
2017-08-22 10:07:25 +03:00
} ,
"description" : "/ Returns a new instance of the directed channel graph."
2016-12-27 08:45:01 +03:00
} ,
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" : {
2018-01-11 07:17:18 +03:00
"funding_txid_bytes" : {
2016-10-16 00:38:47 +03:00
"type" : "string" ,
2017-03-14 06:37:25 +03:00
"format" : "byte" ,
2017-08-22 10:07:25 +03:00
"title" : "/ Txid of the funding transaction"
2016-10-16 00:38:47 +03:00
} ,
"funding_txid_str" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ Hex-encoded string representing the funding transaction"
2016-10-16 00:38:47 +03:00
} ,
"output_index" : {
"type" : "integer" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ The index of the output of the funding transaction"
2016-10-16 00:38:47 +03:00
}
}
} ,
"lnrpcCloseStatusUpdate" : {
"type" : "object" ,
"properties" : {
"close_pending" : {
"$ref" : "#/definitions/lnrpcPendingUpdate"
} ,
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" ,
2017-08-22 10:07:25 +03:00
"format" : "uint64" ,
"description" : "*\nThe unique channel ID for the channel. The first 3 bytes are the block\nheight, the next 3 the index within the block, and the last 2 bytes are the\noutput index for the channel."
2017-03-14 06:37:25 +03:00
} ,
"capacity" : {
"type" : "string" ,
"format" : "int64"
} ,
"closed_height" : {
"type" : "integer" ,
"format" : "int64"
} ,
"chan_point" : {
"$ref" : "#/definitions/lnrpcChannelPoint"
}
}
} ,
2018-05-24 12:36:35 +03:00
"lnrpcClosedChannelsResponse" : {
"type" : "object" ,
"properties" : {
"channels" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcChannelCloseSummary"
}
}
}
} ,
2016-10-16 00:38:47 +03:00
"lnrpcConnectPeerRequest" : {
"type" : "object" ,
"properties" : {
"addr" : {
2017-08-22 10:07:25 +03:00
"$ref" : "#/definitions/lnrpcLightningAddress" ,
"title" : "/ Lightning address of the peer, in the format `\u003cpubkey\u003e@host`"
2017-01-10 06:01:06 +03:00
} ,
"perm" : {
"type" : "boolean" ,
2017-08-22 10:07:25 +03:00
"format" : "boolean" ,
"description" : "* If set, the daemon will attempt to persistently connect to the target\npeer. Otherwise, the call will be synchronous."
2016-10-16 00:38:47 +03:00
}
}
} ,
"lnrpcConnectPeerResponse" : {
2018-02-14 08:23:01 +03:00
"type" : "object"
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
}
}
} ,
2017-08-22 10:07:25 +03:00
"lnrpcDeleteAllPaymentsResponse" : {
2016-12-05 14:59:36 +03:00
"type" : "object"
} ,
2017-08-22 10:07:25 +03:00
"lnrpcDisconnectPeerResponse" : {
2016-12-05 14:59:36 +03:00
"type" : "object"
} ,
2018-04-19 01:13:55 +03:00
"lnrpcFeeLimit" : {
"type" : "object" ,
"properties" : {
"fixed" : {
"type" : "string" ,
"format" : "int64" ,
"description" : "/ The fee limit expressed as a fixed amount of satoshis."
} ,
"percent" : {
"type" : "string" ,
"format" : "int64" ,
"description" : "/ The fee limit expressed as a percentage of the payment amount."
}
}
} ,
2017-08-22 10:07:25 +03:00
"lnrpcFeeReportResponse" : {
2017-04-12 00:49:39 +03:00
"type" : "object" ,
"properties" : {
2017-08-22 10:07:25 +03:00
"channel_fees" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcChannelFeeReport"
} ,
"description" : "/ An array of channel fee reports which describes the current fee schedule for each channel."
2018-02-28 09:22:06 +03:00
} ,
"day_fee_sum" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "/ The total amount of fee revenue (in satoshis) the switch has collected over the past 24 hrs."
} ,
"week_fee_sum" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "/ The total amount of fee revenue (in satoshis) the switch has collected over the past 1 week."
} ,
"month_fee_sum" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "/ The total amount of fee revenue (in satoshis) the switch has collected over the past 1 month."
}
}
} ,
"lnrpcForwardingEvent" : {
"type" : "object" ,
"properties" : {
"timestamp" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "/ Timestamp is the time (unix epoch offset) that this circuit was completed."
} ,
"chan_id_in" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "/ The incoming channel ID that carried the HTLC that created the circuit."
} ,
"chan_id_out" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "/ The outgoing channel ID that carried the preimage that completed the circuit."
} ,
"amt_in" : {
"type" : "string" ,
"format" : "uint64" ,
2018-11-13 20:22:12 +03:00
"description" : "/ The total amount (in satoshis) of the incoming HTLC that created half the circuit."
2018-02-28 09:22:06 +03:00
} ,
"amt_out" : {
"type" : "string" ,
"format" : "uint64" ,
2018-11-13 20:22:12 +03:00
"description" : "/ The total amount (in satoshis) of the outgoing HTLC that created the second half of the circuit."
2018-02-28 09:22:06 +03:00
} ,
"fee" : {
"type" : "string" ,
"format" : "uint64" ,
2018-11-13 20:22:12 +03:00
"description" : "/ The total fee (in satoshis) that this payment circuit carried."
} ,
"fee_msat" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "/ The total fee (in milli-satoshis) that this payment circuit carried."
2018-02-28 09:22:06 +03:00
}
}
} ,
"lnrpcForwardingHistoryRequest" : {
"type" : "object" ,
"properties" : {
"start_time" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "/ Start time is the starting point of the forwarding history request. All records beyond this point will be included, respecting the end time, and the index offset."
} ,
"end_time" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "/ End time is the end point of the forwarding history request. The response will carry at most 50k records between the start time and the end time. The index offset can be used to implement pagination."
} ,
"index_offset" : {
"type" : "integer" ,
"format" : "int64" ,
"description" : "/ Index offset is the offset in the time series to start at. As each response can only contain 50k records, callers can use this to skip around within a packed time series."
} ,
"num_max_events" : {
"type" : "integer" ,
"format" : "int64" ,
"description" : "/ The max number of events to return in the response to this query."
}
}
} ,
"lnrpcForwardingHistoryResponse" : {
"type" : "object" ,
"properties" : {
"forwarding_events" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcForwardingEvent"
} ,
"description" : "/ A list of forwarding events from the time slice of the time series specified in the request."
} ,
"last_offset_index" : {
"type" : "integer" ,
"format" : "int64" ,
"description" : "/ The index of the last time in the set of returned forwarding events. Can be used to seek further, pagination style."
2017-04-12 00:49:39 +03:00
}
}
} ,
2018-02-02 07:16:40 +03:00
"lnrpcGenSeedResponse" : {
"type" : "object" ,
"properties" : {
"cipher_seed_mnemonic" : {
"type" : "array" ,
"items" : {
"type" : "string"
} ,
"description" : "*\ncipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed\ncipher seed obtained by the user. This field is optional, as if not\nprovided, then the daemon will generate a new cipher seed for the user.\nOtherwise, then the daemon will attempt to recover the wallet state linked\nto this cipher seed."
} ,
"enciphered_seed" : {
"type" : "string" ,
"format" : "byte" ,
"description" : "*\nenciphered_seed are the raw aezeed cipher seed bytes. This is the raw\ncipher text before run through our mnemonic encoding scheme."
}
}
} ,
2016-10-16 00:38:47 +03:00
"lnrpcGetInfoResponse" : {
"type" : "object" ,
"properties" : {
2017-01-13 06:40:38 +03:00
"identity_pubkey" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"description" : "/ The identity pubkey of the current node."
2016-12-27 08:45:01 +03:00
} ,
2017-01-13 06:40:38 +03:00
"alias" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ If applicable, the alias of the current node, e.g. \"bob\""
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" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ Number of pending channels"
2016-11-15 02:54:47 +03:00
} ,
2016-10-16 00:38:47 +03:00
"num_active_channels" : {
"type" : "integer" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ Number of active channels"
2016-10-16 00:38:47 +03:00
} ,
"num_peers" : {
"type" : "integer" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ Number of peers"
2016-10-16 00:38:47 +03:00
} ,
2017-01-13 06:40:38 +03:00
"block_height" : {
2016-10-16 00:38:47 +03:00
"type" : "integer" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ The node's current view of the height of the best block"
2016-11-15 02:54:47 +03:00
} ,
2017-01-13 06:40:38 +03:00
"block_hash" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ The node's current view of the hash of the best block"
2017-01-13 06:40:38 +03:00
} ,
2016-11-15 02:54:47 +03:00
"synced_to_chain" : {
"type" : "boolean" ,
2017-08-22 10:07:25 +03:00
"format" : "boolean" ,
"title" : "/ Whether the wallet's view is synced to the main chain"
2016-12-13 02:34:20 +03:00
} ,
"testnet" : {
"type" : "boolean" ,
2017-08-22 10:07:25 +03:00
"format" : "boolean" ,
2019-01-02 18:10:12 +03:00
"title" : "* \nWhether the current node is connected to testnet. This field is \ndeprecated and the network field should be used instead"
2018-01-07 08:50:30 +03:00
} ,
"uris" : {
"type" : "array" ,
"items" : {
"type" : "string"
} ,
"description" : "/ The URIs of the current node."
2017-12-10 10:42:46 +03:00
} ,
"best_header_timestamp" : {
"type" : "string" ,
"format" : "int64" ,
"title" : "/ Timestamp of the block best known to the wallet"
2018-04-04 06:40:44 +03:00
} ,
"version" : {
"type" : "string" ,
"description" : "/ The version of the LND software that the node is running."
2018-08-28 19:24:08 +03:00
} ,
"num_inactive_channels" : {
"type" : "integer" ,
"format" : "int64" ,
"title" : "/ Number of inactive channels"
2019-01-02 18:10:12 +03:00
} ,
"chains" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcChain"
} ,
"title" : "/ A list of active chains the node is connected to"
2016-10-16 00:38:47 +03:00
}
}
} ,
2017-03-14 06:37:25 +03:00
"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
}
}
} ,
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-08-22 10:07:25 +03:00
"format" : "uint64" ,
"description" : "*\nThe unique channel ID for the channel. The first 3 bytes are the block\nheight, the next 3 the index within the block, and the last 2 bytes are the\noutput index for the channel."
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"
2018-04-12 11:34:31 +03:00
} ,
"amt_to_forward_msat" : {
"type" : "string" ,
"format" : "int64"
} ,
"fee_msat" : {
"type" : "string" ,
"format" : "int64"
2018-08-02 16:18:21 +03:00
} ,
"pub_key" : {
"type" : "string" ,
"description" : "*\nAn optional public key of the hop. If the public key is given, the payment\ncan be executed without relying on a copy of the channel graph."
2016-12-27 08:45:01 +03:00
}
}
} ,
2018-03-28 06:45:22 +03:00
"lnrpcHopHint" : {
"type" : "object" ,
"properties" : {
"node_id" : {
"type" : "string" ,
"description" : "/ The public key of the node at the start of the channel."
} ,
"chan_id" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "/ The unique identifier of the channel."
} ,
"fee_base_msat" : {
"type" : "integer" ,
"format" : "int64" ,
"description" : "/ The base fee of the channel denominated in millisatoshis."
} ,
"fee_proportional_millionths" : {
"type" : "integer" ,
"format" : "int64" ,
"description" : "*\nThe fee rate of the channel for sending one satoshi across it denominated in\nmillionths of a satoshi."
} ,
"cltv_expiry_delta" : {
"type" : "integer" ,
"format" : "int64" ,
"description" : "/ The time-lock delta of the channel."
}
}
} ,
2018-02-02 07:16:40 +03:00
"lnrpcInitWalletRequest" : {
"type" : "object" ,
"properties" : {
"wallet_password" : {
"type" : "string" ,
"format" : "byte" ,
"description" : "*\nwallet_password is the passphrase that should be used to encrypt the\nwallet. This MUST be at least 8 chars in length. After creation, this\npassword is required to unlock the daemon."
} ,
"cipher_seed_mnemonic" : {
"type" : "array" ,
"items" : {
"type" : "string"
} ,
"description" : "*\ncipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed\ncipher seed obtained by the user. This may have been generated by the\nGenSeed method, or be an existing seed."
} ,
"aezeed_passphrase" : {
"type" : "string" ,
"format" : "byte" ,
"description" : "*\naezeed_passphrase is an optional user provided passphrase that will be used\nto encrypt the generated aezeed cipher seed."
2018-03-27 00:09:52 +03:00
} ,
"recovery_window" : {
"type" : "integer" ,
"format" : "int32" ,
"description" : "*\nrecovery_window is an optional argument specifying the address lookahead\nwhen restoring a wallet seed. The recovery window applies to each\ninvdividual branch of the BIP44 derivation paths. Supplying a recovery\nwindow of zero indicates that no addresses should be recovered, such after\nthe first initialization of the wallet."
2018-02-02 07:16:40 +03:00
}
}
} ,
"lnrpcInitWalletResponse" : {
"type" : "object"
} ,
2016-10-16 00:38:47 +03:00
"lnrpcInvoice" : {
"type" : "object" ,
"properties" : {
"memo" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
2017-09-05 19:01:01 +03:00
"description" : "*\nAn optional memo to attach along with the invoice. Used for record keeping\npurposes for the invoice's creator, and will also be set in the description\nfield of the encoded payment request if the description_hash field is not\nbeing used."
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" ,
2017-08-22 10:07:25 +03:00
"format" : "byte" ,
2019-01-03 10:45:46 +03:00
"description" : "* Deprecated. An optional cryptographic receipt of payment which is not\nimplemented."
2016-10-16 00:38:47 +03:00
} ,
"r_preimage" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "byte" ,
"title" : "*\nThe hex-encoded preimage (32 byte) which will allow settling an incoming\nHTLC payable to this preimage"
2016-10-16 00:38:47 +03:00
} ,
2017-01-13 06:40:38 +03:00
"r_hash" : {
2016-10-16 00:38:47 +03:00
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "byte" ,
"title" : "/ The hash of the preimage"
2016-10-16 00:38:47 +03:00
} ,
2017-01-13 06:40:38 +03:00
"value" : {
2016-11-13 05:03:19 +03:00
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ The value of this invoice in satoshis"
2016-11-13 05:03:19 +03:00
} ,
2016-10-16 00:38:47 +03:00
"settled" : {
"type" : "boolean" ,
2017-08-22 10:07:25 +03:00
"format" : "boolean" ,
"title" : "/ Whether this invoice has been fulfilled"
2016-10-16 00:38:47 +03:00
} ,
2017-01-13 06:40:38 +03:00
"creation_date" : {
2016-10-16 00:38:47 +03:00
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ When this invoice was created"
2017-01-13 06:40:38 +03:00
} ,
"settle_date" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ When this invoice was settled"
2017-01-13 06:40:38 +03:00
} ,
"payment_request" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"description" : "*\nA bare-bones invoice for a payment within the Lightning Network. With the\ndetails of the invoice, the sender has all the data necessary to send a\npayment to the recipient."
2017-09-05 19:01:01 +03:00
} ,
"description_hash" : {
"type" : "string" ,
"format" : "byte" ,
"description" : "*\nHash (SHA-256) of a description of the payment. Used if the description of\npayment (memo) is too long to naturally fit within the description field\nof an encoded payment request."
} ,
"expiry" : {
"type" : "string" ,
"format" : "int64" ,
"description" : "/ Payment request expiry time in seconds. Default is 3600 (1 hour)."
} ,
"fallback_addr" : {
"type" : "string" ,
"description" : "/ Fallback on-chain address."
2017-10-19 08:13:40 +03:00
} ,
"cltv_expiry" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "/ Delta to use for the time-lock of the CLTV extended to the final hop."
2018-03-28 06:45:22 +03:00
} ,
"route_hints" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcRouteHint"
} ,
"description" : "*\nRoute hints that can each be individually used to assist in reaching the\ninvoice's destination."
2018-03-28 07:03:33 +03:00
} ,
"private" : {
"type" : "boolean" ,
"format" : "boolean" ,
"description" : "/ Whether this invoice should include routing hints for private channels."
2018-04-25 06:41:22 +03:00
} ,
"add_index" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "*\nThe \"add\" index of this invoice. Each newly created invoice will increment\nthis index making it monotonically increasing. Callers to the\nSubscribeInvoices call can use this to instantly get notified of all added\ninvoices with an add_index greater than this one."
} ,
"settle_index" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "*\nThe \"settle\" index of this invoice. Each newly settled invoice will\nincrement this index making it monotonically increasing. Callers to the\nSubscribeInvoices call can use this to instantly get notified of all\nsettled invoices with an settle_index greater than this one."
} ,
"amt_paid" : {
"type" : "string" ,
"format" : "int64" ,
2018-09-06 09:38:38 +03:00
"description" : "/ Deprecated, use amt_paid_sat or amt_paid_msat."
} ,
"amt_paid_sat" : {
"type" : "string" ,
"format" : "int64" ,
"description" : "*\nThe amount that was accepted for this invoice, in satoshis. This will ONLY\nbe set if this invoice has been settled. We provide this field as if the\ninvoice was created with a zero value, then we need to record what amount\nwas ultimately accepted. Additionally, it's possible that the sender paid\nMORE that was specified in the original invoice. So we'll record that here\nas well."
} ,
"amt_paid_msat" : {
"type" : "string" ,
"format" : "int64" ,
"description" : "*\nThe amount that was accepted for this invoice, in millisatoshis. This will\nONLY be set if this invoice has been settled. We provide this field as if\nthe invoice was created with a zero value, then we need to record what\namount was ultimately accepted. Additionally, it's possible that the sender\npaid MORE that was specified in the original invoice. So we'll record that\nhere as well."
2018-12-19 18:03:48 +03:00
} ,
"state" : {
"$ref" : "#/definitions/InvoiceInvoiceState" ,
"description" : "*\nThe state the invoice is in."
2016-10-16 00:38:47 +03:00
}
}
} ,
"lnrpcLightningAddress" : {
"type" : "object" ,
"properties" : {
2017-01-13 06:40:38 +03:00
"pubkey" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ The identity pubkey of the Lightning node"
2016-10-16 00:38:47 +03:00
} ,
2017-01-13 06:40:38 +03:00
"host" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ The network location of the lightning node, e.g. `69.69.69.69:1337` or `localhost:10011`"
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"
}
2017-12-03 05:35:49 +03:00
} ,
"color" : {
"type" : "string"
2016-12-27 08:45:01 +03:00
}
2017-08-22 10:07:25 +03:00
} ,
"description" : "*\nAn individual vertex/node within the channel graph. A node is\nconnected to other nodes by one or more channel edges emanating from it. As the\ngraph is directed, a node will also have an incoming edge attached to it for\neach outgoing edge."
2016-10-16 00:38:47 +03:00
} ,
"lnrpcListChannelsResponse" : {
"type" : "object" ,
"properties" : {
"channels" : {
"type" : "array" ,
"items" : {
2018-03-13 22:11:09 +03:00
"$ref" : "#/definitions/lnrpcChannel"
2017-08-22 10:07:25 +03:00
} ,
"title" : "/ The list of active channels"
2016-10-16 00:38:47 +03:00
}
}
} ,
"lnrpcListInvoiceResponse" : {
"type" : "object" ,
"properties" : {
"invoices" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcInvoice"
2018-08-11 05:35:38 +03:00
} ,
"description" : "*\nA list of invoices from the time slice of the time series specified in the\nrequest."
} ,
"last_index_offset" : {
2018-09-11 04:19:06 +03:00
"type" : "string" ,
"format" : "uint64" ,
"description" : "*\nThe index of the last item in the set of returned invoices. This can be used\nto seek further, pagination style."
} ,
"first_index_offset" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "*\nThe index of the last item in the set of returned invoices. This can be used\nto seek backwards, pagination style."
2016-10-16 00:38:47 +03:00
}
}
} ,
2016-12-05 14:59:36 +03:00
"lnrpcListPaymentsResponse" : {
"type" : "object" ,
"properties" : {
"payments" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcPayment"
2017-08-22 10:07:25 +03:00
} ,
"title" : "/ The list of payments"
2016-12-05 14:59:36 +03:00
}
}
} ,
2016-10-16 00:38:47 +03:00
"lnrpcListPeersResponse" : {
"type" : "object" ,
"properties" : {
"peers" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcPeer"
2017-08-22 10:07:25 +03:00
} ,
"title" : "/ The list of currently connected peers"
2016-10-16 00:38:47 +03:00
}
}
} ,
2018-09-27 16:49:44 +03:00
"lnrpcListUnspentResponse" : {
"type" : "object" ,
"properties" : {
"utxos" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcUtxo"
} ,
"title" : "/ A list of utxos"
}
}
} ,
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"
}
}
} ,
2016-10-16 00:38:47 +03:00
"lnrpcNewAddressResponse" : {
"type" : "object" ,
"properties" : {
"address" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ The newly generated wallet address"
2016-10-16 00:38:47 +03:00
}
}
} ,
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" : {
2017-08-22 10:07:25 +03:00
"$ref" : "#/definitions/lnrpcLightningNode" ,
"description" : "*\nAn individual vertex/node within the channel graph. A node is\nconnected to other nodes by one or more channel edges emanating from it. As\nthe graph is directed, a node will also have an incoming edge attached to\nit for each outgoing edge."
2016-12-27 08:45:01 +03:00
} ,
"num_channels" : {
"type" : "integer" ,
"format" : "int64"
} ,
"total_capacity" : {
"type" : "string" ,
"format" : "int64"
}
}
} ,
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" : {
2016-10-28 05:41:42 +03:00
"node_pubkey" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "byte" ,
"title" : "/ The pubkey of the node to open a channel with"
2016-10-28 05:41:42 +03:00
} ,
2016-11-11 04:33:24 +03:00
"node_pubkey_string" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
2018-02-07 06:11:11 +03:00
"title" : "/ The hex encoded pubkey of the node to open a channel with"
2016-11-11 04:33:24 +03:00
} ,
2017-01-13 06:40:38 +03:00
"local_funding_amount" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ The number of satoshis the wallet should commit to the channel"
2016-10-16 00:38:47 +03:00
} ,
2017-01-10 06:01:06 +03:00
"push_sat" : {
2016-10-16 00:38:47 +03:00
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ The number of satoshis to push to the remote side as part of the initial commitment state"
2017-11-23 22:40:14 +03:00
} ,
"target_conf" : {
"type" : "integer" ,
"format" : "int32" ,
2018-03-15 20:32:35 +03:00
"description" : "/ The target number of blocks that the funding transaction should be confirmed by."
2017-11-23 22:40:14 +03:00
} ,
"sat_per_byte" : {
"type" : "string" ,
"format" : "int64" ,
2018-03-15 20:32:35 +03:00
"description" : "/ A manual fee rate set in sat/byte that should be used when crafting the funding transaction."
2017-11-14 02:47:33 +03:00
} ,
"private" : {
"type" : "boolean" ,
"format" : "boolean" ,
2017-11-14 04:06:50 +03:00
"description" : "/ Whether this channel should be private, not announced to the greater network."
2017-12-17 01:58:08 +03:00
} ,
"min_htlc_msat" : {
"type" : "string" ,
"format" : "int64" ,
"description" : "/ The minimum value in millisatoshi we will require for incoming HTLCs on the channel."
2018-03-14 16:12:24 +03:00
} ,
"remote_csv_delay" : {
"type" : "integer" ,
"format" : "int64" ,
"description" : "/ The delay we require on the remote's commitment transaction. If this is not set, it will be scaled automatically with the channel size."
2018-08-10 05:37:32 +03:00
} ,
"min_confs" : {
"type" : "integer" ,
"format" : "int32" ,
"description" : "/ The minimum number of confirmations each one of your outputs used for the funding transaction must satisfy."
2018-10-17 02:44:26 +03:00
} ,
"spend_unconfirmed" : {
"type" : "boolean" ,
"format" : "boolean" ,
"description" : "/ Whether unconfirmed outputs should be used as inputs for the funding transaction."
2017-01-13 06:40:38 +03:00
}
}
} ,
"lnrpcOpenStatusUpdate" : {
"type" : "object" ,
"properties" : {
"chan_pending" : {
"$ref" : "#/definitions/lnrpcPendingUpdate"
} ,
"chan_open" : {
"$ref" : "#/definitions/lnrpcChannelOpenUpdate"
2016-10-16 00:38:47 +03:00
}
}
} ,
2019-02-02 05:01:51 +03:00
"lnrpcOutPoint" : {
"type" : "object" ,
"properties" : {
"txid_bytes" : {
"type" : "string" ,
"format" : "byte" ,
"description" : "/ Raw bytes representing the transaction id."
} ,
"txid_str" : {
"type" : "string" ,
"description" : "/ Reversed, hex-encoded string representing the transaction id."
} ,
"output_index" : {
"type" : "integer" ,
"format" : "int64" ,
"description" : "/ The index of the output on the transaction."
}
}
} ,
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-09-05 19:01:01 +03:00
} ,
"timestamp" : {
"type" : "string" ,
"format" : "int64"
} ,
"expiry" : {
"type" : "string" ,
"format" : "int64"
} ,
"description" : {
"type" : "string"
} ,
"description_hash" : {
"type" : "string"
} ,
"fallback_addr" : {
"type" : "string"
2017-10-19 08:13:40 +03:00
} ,
"cltv_expiry" : {
"type" : "string" ,
"format" : "int64"
2018-03-28 06:45:22 +03:00
} ,
"route_hints" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcRouteHint"
}
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-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ The payment hash"
2017-01-13 06:40:38 +03:00
} ,
"value" : {
2016-12-05 14:59:36 +03:00
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
2018-09-16 15:43:20 +03:00
"description" : "/ Deprecated, use value_sat or value_msat."
2016-12-05 14:59:36 +03:00
} ,
2017-01-13 06:40:38 +03:00
"creation_date" : {
2016-12-05 14:59:36 +03:00
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ The date of this payment"
2016-12-05 14:59:36 +03:00
} ,
"path" : {
"type" : "array" ,
"items" : {
2017-02-28 06:03:43 +03:00
"type" : "string"
2017-08-22 10:07:25 +03:00
} ,
"title" : "/ The path this payment took"
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" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ The fee paid for this payment in satoshis"
2017-12-14 04:04:18 +03:00
} ,
"payment_preimage" : {
"type" : "string" ,
"title" : "/ The payment preimage"
2018-09-16 15:43:20 +03:00
} ,
"value_sat" : {
"type" : "string" ,
"format" : "int64" ,
"title" : "/ The value of the payment in satoshis"
} ,
"value_msat" : {
"type" : "string" ,
"format" : "int64" ,
"title" : "/ The value of the payment in milli-satoshis"
2016-10-16 00:38:47 +03:00
}
}
} ,
"lnrpcPeer" : {
"type" : "object" ,
"properties" : {
2017-01-13 06:40:38 +03:00
"pub_key" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ The identity pubkey of the peer"
2016-10-16 00:38:47 +03:00
} ,
2017-01-13 06:40:38 +03:00
"address" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ Network address of the peer; eg `127.0.0.1:10011`"
2016-10-16 00:38:47 +03:00
} ,
"bytes_sent" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "uint64" ,
"title" : "/ Bytes of data transmitted to this peer"
2016-10-16 00:38:47 +03:00
} ,
2017-01-13 06:40:38 +03:00
"bytes_recv" : {
2017-01-26 05:16:28 +03:00
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "uint64" ,
"title" : "/ Bytes of data transmitted from this peer"
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-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ Satoshis sent to this peer"
2016-10-27 00:31:41 +03:00
} ,
2016-10-16 00:38:47 +03:00
"sat_recv" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ Satoshis received from this peer"
2016-10-16 00:38:47 +03:00
} ,
2017-01-13 06:40:38 +03:00
"inbound" : {
"type" : "boolean" ,
2017-08-22 10:07:25 +03:00
"format" : "boolean" ,
"title" : "/ A channel is inbound if the counterparty initiated the channel"
2017-01-13 06:40:38 +03:00
} ,
"ping_time" : {
2016-10-16 00:38:47 +03:00
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ Ping time to this peer"
2016-10-16 00:38:47 +03:00
}
}
} ,
2018-01-04 23:20:25 +03:00
"lnrpcPendingChannelsResponse" : {
2016-10-16 00:38:47 +03:00
"type" : "object" ,
"properties" : {
2017-05-05 01:34:02 +03:00
"total_limbo_balance" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ The balance in satoshis encumbered in pending channels"
2017-05-05 01:34:02 +03:00
} ,
"pending_open_channels" : {
"type" : "array" ,
"items" : {
2018-01-04 23:20:25 +03:00
"$ref" : "#/definitions/PendingChannelsResponsePendingOpenChannel"
2017-08-22 10:07:25 +03:00
} ,
"title" : "/ Channels pending opening"
2017-05-05 01:34:02 +03:00
} ,
"pending_closing_channels" : {
"type" : "array" ,
"items" : {
2018-01-04 23:20:25 +03:00
"$ref" : "#/definitions/PendingChannelsResponseClosedChannel"
2017-08-22 10:07:25 +03:00
} ,
"title" : "/ Channels pending closing"
2017-05-05 01:34:02 +03:00
} ,
"pending_force_closing_channels" : {
2016-10-16 00:38:47 +03:00
"type" : "array" ,
"items" : {
2018-01-04 23:20:25 +03:00
"$ref" : "#/definitions/PendingChannelsResponseForceClosedChannel"
2017-08-22 10:07:25 +03:00
} ,
"title" : "/ Channels pending force closing"
2018-04-12 13:58:21 +03:00
} ,
"waiting_close_channels" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/PendingChannelsResponseWaitingCloseChannel"
} ,
"title" : "/ Channels waiting for closing tx to confirm"
2016-10-16 00:38:47 +03:00
}
}
} ,
2017-11-09 06:27:45 +03:00
"lnrpcPendingHTLC" : {
"type" : "object" ,
"properties" : {
"incoming" : {
"type" : "boolean" ,
"format" : "boolean" ,
"title" : "/ The direction within the channel that the htlc was sent"
} ,
"amount" : {
"type" : "string" ,
"format" : "int64" ,
"title" : "/ The total value of the htlc"
} ,
"outpoint" : {
"type" : "string" ,
"title" : "/ The final output to be swept back to the user's wallet"
} ,
"maturity_height" : {
"type" : "integer" ,
"format" : "int64" ,
"title" : "/ The next block height at which we can spend the current stage"
} ,
"blocks_til_maturity" : {
"type" : "integer" ,
"format" : "int32" ,
"description" : "*\nThe number of blocks remaining until the current stage can be swept.\nNegative values indicate how many blocks have passed since becoming\nmature."
} ,
"stage" : {
"type" : "integer" ,
"format" : "int64" ,
"title" : "/ Indicates whether the htlc is in its first or second stage of recovery"
}
}
} ,
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-12-16 00:11:23 +03:00
"lnrpcPolicyUpdateRequest" : {
"type" : "object" ,
"properties" : {
"global" : {
"type" : "boolean" ,
"format" : "boolean" ,
"description" : "/ If set, then this update applies to all currently active channels."
} ,
"chan_point" : {
"$ref" : "#/definitions/lnrpcChannelPoint" ,
"description" : "/ If set, this update will target a specific channel."
} ,
"base_fee_msat" : {
"type" : "string" ,
"format" : "int64" ,
"description" : "/ The base fee charged regardless of the number of milli-satoshis sent."
} ,
"fee_rate" : {
"type" : "number" ,
"format" : "double" ,
"description" : "/ The effective fee rate in milli-satoshis. The precision of this value goes up to 6 decimal places, so 1e-6."
} ,
"time_lock_delta" : {
"type" : "integer" ,
"format" : "int64" ,
"description" : "/ The required timelock delta for HTLCs forwarded over the channel."
}
}
} ,
"lnrpcPolicyUpdateResponse" : {
"type" : "object"
} ,
2017-03-21 05:01:32 +03:00
"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" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"description" : "*\nThe cumulative (final) time lock across the entire route. This is the CLTV\nvalue that should be extended to the first hop in the route. All other hops\nwill decrement the time-lock as advertised, leaving enough time for all\nhops to wait for or present the payment preimage to complete the payment."
2016-12-27 08:45:01 +03:00
} ,
"total_fees" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"description" : "*\nThe sum of the fees paid at each hop within the final route. In the case\nof a one-hop payment, this value will be zero as we don't need to pay a fee\nit ourself."
2016-12-27 08:45:01 +03:00
} ,
2017-01-13 06:40:38 +03:00
"total_amt" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"description" : "*\nThe total amount of funds required to complete a payment over this route.\nThis value includes the cumulative fees at each hop. As a result, the HTLC\nextended to the first-hop in the route will need to have at least this many\nsatoshis, otherwise the route will fail at an intermediate node due to an\ninsufficient amount of fees."
2017-01-13 06:40:38 +03:00
} ,
"hops" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcHop"
2017-08-22 10:07:25 +03:00
} ,
"description" : "*\nContains details concerning the specific forwarding details at each hop."
2018-04-12 11:34:31 +03:00
} ,
"total_fees_msat" : {
"type" : "string" ,
"format" : "int64" ,
"description" : "*\nThe total fees in millisatoshis."
} ,
"total_amt_msat" : {
"type" : "string" ,
"format" : "int64" ,
"description" : "*\nThe total amount in millisatoshis."
2016-12-27 08:45:01 +03:00
}
2017-08-22 10:07:25 +03:00
} ,
"description" : "*\nA path through the channel graph which runs over one or more channels in\nsuccession. This struct carries all the information required to craft the\nSphinx onion packet, and send the payment along the first hop in the path. A\nroute is only selected as valid if all the channels have sufficient capacity to\ncarry the initial payment amount after fees are accounted for."
2016-12-27 08:45:01 +03:00
} ,
2018-03-28 06:45:22 +03:00
"lnrpcRouteHint" : {
"type" : "object" ,
"properties" : {
"hop_hints" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcHopHint"
} ,
"description" : "*\nA list of hop hints that when chained together can assist in reaching a\nspecific destination."
}
}
} ,
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"
2018-06-14 05:37:03 +03:00
} ,
"disabled" : {
"type" : "boolean" ,
"format" : "boolean"
2016-12-27 08:45:01 +03:00
}
}
} ,
2016-10-16 00:38:47 +03:00
"lnrpcSendCoinsRequest" : {
"type" : "object" ,
"properties" : {
"addr" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ The address to send coins to"
2016-10-16 00:38:47 +03:00
} ,
"amount" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ The amount in satoshis to send"
2017-11-23 22:40:14 +03:00
} ,
"target_conf" : {
"type" : "integer" ,
"format" : "int32" ,
"description" : "/ The target number of blocks that this transaction should be confirmed by."
} ,
"sat_per_byte" : {
"type" : "string" ,
"format" : "int64" ,
"description" : "/ A manual fee rate set in sat/byte that should be used when crafting the transaction."
2018-11-18 08:07:48 +03:00
} ,
"send_all" : {
"type" : "boolean" ,
"format" : "boolean" ,
"description" : "*\nIf set, then the amount field will be ignored, and lnd will attempt to\nsend all the coins under control of the internal wallet to the specified\naddress."
2016-10-16 00:38:47 +03:00
}
}
} ,
"lnrpcSendCoinsResponse" : {
"type" : "object" ,
"properties" : {
"txid" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ The transaction ID of the transaction"
2017-01-13 06:40:38 +03:00
}
}
} ,
"lnrpcSendManyResponse" : {
"type" : "object" ,
"properties" : {
"txid" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ The id of the transaction"
2017-01-13 06:40:38 +03:00
}
}
} ,
"lnrpcSendRequest" : {
"type" : "object" ,
"properties" : {
2016-10-16 00:38:47 +03:00
"dest" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "byte" ,
"title" : "/ The identity pubkey of the payment recipient"
2016-10-16 00:38:47 +03:00
} ,
2016-11-11 04:33:24 +03:00
"dest_string" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ The hex-encoded identity pubkey of the payment recipient"
2016-11-11 04:33:24 +03:00
} ,
2017-01-13 06:40:38 +03:00
"amt" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"description" : "/ Number of satoshis to send."
2017-01-13 06:40:38 +03:00
} ,
2016-10-16 00:38:47 +03:00
"payment_hash" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "byte" ,
"title" : "/ The hash to use within the payment's HTLC"
2016-11-11 04:33:24 +03:00
} ,
"payment_hash_string" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ The hex-encoded hash to use within the payment's HTLC"
2017-01-03 02:31:38 +03:00
} ,
"payment_request" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"description" : "*\nA bare-bones invoice for a payment within the Lightning Network. With the\ndetails of the invoice, the sender has all the data necessary to send a\npayment to the recipient."
2018-01-17 07:20:34 +03:00
} ,
"final_cltv_delta" : {
"type" : "integer" ,
"format" : "int32" ,
2018-04-19 01:13:55 +03:00
"description" : "*\nThe CLTV delta from the current height that should be used to set the\ntimelock for the final hop."
2018-02-01 01:36:10 +03:00
} ,
"fee_limit" : {
2018-04-19 01:13:55 +03:00
"$ref" : "#/definitions/lnrpcFeeLimit" ,
"description" : "*\nThe maximum number of satoshis that will be paid as a fee of the payment.\nThis value can be represented either as a percentage of the amount being\nsent, or as a fixed amount of the maximum fee the user is willing the pay to\nsend the payment."
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"
2018-12-05 09:57:44 +03:00
} ,
"payment_hash" : {
"type" : "string" ,
"format" : "byte"
2017-01-17 07:35:29 +03:00
}
}
2016-10-16 00:38:47 +03:00
} ,
2018-01-25 08:08:46 +03:00
"lnrpcSendToRouteRequest" : {
"type" : "object" ,
"properties" : {
"payment_hash" : {
"type" : "string" ,
"format" : "byte" ,
2018-06-07 06:29:42 +03:00
"description" : "/ The payment hash to use for the HTLC."
2018-01-25 08:08:46 +03:00
} ,
"payment_hash_string" : {
"type" : "string" ,
2018-06-07 06:29:42 +03:00
"description" : "/ An optional hex-encoded payment hash to be used for the HTLC."
2018-01-25 08:08:46 +03:00
} ,
"routes" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcRoute"
} ,
2019-01-21 14:54:08 +03:00
"description" : "*\nDeprecated. The set of routes that should be used to attempt to complete the\npayment. The possibility to pass in multiple routes is deprecated and \ninstead the single route field below should be used in combination with the \nstreaming variant of SendToRoute."
} ,
"route" : {
"$ref" : "#/definitions/lnrpcRoute" ,
"description" : "/ Route that should be used to attempt to complete the payment."
2018-01-25 08:08:46 +03:00
}
}
} ,
2018-11-12 20:55:14 +03:00
"lnrpcSignMessageRequest" : {
"type" : "object" ,
"properties" : {
"msg" : {
"type" : "string" ,
"format" : "byte" ,
"title" : "/ The message to be signed"
}
}
} ,
2017-04-20 05:28:10 +03:00
"lnrpcSignMessageResponse" : {
"type" : "object" ,
"properties" : {
"signature" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ The signature for the given message"
2017-04-20 05:28:10 +03:00
}
}
} ,
2017-05-12 00:55:56 +03:00
"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-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ The transaction hash"
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" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
2018-09-06 11:48:46 +03:00
"title" : "/ The transaction amount, denominated in satoshis"
2016-10-16 00:38:47 +03:00
} ,
2017-01-13 06:40:38 +03:00
"num_confirmations" : {
"type" : "integer" ,
2017-08-22 10:07:25 +03:00
"format" : "int32" ,
"title" : "/ The number of confirmations"
2017-01-13 06:40:38 +03:00
} ,
2016-10-16 00:38:47 +03:00
"block_hash" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ The hash of the block this transaction was included in"
2016-10-16 00:38:47 +03:00
} ,
"block_height" : {
"type" : "integer" ,
2017-08-22 10:07:25 +03:00
"format" : "int32" ,
"title" : "/ The height of the block this transaction was included in"
2016-10-16 00:38:47 +03:00
} ,
"time_stamp" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ Timestamp of this transaction"
2016-10-16 00:38:47 +03:00
} ,
"total_fees" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ Fees paid for this transaction"
2017-12-06 20:19:07 +03:00
} ,
"dest_addresses" : {
"type" : "array" ,
"items" : {
"type" : "string"
} ,
"title" : "/ Addresses that received funds for this transaction"
2016-10-16 00:38:47 +03:00
}
}
} ,
"lnrpcTransactionDetails" : {
"type" : "object" ,
"properties" : {
"transactions" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcTransaction"
2017-08-22 10:07:25 +03:00
} ,
"description" : "/ The list of transactions relevant to the wallet."
2017-04-20 05:28:10 +03:00
}
}
} ,
2017-10-12 12:10:29 +03:00
"lnrpcUnlockWalletRequest" : {
"type" : "object" ,
"properties" : {
2018-02-02 07:16:40 +03:00
"wallet_password" : {
2017-10-12 12:10:29 +03:00
"type" : "string" ,
2018-02-02 07:16:40 +03:00
"format" : "byte" ,
"description" : "*\nwallet_password should be the current valid passphrase for the daemon. This\nwill be required to decrypt on-disk material that the daemon requires to\nfunction properly."
2018-03-27 00:09:52 +03:00
} ,
"recovery_window" : {
"type" : "integer" ,
"format" : "int32" ,
"description" : "*\nrecovery_window is an optional argument specifying the address lookahead\nwhen restoring a wallet seed. The recovery window applies to each\ninvdividual branch of the BIP44 derivation paths. Supplying a recovery\nwindow of zero indicates that no addresses should be recovered, such after\nthe first initialization of the wallet."
2017-10-12 12:10:29 +03:00
}
}
} ,
"lnrpcUnlockWalletResponse" : {
"type" : "object"
} ,
2018-09-27 16:49:44 +03:00
"lnrpcUtxo" : {
"type" : "object" ,
"properties" : {
"type" : {
"$ref" : "#/definitions/lnrpcAddressType" ,
"title" : "/ The type of address"
} ,
"address" : {
"type" : "string" ,
"title" : "/ The address"
} ,
"amount_sat" : {
"type" : "string" ,
"format" : "int64" ,
"title" : "/ The value of the unspent coin in satoshis"
} ,
"script_pubkey" : {
"type" : "string" ,
"title" : "/ The scriptpubkey in hex"
} ,
"outpoint" : {
2019-02-02 05:01:51 +03:00
"$ref" : "#/definitions/lnrpcOutPoint" ,
"title" : "/ The outpoint in format txid:n"
2018-09-27 16:49:44 +03:00
} ,
"confirmations" : {
"type" : "string" ,
"format" : "int64" ,
"title" : "/ The number of confirmations for the Utxo"
}
}
} ,
2018-11-12 20:55:14 +03:00
"lnrpcVerifyMessageRequest" : {
"type" : "object" ,
"properties" : {
"msg" : {
"type" : "string" ,
"format" : "byte" ,
"title" : "/ The message over which the signature is to be verified"
} ,
"signature" : {
"type" : "string" ,
"title" : "/ The signature to be verified over the given message"
}
}
} ,
2017-04-20 05:28:10 +03:00
"lnrpcVerifyMessageResponse" : {
"type" : "object" ,
"properties" : {
"valid" : {
"type" : "boolean" ,
2017-08-22 10:07:25 +03:00
"format" : "boolean" ,
"title" : "/ Whether the signature was valid over the given message"
2017-04-29 14:44:29 +03:00
} ,
"pubkey" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
"title" : "/ The pubkey recovered from the signature"
2016-10-16 00:38:47 +03:00
}
}
} ,
"lnrpcWalletBalanceResponse" : {
"type" : "object" ,
"properties" : {
2017-11-26 16:07:55 +03:00
"total_balance" : {
2017-07-05 01:50:24 +03:00
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
"title" : "/ The balance of the wallet"
2017-11-26 16:07:55 +03:00
} ,
"confirmed_balance" : {
"type" : "string" ,
"format" : "int64" ,
"title" : "/ The confirmed balance of a wallet(with \u003e= 1 confirmations)"
} ,
"unconfirmed_balance" : {
"type" : "string" ,
"format" : "int64" ,
"title" : "/ The unconfirmed balance of a wallet(with 0 confirmations)"
2016-10-16 00:38:47 +03:00
}
}
}
}
}