2016-10-16 00:38:47 +03:00
{
"swagger" : "2.0" ,
"info" : {
"title" : "rpc.proto" ,
"version" : "version not set"
} ,
"consumes" : [
"application/json"
] ,
"produces" : [
"application/json"
] ,
"paths" : {
"/v1/balance/blockchain" : {
"get" : {
2020-05-06 17:51:14 +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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2016-10-16 00:38:47 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcWalletBalanceResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2016-10-16 00:38:47 +03:00
}
} ,
"tags" : [
"Lightning"
]
}
} ,
"/v1/balance/channels" : {
"get" : {
2020-05-06 17:51:14 +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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2016-10-16 00:38:47 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcChannelBalanceResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2016-10-16 00:38:47 +03:00
}
} ,
"tags" : [
"Lightning"
]
}
} ,
"/v1/channels" : {
"get" : {
2020-05-06 17:51:14 +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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2016-10-16 00:38:47 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcListChannelsResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2016-10-16 00:38:47 +03:00
}
} ,
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"
2020-03-03 16:11:33 +03:00
} ,
{
"name" : "peer" ,
2020-05-06 17:51:14 +03:00
"description" : "Filters the response for channels with a target peer's pubkey. If peer is\nempty, all channels will be returned." ,
2020-03-03 16:11:33 +03:00
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "byte"
2018-03-13 22:11:09 +03:00
}
] ,
2016-10-16 00:38:47 +03:00
"tags" : [
"Lightning"
]
} ,
"post" : {
2020-05-06 17:51:14 +03:00
"summary" : "OpenChannelSync 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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
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
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
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" : {
2020-08-21 14:08:36 +03:00
"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. This method can also be\nused to remove externally funded channels where the funding transaction was\nnever broadcast. Only available for non-externally funded channels in dev\nbuild." ,
2018-11-05 10:13:33 +03:00
"operationId" : "AbandonChannel" ,
"responses" : {
"200" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2018-11-05 10:13:33 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcAbandonChannelResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2018-11-05 10:13:33 +03:00
}
} ,
"parameters" : [
{
"name" : "channel_point.funding_txid_str" ,
2020-05-06 17:51:14 +03:00
"description" : "Hex-encoded string representing the byte-reversed hash of the funding\ntransaction." ,
2018-11-05 10:13:33 +03:00
"in" : "path" ,
"required" : true ,
"type" : "string"
} ,
{
"name" : "channel_point.output_index" ,
2020-05-06 17:51:14 +03:00
"description" : "The index of the output of the funding transaction" ,
2018-11-05 10:13:33 +03:00
"in" : "path" ,
"required" : true ,
"type" : "integer" ,
"format" : "int64"
2019-10-30 12:53:21 +03:00
} ,
{
"name" : "channel_point.funding_txid_bytes" ,
2020-05-06 17:51:14 +03:00
"description" : "Txid of the funding transaction. When using REST, this field must be\nencoded as base64." ,
2019-10-30 12:53:21 +03:00
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "byte"
2020-08-21 14:08:36 +03:00
} ,
{
"name" : "pending_funding_shim_only" ,
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
2018-11-05 10:13:33 +03:00
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2019-04-03 06:46:27 +03:00
"/v1/channels/backup" : {
"get" : {
2020-05-06 17:51:14 +03:00
"summary" : "ExportAllChannelBackups returns static channel backups for all existing\nchannels known to lnd. A set of regular singular static channel backups for\neach channel are returned. Additionally, a multi-channel backup is returned\nas well, which contains a single encrypted blob containing the backups of\neach channel." ,
2019-04-03 06:46:27 +03:00
"operationId" : "ExportAllChannelBackups" ,
"responses" : {
"200" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2019-04-03 06:46:27 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcChanBackupSnapshot"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2019-04-03 06:46:27 +03:00
}
} ,
"tags" : [
"Lightning"
]
}
} ,
"/v1/channels/backup/restore" : {
"post" : {
2020-05-06 17:51:14 +03:00
"summary" : "lncli: `restorechanbackup`\nRestoreChannelBackups accepts a set of singular channel backups, or a\nsingle encrypted multi-chan backup and attempts to recover any funds\nremaining within the channel. If we are able to unpack the backup, then the\nnew channel will be shown under listchannels, as well as pending channels." ,
2019-04-03 06:46:27 +03:00
"operationId" : "RestoreChannelBackups" ,
"responses" : {
"200" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2019-04-03 06:46:27 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcRestoreBackupResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2019-04-03 06:46:27 +03:00
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcRestoreChanBackupRequest"
}
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2020-05-28 14:07:31 +03:00
"/v1/channels/backup/subscribe" : {
"get" : {
"summary" : "SubscribeChannelBackups allows a client to sub-subscribe to the most up to\ndate information concerning the state of all channel backups. Each time a\nnew channel is added, we return the new set of channels, along with a\nmulti-chan backup containing the backup info for all channels. Each time a\nchannel is closed, we send a new update, which contains new new chan back\nups, but the updated set of encrypted multi-chan backups with the closed\nchannel(s) removed." ,
"operationId" : "SubscribeChannelBackups" ,
"responses" : {
"200" : {
"description" : "A successful response.(streaming responses)" ,
"schema" : {
"type" : "object" ,
"properties" : {
"result" : {
"$ref" : "#/definitions/lnrpcChanBackupSnapshot"
} ,
"error" : {
"$ref" : "#/definitions/runtimeStreamError"
}
} ,
"title" : "Stream result of lnrpcChanBackupSnapshot"
}
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
}
} ,
"tags" : [
"Lightning"
]
}
} ,
2019-04-03 06:46:27 +03:00
"/v1/channels/backup/verify" : {
"post" : {
2020-05-06 17:51:14 +03:00
"summary" : "VerifyChanBackup allows a caller to verify the integrity of a channel backup\nsnapshot. This method will accept either a packed Single or a packed Multi.\nSpecifying both will result in an error." ,
2019-04-03 06:46:27 +03:00
"operationId" : "VerifyChanBackup" ,
"responses" : {
"200" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2019-04-03 06:46:27 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcVerifyChanBackupResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2019-04-03 06:46:27 +03:00
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcChanBackupSnapshot"
}
}
] ,
"tags" : [
"Lightning"
]
}
} ,
"/v1/channels/backup/{chan_point.funding_txid_str}/{chan_point.output_index}" : {
"get" : {
2020-05-06 17:51:14 +03:00
"summary" : "lncli: `exportchanbackup`\nExportChannelBackup attempts to return an encrypted static channel backup\nfor the target channel identified by it channel point. The backup is\nencrypted with a key generated from the aezeed seed of the user. The\nreturned backup can either be restored using the RestoreChannelBackup\nmethod once lnd is running, or via the InitWallet and UnlockWallet methods\nfrom the WalletUnlocker service." ,
2019-04-03 06:46:27 +03:00
"operationId" : "ExportChannelBackup" ,
"responses" : {
"200" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2019-04-03 06:46:27 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcChannelBackup"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2019-04-03 06:46:27 +03:00
}
} ,
"parameters" : [
{
"name" : "chan_point.funding_txid_str" ,
2020-05-06 17:51:14 +03:00
"description" : "Hex-encoded string representing the byte-reversed hash of the funding\ntransaction." ,
2019-04-03 06:46:27 +03:00
"in" : "path" ,
"required" : true ,
"type" : "string"
} ,
{
"name" : "chan_point.output_index" ,
2020-05-06 17:51:14 +03:00
"description" : "The index of the output of the funding transaction" ,
2019-04-03 06:46:27 +03:00
"in" : "path" ,
"required" : true ,
"type" : "integer" ,
"format" : "int64"
} ,
{
"name" : "chan_point.funding_txid_bytes" ,
2020-05-06 17:51:14 +03:00
"description" : "Txid of the funding transaction. When using REST, this field must be\nencoded as base64." ,
2019-04-03 06:46:27 +03:00
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "byte"
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2018-05-24 12:36:35 +03:00
"/v1/channels/closed" : {
"get" : {
2020-05-06 17:51:14 +03:00
"summary" : "lncli: `closedchannels`\nClosedChannels returns a description of all the closed channels that\nthis node was a participant in." ,
2018-05-24 12:36:35 +03:00
"operationId" : "ClosedChannels" ,
"responses" : {
"200" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2018-05-24 12:36:35 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcClosedChannelsResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2018-05-24 12:36:35 +03:00
}
} ,
"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" : {
2020-05-06 17:51:14 +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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2016-10-16 00:38:47 +03:00
"schema" : {
2018-01-04 23:20:25 +03:00
"$ref" : "#/definitions/lnrpcPendingChannelsResponse"
2016-10-16 00:38:47 +03:00
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
}
} ,
"tags" : [
"Lightning"
]
}
} ,
"/v1/channels/stream" : {
"post" : {
"summary" : "lncli: `openchannel`\nOpenChannel attempts to open a singly funded channel specified in the\nrequest to a remote peer. Users are able to specify a target number of\nblocks that the funding transaction should be confirmed in, or a manual fee\nrate to us for the funding transaction. If neither are specified, then a\nlax block confirmation target is used. Each OpenStatusUpdate will return\nthe pending channel ID of the in-progress channel. Depending on the\narguments specified in the OpenChannelRequest, this pending channel ID can\nthen be used to manually progress the channel funding flow." ,
"operationId" : "OpenChannel" ,
"responses" : {
"200" : {
"description" : "A successful response.(streaming responses)" ,
"schema" : {
"type" : "object" ,
"properties" : {
"result" : {
"$ref" : "#/definitions/lnrpcOpenStatusUpdate"
} ,
"error" : {
"$ref" : "#/definitions/runtimeStreamError"
}
} ,
"title" : "Stream result of lnrpcOpenStatusUpdate"
}
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcOpenChannelRequest"
}
}
] ,
"tags" : [
"Lightning"
]
}
} ,
"/v1/channels/subscribe" : {
"get" : {
"summary" : "SubscribeChannelEvents creates a uni-directional stream from the server to\nthe client in which any updates relevant to the state of the channels are\nsent over. Events include new active channels, inactive channels, and closed\nchannels." ,
"operationId" : "SubscribeChannelEvents" ,
"responses" : {
"200" : {
"description" : "A successful response.(streaming responses)" ,
"schema" : {
"type" : "object" ,
"properties" : {
"result" : {
"$ref" : "#/definitions/lnrpcChannelEventUpdate"
} ,
"error" : {
"$ref" : "#/definitions/runtimeStreamError"
}
} ,
"title" : "Stream result of lnrpcChannelEventUpdate"
}
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2016-10-16 00:38:47 +03:00
}
} ,
"tags" : [
"Lightning"
]
}
} ,
"/v1/channels/transactions" : {
"post" : {
2020-05-06 17:51:14 +03:00
"summary" : "SendPaymentSync 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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2016-10-16 00:38:47 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcSendResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2016-10-16 00:38:47 +03:00
}
} ,
"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" : {
2020-05-06 17:51:14 +03:00
"summary" : "SendToRouteSync 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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2018-01-25 08:08:46 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcSendResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2018-01-25 08:08:46 +03:00
}
} ,
"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" : {
2020-05-06 17:51:14 +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." ,
2018-11-05 10:13:33 +03:00
"operationId" : "CloseChannel" ,
2016-10-16 00:38:47 +03:00
"responses" : {
"200" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response.(streaming responses)" ,
2016-10-16 00:38:47 +03:00
"schema" : {
2020-05-28 14:07:31 +03:00
"type" : "object" ,
"properties" : {
"result" : {
"$ref" : "#/definitions/lnrpcCloseStatusUpdate"
} ,
"error" : {
"$ref" : "#/definitions/runtimeStreamError"
}
} ,
"title" : "Stream result of lnrpcCloseStatusUpdate"
}
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
2016-10-16 00:38:47 +03:00
}
}
} ,
"parameters" : [
{
2018-01-11 22:00:30 +03:00
"name" : "channel_point.funding_txid_str" ,
2020-05-06 17:51:14 +03:00
"description" : "Hex-encoded string representing the byte-reversed hash of the funding\ntransaction." ,
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" ,
2020-05-06 17:51:14 +03:00
"description" : "The index of the output of the funding transaction" ,
2016-10-16 00:38:47 +03:00
"in" : "path" ,
"required" : true ,
"type" : "integer" ,
"format" : "int64"
2019-10-30 12:53:21 +03:00
} ,
{
"name" : "channel_point.funding_txid_bytes" ,
2020-05-06 17:51:14 +03:00
"description" : "Txid of the funding transaction. When using REST, this field must be\nencoded as base64." ,
2019-10-30 12:53:21 +03:00
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "byte"
} ,
{
"name" : "force" ,
2020-05-06 17:51:14 +03:00
"description" : "If true, then the channel will be closed forcibly. This means the\ncurrent commitment transaction will be signed and broadcast." ,
2019-10-30 12:53:21 +03:00
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
} ,
{
"name" : "target_conf" ,
2020-05-06 17:51:14 +03:00
"description" : "The target number of blocks that the closure transaction should be\nconfirmed by." ,
2019-10-30 12:53:21 +03:00
"in" : "query" ,
"required" : false ,
"type" : "integer" ,
"format" : "int32"
} ,
{
"name" : "sat_per_byte" ,
2020-05-06 17:51:14 +03:00
"description" : "A manual fee rate set in sat/byte that should be used when crafting the\nclosure transaction." ,
2019-10-30 12:53:21 +03:00
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "int64"
2019-12-09 16:43:59 +03:00
} ,
{
"name" : "delivery_address" ,
"description" : "An optional address to send funds to in the case of a cooperative close.\nIf the channel was opened with an upfront shutdown script and this field\nis set, the request to close will fail because the channel must pay out\nto the upfront shutdown addresss." ,
"in" : "query" ,
"required" : false ,
"type" : "string"
2017-08-22 10:07:25 +03:00
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2018-01-13 15:22:41 +03:00
"/v1/chanpolicy" : {
"post" : {
2020-05-06 17:51:14 +03:00
"summary" : "lncli: `updatechanpolicy`\nUpdateChannelPolicy allows the caller to update the fee schedule and\nchannel policies for all channels globally, or a particular channel." ,
2018-01-13 15:22:41 +03:00
"operationId" : "UpdateChannelPolicy" ,
"responses" : {
"200" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2018-01-13 15:22:41 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcPolicyUpdateResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2018-01-13 15:22:41 +03:00
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcPolicyUpdateRequest"
}
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2020-05-28 14:07:31 +03:00
"/v1/debuglevel" : {
"post" : {
"summary" : "lncli: `debuglevel`\nDebugLevel allows a caller to programmatically set the logging verbosity of\nlnd. The logging can be targeted according to a coarse daemon-wide logging\nlevel, or in a granular fashion to specify the logging for a target\nsub-system." ,
"operationId" : "DebugLevel" ,
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
"$ref" : "#/definitions/lnrpcDebugLevelResponse"
}
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcDebugLevelRequest"
}
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2018-02-02 07:16:40 +03:00
"/v1/fees" : {
"get" : {
2020-05-06 17:51:14 +03:00
"summary" : "lncli: `feereport`\nFeeReport allows the caller to obtain a report detailing the current fee\nschedule enforced by the node globally for each channel." ,
2018-02-02 07:16:40 +03:00
"operationId" : "FeeReport" ,
2017-10-12 12:10:29 +03:00
"responses" : {
"200" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2017-10-12 12:10:29 +03:00
"schema" : {
2018-02-02 07:16:40 +03:00
"$ref" : "#/definitions/lnrpcFeeReportResponse"
2017-10-12 12:10:29 +03:00
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
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
]
}
} ,
2020-05-28 14:07:31 +03:00
"/v1/funding/step" : {
"post" : {
"summary" : "FundingStateStep is an advanced funding related call that allows the caller\nto either execute some preparatory steps for a funding workflow, or\nmanually progress a funding workflow. The primary way a funding flow is\nidentified is via its pending channel ID. As an example, this method can be\nused to specify that we're expecting a funding flow for a particular\npending channel ID, for which we need to use specific parameters.\nAlternatively, this can be used to interactively drive PSBT signing for\nfunding for partially complete funding transactions." ,
"operationId" : "FundingStateStep" ,
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
"$ref" : "#/definitions/lnrpcFundingStateStepResp"
}
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcFundingTransitionMsg"
}
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2016-10-16 00:38:47 +03:00
"/v1/getinfo" : {
"get" : {
2020-05-06 17:51:14 +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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2016-10-16 00:38:47 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcGetInfoResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2016-10-16 00:38:47 +03:00
}
} ,
"tags" : [
"Lightning"
]
}
} ,
2020-06-09 09:47:17 +03:00
"/v1/getrecoveryinfo" : {
"get" : {
"summary" : "* lncli: `getrecoveryinfo`\nGetRecoveryInfo returns information concerning the recovery mode including\nwhether it's in a recovery mode, whether the recovery is finished, and the\nprogress made so far." ,
"operationId" : "GetRecoveryInfo" ,
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
"$ref" : "#/definitions/lnrpcGetRecoveryInfoResponse"
}
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
}
} ,
"tags" : [
"Lightning"
]
}
} ,
2016-12-27 08:45:01 +03:00
"/v1/graph" : {
"get" : {
2020-05-06 17:51:14 +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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2016-12-27 08:45:01 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcChannelGraph"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2016-12-27 08:45:01 +03:00
}
} ,
2018-09-26 18:26:04 +03:00
"parameters" : [
{
"name" : "include_unannounced" ,
2020-05-06 17:51:14 +03:00
"description" : "Whether 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." ,
2018-09-26 18:26:04 +03:00
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
}
] ,
2016-12-27 08:45:01 +03:00
"tags" : [
"Lightning"
]
}
} ,
"/v1/graph/edge/{chan_id}" : {
"get" : {
2020-05-06 17:51:14 +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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2016-12-27 08:45:01 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcChannelEdge"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2016-12-27 08:45:01 +03:00
}
} ,
"parameters" : [
{
"name" : "chan_id" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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
"in" : "path" ,
"required" : true ,
"type" : "string" ,
"format" : "uint64"
}
] ,
"tags" : [
"Lightning"
]
}
} ,
"/v1/graph/info" : {
"get" : {
2020-05-06 17:51:14 +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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2016-12-27 08:45:01 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcNetworkInfo"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2016-12-27 08:45:01 +03:00
}
} ,
"tags" : [
"Lightning"
]
}
} ,
"/v1/graph/node/{pub_key}" : {
"get" : {
2020-05-06 17:51:14 +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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2016-12-27 08:45:01 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcNodeInfo"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2016-12-27 08:45:01 +03:00
}
} ,
"parameters" : [
{
"name" : "pub_key" ,
2020-05-06 17:51:14 +03:00
"description" : "The 33-byte hex-encoded compressed public of the target node" ,
2016-12-27 08:45:01 +03:00
"in" : "path" ,
"required" : true ,
2017-02-28 06:03:43 +03:00
"type" : "string"
2019-06-17 20:57:45 +03:00
} ,
{
"name" : "include_channels" ,
2020-05-06 17:51:14 +03:00
"description" : "If true, will include all known channels associated with the node." ,
2019-06-17 20:57:45 +03:00
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
2016-12-27 08:45:01 +03:00
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2020-03-19 13:14:28 +03:00
"/v1/graph/nodemetrics" : {
"get" : {
2020-05-06 17:51:14 +03:00
"summary" : "lncli: `getnodemetrics`\nGetNodeMetrics returns node metrics calculated from the graph. Currently\nthe only supported metric is betweenness centrality of individual nodes." ,
2020-03-19 13:14:28 +03:00
"operationId" : "GetNodeMetrics" ,
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
"$ref" : "#/definitions/lnrpcNodeMetricsResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2020-03-19 13:14:28 +03:00
}
} ,
"parameters" : [
{
"name" : "types" ,
2020-05-06 17:51:14 +03:00
"description" : "The requested node metrics." ,
2020-03-19 13:14:28 +03:00
"in" : "query" ,
"required" : false ,
"type" : "array" ,
"items" : {
"type" : "string" ,
"enum" : [
2020-03-28 18:14:26 +03:00
"UNKNOWN" ,
2020-03-19 13:14:28 +03:00
"BETWEENNESS_CENTRALITY"
]
} ,
"collectionFormat" : "multi"
}
] ,
"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" : {
2020-05-06 17:51:14 +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 returned 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." ,
2020-06-03 18:35:19 +03:00
"description" : "When using REST, the `dest_custom_records` map type can be set by appending\n`\u0026dest_custom_records[\u003crecord_number\u003e]=\u003crecord_data_base64_url_encoded\u003e`\nto the URL. Unfortunately this map type doesn't appear in the REST API\ndocumentation because of a bug in the grpc-gateway library." ,
2017-03-21 05:01:32 +03:00
"operationId" : "QueryRoutes" ,
2016-12-27 08:45:01 +03:00
"responses" : {
"200" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2016-12-27 08:45:01 +03:00
"schema" : {
2017-03-21 05:01:32 +03:00
"$ref" : "#/definitions/lnrpcQueryRoutesResponse"
2016-12-27 08:45:01 +03:00
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2016-12-27 08:45:01 +03:00
}
} ,
"parameters" : [
{
"name" : "pub_key" ,
2020-05-06 17:51:14 +03:00
"description" : "The 33-byte hex-encoded public key for the payment destination" ,
2016-12-27 08:45:01 +03:00
"in" : "path" ,
"required" : true ,
2017-02-28 06:03:43 +03:00
"type" : "string"
2016-12-27 08:45:01 +03:00
} ,
{
"name" : "amt" ,
2020-05-06 17:51:14 +03:00
"description" : "The amount to send expressed in satoshis.\n\nThe fields amt and amt_msat are mutually exclusive." ,
2016-12-27 08:45:01 +03:00
"in" : "path" ,
"required" : true ,
"type" : "string" ,
"format" : "int64"
2018-02-13 03:28:39 +03:00
} ,
2019-11-11 18:44:08 +03:00
{
"name" : "amt_msat" ,
2020-05-06 17:51:14 +03:00
"description" : "The amount to send expressed in millisatoshis.\n\nThe fields amt and amt_msat are mutually exclusive." ,
2019-11-11 18:44:08 +03:00
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "int64"
} ,
2018-02-15 15:01:57 +03:00
{
"name" : "final_cltv_delta" ,
2020-05-06 17:51:14 +03:00
"description" : "An optional CLTV delta from the current height that should be used for the\ntimelock of the final hop. Note that unlike SendPayment, QueryRoutes does\nnot add any additional block padding on top of final_ctlv_delta. This\npadding of a few blocks needs to be added manually or otherwise failures may\nhappen when a block comes in while the payment is in flight." ,
2018-02-15 15:01:57 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"description" : "The fee limit expressed as a fixed amount of satoshis.\n\nThe fields fixed and fixed_msat are mutually exclusive." ,
2019-11-11 18:44:08 +03:00
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "int64"
} ,
{
"name" : "fee_limit.fixed_msat" ,
2020-05-06 17:51:14 +03:00
"description" : "The fee limit expressed as a fixed amount of millisatoshis.\n\nThe fields fixed and fixed_msat are mutually exclusive." ,
2018-04-19 01:13:55 +03:00
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "int64"
} ,
{
"name" : "fee_limit.percent" ,
2020-05-06 17:51:14 +03:00
"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"
2019-03-05 14:42:29 +03:00
} ,
{
"name" : "ignored_nodes" ,
2020-05-06 17:51:14 +03:00
"description" : "A list of nodes to ignore during path finding. When using REST, these fields\nmust be encoded as base64." ,
2019-03-05 14:42:29 +03:00
"in" : "query" ,
"required" : false ,
"type" : "array" ,
"items" : {
"type" : "string" ,
"format" : "byte"
2019-10-30 12:53:21 +03:00
} ,
"collectionFormat" : "multi"
2019-03-05 18:49:26 +03:00
} ,
{
"name" : "source_pub_key" ,
2020-05-06 17:51:14 +03:00
"description" : "The source node where the request route should originated from. If empty,\nself is assumed." ,
2019-03-05 18:49:26 +03:00
"in" : "query" ,
"required" : false ,
"type" : "string"
2019-06-19 09:29:44 +03:00
} ,
{
"name" : "use_mission_control" ,
2020-05-06 17:51:14 +03:00
"description" : "If set to true, edge probabilities from mission control will be used to get\nthe optimal route." ,
2019-06-19 09:29:44 +03:00
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
2019-10-11 22:47:15 +03:00
} ,
{
"name" : "cltv_limit" ,
2020-05-06 17:51:14 +03:00
"description" : "An optional maximum total time lock for the route. If the source is empty or\nourselves, this should not exceed lnd's `--max-cltv-expiry` setting. If\nzero, then the value of `--max-cltv-expiry` is used as the limit." ,
2019-10-11 22:47:15 +03:00
"in" : "query" ,
"required" : false ,
"type" : "integer" ,
"format" : "int64"
2020-01-14 13:21:24 +03:00
} ,
{
"name" : "outgoing_chan_id" ,
2020-05-06 17:51:14 +03:00
"description" : "The channel id of the channel that must be taken to the first hop. If zero,\nany channel may be used." ,
2020-01-14 13:21:24 +03:00
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "uint64"
} ,
{
"name" : "last_hop_pubkey" ,
2020-05-06 17:51:14 +03:00
"description" : "The pubkey of the last hop of the route. If empty, any hop may be used." ,
2020-01-14 13:21:24 +03:00
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "byte"
} ,
{
"name" : "dest_features" ,
2020-05-06 17:51:14 +03:00
"description" : "Features assumed to be supported by the final node. All transitive feature\ndependencies must also be set properly. For a given feature bit pair, either\noptional or remote may be set, but not both. If this field is nil or empty,\nthe router will try to load destination features from the graph as a\nfallback." ,
2020-01-14 13:21:24 +03:00
"in" : "query" ,
"required" : false ,
"type" : "array" ,
"items" : {
"type" : "string" ,
"enum" : [
"DATALOSS_PROTECT_REQ" ,
"DATALOSS_PROTECT_OPT" ,
"INITIAL_ROUING_SYNC" ,
"UPFRONT_SHUTDOWN_SCRIPT_REQ" ,
"UPFRONT_SHUTDOWN_SCRIPT_OPT" ,
"GOSSIP_QUERIES_REQ" ,
"GOSSIP_QUERIES_OPT" ,
"TLV_ONION_REQ" ,
"TLV_ONION_OPT" ,
"EXT_GOSSIP_QUERIES_REQ" ,
"EXT_GOSSIP_QUERIES_OPT" ,
"STATIC_REMOTE_KEY_REQ" ,
"STATIC_REMOTE_KEY_OPT" ,
"PAYMENT_ADDR_REQ" ,
"PAYMENT_ADDR_OPT" ,
"MPP_REQ" ,
"MPP_OPT"
]
} ,
"collectionFormat" : "multi"
2016-12-27 08:45:01 +03:00
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2020-05-28 14:07:31 +03:00
"/v1/graph/subscribe" : {
"get" : {
"summary" : "SubscribeChannelGraph launches a streaming RPC that allows the caller to\nreceive notifications upon any changes to the channel graph topology from\nthe point of view of the responding node. Events notified include: new\nnodes coming online, nodes updating their authenticated attributes, new\nchannels being advertised, updates in the routing policy for a directional\nchannel edge, and when channels are closed on-chain." ,
"operationId" : "SubscribeChannelGraph" ,
"responses" : {
"200" : {
"description" : "A successful response.(streaming responses)" ,
"schema" : {
"type" : "object" ,
"properties" : {
"result" : {
"$ref" : "#/definitions/lnrpcGraphTopologyUpdate"
} ,
"error" : {
"$ref" : "#/definitions/runtimeStreamError"
}
} ,
"title" : "Stream result of lnrpcGraphTopologyUpdate"
}
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
}
} ,
"tags" : [
"Lightning"
]
}
} ,
2018-01-22 08:19:24 +03:00
"/v1/invoice/{r_hash_str}" : {
"get" : {
2020-05-06 17:51:14 +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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2016-10-16 00:38:47 +03:00
"schema" : {
2018-01-22 08:19:24 +03:00
"$ref" : "#/definitions/lnrpcInvoice"
2016-10-16 00:38:47 +03:00
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2016-10-16 00:38:47 +03:00
}
} ,
"parameters" : [
{
2018-01-22 08:19:24 +03:00
"name" : "r_hash_str" ,
2020-05-06 17:51:14 +03:00
"description" : "The hex-encoded payment hash of the invoice to be looked up. The passed\npayment hash must be exactly 32 bytes, otherwise an error is returned.\nDeprecated now that the REST gateway supports base64 encoding of bytes\nfields." ,
2018-01-22 08:19:24 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"description" : "The payment hash of the invoice to be looked up. When using REST, this field\nmust be encoded as base64." ,
2018-01-22 08:19:24 +03:00
"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" : {
2020-05-06 17:51:14 +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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
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
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2016-10-16 00:38:47 +03:00
}
} ,
2018-01-22 08:19:24 +03:00
"parameters" : [
{
"name" : "pending_only" ,
2020-05-06 17:51:14 +03:00
"description" : "If set, only invoices that are not settled and not canceled will be returned\nin 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" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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" ,
2020-05-06 17:51:14 +03:00
"description" : "The max number of invoices to return in the response to this query." ,
2018-08-11 05:35:38 +03:00
"in" : "query" ,
"required" : false ,
2018-09-11 04:19:06 +03:00
"type" : "string" ,
"format" : "uint64"
} ,
{
"name" : "reversed" ,
2020-05-06 17:51:14 +03:00
"description" : "If 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" : {
2020-05-06 17:51:14 +03:00
"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." ,
2018-01-22 08:19:24 +03:00
"operationId" : "AddInvoice" ,
2016-10-16 00:38:47 +03:00
"responses" : {
"200" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2016-10-16 00:38:47 +03:00
"schema" : {
2018-01-22 08:19:24 +03:00
"$ref" : "#/definitions/lnrpcAddInvoiceResponse"
2016-10-16 00:38:47 +03:00
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
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" : {
2020-05-06 17:51:14 +03:00
"summary" : "SubscribeInvoices 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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response.(streaming responses)" ,
2016-10-16 00:38:47 +03:00
"schema" : {
2020-05-28 14:07:31 +03:00
"type" : "object" ,
"properties" : {
"result" : {
"$ref" : "#/definitions/lnrpcInvoice"
} ,
"error" : {
"$ref" : "#/definitions/runtimeStreamError"
}
} ,
"title" : "Stream result of lnrpcInvoice"
}
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
2016-10-16 00:38:47 +03:00
}
}
} ,
2018-04-25 06:41:22 +03:00
"parameters" : [
{
"name" : "add_index" ,
2020-05-06 17:51:14 +03:00
"description" : "If 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." ,
2018-04-25 06:41:22 +03:00
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "uint64"
} ,
{
"name" : "settle_index" ,
2020-05-06 17:51:14 +03:00
"description" : "If 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." ,
2018-04-25 06:41:22 +03:00
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "uint64"
}
] ,
2016-10-16 00:38:47 +03:00
"tags" : [
"Lightning"
]
}
} ,
2019-10-23 14:28:17 +03:00
"/v1/macaroon" : {
"post" : {
2020-05-06 17:51:14 +03:00
"summary" : "lncli: `bakemacaroon`\nBakeMacaroon allows the creation of a new macaroon with custom read and\nwrite permissions. No first-party caveats are added since this can be done\noffline." ,
2019-10-23 14:28:17 +03:00
"operationId" : "BakeMacaroon" ,
"responses" : {
"200" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2019-10-23 14:28:17 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcBakeMacaroonResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2019-10-23 14:28:17 +03:00
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcBakeMacaroonRequest"
}
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2020-07-23 19:36:42 +03:00
"/v1/macaroon/ids" : {
"get" : {
"summary" : "lncli: `listmacaroonids`\nListMacaroonIDs returns all root key IDs that are in use." ,
"operationId" : "ListMacaroonIDs" ,
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
"$ref" : "#/definitions/lnrpcListMacaroonIDsResponse"
}
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
}
} ,
"tags" : [
"Lightning"
]
}
} ,
2020-09-04 10:22:38 +03:00
"/v1/macaroon/permissions" : {
"get" : {
"summary" : "lncli: `listpermissions`\nListPermissions lists all RPC method URIs and their required macaroon\npermissions to access them." ,
"operationId" : "ListPermissions" ,
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
"$ref" : "#/definitions/lnrpcListPermissionsResponse"
}
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
}
} ,
"tags" : [
"Lightning"
]
}
} ,
2020-07-23 19:36:42 +03:00
"/v1/macaroon/{root_key_id}" : {
"delete" : {
"summary" : "lncli: `deletemacaroonid`\nDeleteMacaroonID deletes the specified macaroon ID and invalidates all\nmacaroons derived from that ID." ,
"operationId" : "DeleteMacaroonID" ,
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
"$ref" : "#/definitions/lnrpcDeleteMacaroonIDResponse"
}
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
}
} ,
"parameters" : [
{
"name" : "root_key_id" ,
"description" : "The root key ID to be removed." ,
"in" : "path" ,
"required" : true ,
"type" : "string" ,
"format" : "uint64"
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2016-10-16 00:38:47 +03:00
"/v1/newaddress" : {
"get" : {
2020-05-06 17:51:14 +03:00
"summary" : "lncli: `newaddress`\nNewAddress creates a new address under control of the local wallet." ,
2018-09-28 01:54:59 +03:00
"operationId" : "NewAddress" ,
2016-10-16 00:38:47 +03:00
"responses" : {
"200" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2016-10-16 00:38:47 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcNewAddressResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2016-10-16 00:38:47 +03:00
}
} ,
2018-09-28 01:54:59 +03:00
"parameters" : [
{
"name" : "type" ,
2020-05-06 17:51:14 +03:00
"description" : "The address type." ,
2018-09-28 01:54:59 +03:00
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"enum" : [
"WITNESS_PUBKEY_HASH" ,
2019-02-20 06:14:33 +03:00
"NESTED_PUBKEY_HASH" ,
"UNUSED_WITNESS_PUBKEY_HASH" ,
"UNUSED_NESTED_PUBKEY_HASH"
2018-09-28 01:54:59 +03:00
] ,
"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" : {
2020-05-06 17:51:14 +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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2016-12-05 14:59:36 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcListPaymentsResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2016-12-05 14:59:36 +03:00
}
} ,
2019-06-11 15:48:47 +03:00
"parameters" : [
{
2019-06-14 02:00:38 +03:00
"name" : "include_incomplete" ,
2020-05-06 17:51:14 +03:00
"description" : "If true, then return payments that have not yet fully completed. This means\nthat pending payments, as well as failed payments will show up if this\nfield is set to true. This flag doesn't change the meaning of the indices,\nwhich are tied to individual payments." ,
2020-01-17 09:35:03 +03:00
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
} ,
{
"name" : "index_offset" ,
2020-05-06 17:51:14 +03:00
"description" : "The index of a payment that will be used as either the start or end of a\nquery to determine which payments should be returned in the response. The\nindex_offset is exclusive. In the case of a zero index_offset, the query\nwill start with the oldest payment when paginating forwards, or will end\nwith the most recent payment when paginating backwards." ,
2020-01-17 09:35:03 +03:00
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "uint64"
} ,
{
"name" : "max_payments" ,
2020-05-06 17:51:14 +03:00
"description" : "The maximal number of payments returned in the response to this query." ,
2020-01-17 09:35:03 +03:00
"in" : "query" ,
"required" : false ,
"type" : "string" ,
"format" : "uint64"
} ,
{
"name" : "reversed" ,
2020-05-06 17:51:14 +03:00
"description" : "If set, the payments returned will result from seeking backwards from the\nspecified index offset. This can be used to paginate backwards. The order\nof the returned payments is always oldest first (ascending index order)." ,
2019-06-11 15:48:47 +03:00
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
}
] ,
2016-12-05 14:59:36 +03:00
"tags" : [
"Lightning"
]
} ,
"delete" : {
2020-05-06 17:51:14 +03:00
"summary" : "DeleteAllPayments deletes all outgoing payments from DB." ,
2016-12-05 14:59:36 +03:00
"operationId" : "DeleteAllPayments" ,
"responses" : {
"200" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2016-12-05 14:59:36 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcDeleteAllPaymentsResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2016-12-05 14:59:36 +03:00
}
} ,
"tags" : [
"Lightning"
]
}
} ,
2017-01-18 00:24:55 +03:00
"/v1/payreq/{pay_req}" : {
"get" : {
2020-05-06 17:51:14 +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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2017-01-18 00:24:55 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcPayReq"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2017-01-18 00:24:55 +03:00
}
} ,
"parameters" : [
{
"name" : "pay_req" ,
2020-05-06 17:51:14 +03:00
"description" : "The payment request string to be decoded" ,
2017-01-18 00:24:55 +03:00
"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" : {
2020-05-06 17:51:14 +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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2016-10-16 00:38:47 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcListPeersResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2016-10-16 00:38:47 +03:00
}
} ,
2020-03-13 10:15:49 +03:00
"parameters" : [
{
"name" : "latest_error" ,
"description" : "If true, only the last error that our peer sent us will be returned with\nthe peer's information, rather than the full set of historic errors we have\nstored." ,
"in" : "query" ,
"required" : false ,
"type" : "boolean" ,
"format" : "boolean"
}
] ,
2016-10-16 00:38:47 +03:00
"tags" : [
"Lightning"
]
} ,
"post" : {
2020-05-06 17:51:14 +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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2016-10-16 00:38:47 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcConnectPeerResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2016-10-16 00:38:47 +03:00
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcConnectPeerRequest"
}
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2020-05-28 14:07:31 +03:00
"/v1/peers/subscribe" : {
"get" : {
"summary" : "SubscribePeerEvents creates a uni-directional stream from the server to\nthe client in which any events relevant to the state of peers are sent\nover. Events include peers going online and offline." ,
"operationId" : "SubscribePeerEvents" ,
"responses" : {
"200" : {
"description" : "A successful response.(streaming responses)" ,
"schema" : {
"type" : "object" ,
"properties" : {
"result" : {
"$ref" : "#/definitions/lnrpcPeerEvent"
} ,
"error" : {
"$ref" : "#/definitions/runtimeStreamError"
}
} ,
"title" : "Stream result of lnrpcPeerEvent"
}
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
}
} ,
"tags" : [
"Lightning"
]
}
} ,
2017-04-12 00:49:39 +03:00
"/v1/peers/{pub_key}" : {
"delete" : {
2020-05-06 17:51:14 +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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2017-04-12 00:49:39 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcDisconnectPeerResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2017-04-12 00:49:39 +03:00
}
} ,
"parameters" : [
{
"name" : "pub_key" ,
2020-05-06 17:51:14 +03:00
"description" : "The pubkey of the node to disconnect from" ,
2017-04-12 00:49:39 +03:00
"in" : "path" ,
"required" : true ,
"type" : "string"
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2018-11-12 20:55:14 +03:00
"/v1/signmessage" : {
"post" : {
2020-05-06 17:51:14 +03:00
"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." ,
2018-11-12 20:55:14 +03:00
"operationId" : "SignMessage" ,
"responses" : {
"200" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2018-11-12 20:55:14 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcSignMessageResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2018-11-12 20:55:14 +03:00
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcSignMessageRequest"
}
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2020-05-28 14:07:31 +03:00
"/v1/stop" : {
"post" : {
"summary" : "lncli: `stop`\nStopDaemon will send a shutdown request to the interrupt handler, triggering\na graceful shutdown of the daemon." ,
"operationId" : "StopDaemon" ,
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
"$ref" : "#/definitions/lnrpcStopResponse"
}
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcStopRequest"
}
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2018-02-28 09:22:06 +03:00
"/v1/switch" : {
"post" : {
2020-05-06 17:51:14 +03:00
"summary" : "lncli: `fwdinghistory`\nForwardingHistory allows the caller to query the htlcswitch for a record of\nall HTLCs 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." ,
2019-11-01 11:45:02 +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." ,
2018-02-28 09:22:06 +03:00
"operationId" : "ForwardingHistory" ,
"responses" : {
"200" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2018-02-28 09:22:06 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcForwardingHistoryResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2018-02-28 09:22:06 +03:00
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcForwardingHistoryRequest"
}
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2016-10-16 00:38:47 +03:00
"/v1/transactions" : {
"get" : {
2020-05-06 17:51:14 +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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2016-10-16 00:38:47 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcTransactionDetails"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2016-10-16 00:38:47 +03:00
}
} ,
2020-05-05 22:10:06 +03:00
"parameters" : [
{
"name" : "start_height" ,
"description" : "The height from which to list transactions, inclusive. If this value is\ngreater than end_height, transactions will be read in reverse." ,
"in" : "query" ,
"required" : false ,
"type" : "integer" ,
"format" : "int32"
} ,
{
"name" : "end_height" ,
"description" : "The height until which to list transactions, inclusive. To include\nunconfirmed transactions, this value should be set to -1, which will\nreturn transactions from start_height until the current chain tip and\nunconfirmed transactions. If no end_height is provided, the call will\ndefault to this option." ,
"in" : "query" ,
"required" : false ,
"type" : "integer" ,
"format" : "int32"
}
] ,
2016-10-16 00:38:47 +03:00
"tags" : [
"Lightning"
]
} ,
"post" : {
2020-05-06 17:51: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" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2016-10-16 00:38:47 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcSendCoinsResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2016-10-16 00:38:47 +03:00
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcSendCoinsRequest"
}
}
] ,
"tags" : [
"Lightning"
]
}
2017-10-12 12:10:29 +03:00
} ,
2019-03-05 16:22:30 +03:00
"/v1/transactions/fee" : {
"get" : {
2020-05-06 17:51:14 +03:00
"summary" : "lncli: `estimatefee`\nEstimateFee asks the chain backend to estimate the fee rate and total fees\nfor a transaction that pays to multiple specified outputs." ,
2020-06-03 18:35:19 +03:00
"description" : "When using REST, the `AddrToAmount` map type can be set by appending\n`\u0026AddrToAmount[\u003caddress\u003e]=\u003camount_to_send\u003e` to the URL. Unfortunately this\nmap type doesn't appear in the REST API documentation because of a bug in\nthe grpc-gateway library." ,
2019-03-05 16:22:30 +03:00
"operationId" : "EstimateFee" ,
"responses" : {
"200" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2019-03-05 16:22:30 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcEstimateFeeResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2019-03-05 16:22:30 +03:00
}
} ,
"parameters" : [
{
"name" : "target_conf" ,
2020-05-06 17:51:14 +03:00
"description" : "The target number of blocks that this transaction should be confirmed\nby." ,
2019-03-05 16:22:30 +03:00
"in" : "query" ,
"required" : false ,
"type" : "integer" ,
"format" : "int32"
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2020-05-28 14:07:31 +03:00
"/v1/transactions/many" : {
"post" : {
"summary" : "lncli: `sendmany`\nSendMany handles a request for a transaction that creates multiple specified\noutputs in parallel. If neither target_conf, or sat_per_byte are set, then\nthe internal wallet will consult its fee model to determine a fee for the\ndefault confirmation target." ,
"operationId" : "SendMany" ,
"responses" : {
"200" : {
"description" : "A successful response." ,
"schema" : {
"$ref" : "#/definitions/lnrpcSendManyResponse"
}
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
}
} ,
"parameters" : [
{
"name" : "body" ,
"in" : "body" ,
"required" : true ,
"schema" : {
"$ref" : "#/definitions/lnrpcSendManyRequest"
}
}
] ,
"tags" : [
"Lightning"
]
}
} ,
"/v1/transactions/subscribe" : {
"get" : {
"summary" : "SubscribeTransactions creates a uni-directional stream from the server to\nthe client in which any newly discovered transactions relevant to the\nwallet are sent over." ,
"operationId" : "SubscribeTransactions" ,
"responses" : {
"200" : {
"description" : "A successful response.(streaming responses)" ,
"schema" : {
"type" : "object" ,
"properties" : {
"result" : {
"$ref" : "#/definitions/lnrpcTransaction"
} ,
"error" : {
"$ref" : "#/definitions/runtimeStreamError"
}
} ,
"title" : "Stream result of lnrpcTransaction"
}
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
}
} ,
"parameters" : [
{
"name" : "start_height" ,
"description" : "The height from which to list transactions, inclusive. If this value is\ngreater than end_height, transactions will be read in reverse." ,
"in" : "query" ,
"required" : false ,
"type" : "integer" ,
"format" : "int32"
} ,
{
"name" : "end_height" ,
"description" : "The height until which to list transactions, inclusive. To include\nunconfirmed transactions, this value should be set to -1, which will\nreturn transactions from start_height until the current chain tip and\nunconfirmed transactions. If no end_height is provided, the call will\ndefault to this option." ,
"in" : "query" ,
"required" : false ,
"type" : "integer" ,
"format" : "int32"
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2018-09-27 16:49:44 +03:00
"/v1/utxos" : {
"get" : {
2020-05-21 02:14:20 +03:00
"summary" : "lncli: `listunspent`\nDeprecated, use walletrpc.ListUnspent instead." ,
"description" : "ListUnspent returns a list of all utxos spendable by the wallet with a\nnumber of confirmations between the specified minimum and maximum." ,
2018-09-27 16:49:44 +03:00
"operationId" : "ListUnspent" ,
"responses" : {
"200" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2018-09-27 16:49:44 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcListUnspentResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2018-09-27 16:49:44 +03:00
}
} ,
"parameters" : [
{
"name" : "min_confs" ,
2020-05-06 17:51:14 +03:00
"description" : "The minimum number of confirmations to be included." ,
2018-09-27 16:49:44 +03:00
"in" : "query" ,
"required" : false ,
"type" : "integer" ,
"format" : "int32"
} ,
{
"name" : "max_confs" ,
2020-05-06 17:51:14 +03:00
"description" : "The maximum number of confirmations to be included." ,
2018-09-27 16:49:44 +03:00
"in" : "query" ,
"required" : false ,
"type" : "integer" ,
"format" : "int32"
}
] ,
"tags" : [
"Lightning"
]
}
} ,
2018-11-12 20:55:14 +03:00
"/v1/verifymessage" : {
"post" : {
2020-05-06 17:51:14 +03:00
"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." ,
2018-11-12 20:55:14 +03:00
"operationId" : "VerifyMessage" ,
"responses" : {
"200" : {
2019-10-30 12:53:21 +03:00
"description" : "A successful response." ,
2018-11-12 20:55:14 +03:00
"schema" : {
"$ref" : "#/definitions/lnrpcVerifyMessageResponse"
}
2020-05-28 14:07:31 +03:00
} ,
"default" : {
"description" : "An unexpected error response" ,
"schema" : {
"$ref" : "#/definitions/runtimeError"
}
2018-11-12 20:55:14 +03:00
}
} ,
"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" ,
2019-09-29 13:13:01 +03:00
"INACTIVE_CHANNEL" ,
"PENDING_OPEN_CHANNEL"
2019-01-23 05:28:27 +03:00
] ,
"default" : "OPEN_CHANNEL"
} ,
2020-02-19 19:21:03 +03:00
"FailureFailureCode" : {
"type" : "string" ,
"enum" : [
"RESERVED" ,
"INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS" ,
"INCORRECT_PAYMENT_AMOUNT" ,
"FINAL_INCORRECT_CLTV_EXPIRY" ,
"FINAL_INCORRECT_HTLC_AMOUNT" ,
"FINAL_EXPIRY_TOO_SOON" ,
"INVALID_REALM" ,
"EXPIRY_TOO_SOON" ,
"INVALID_ONION_VERSION" ,
"INVALID_ONION_HMAC" ,
"INVALID_ONION_KEY" ,
"AMOUNT_BELOW_MINIMUM" ,
"FEE_INSUFFICIENT" ,
"INCORRECT_CLTV_EXPIRY" ,
"CHANNEL_DISABLED" ,
"TEMPORARY_CHANNEL_FAILURE" ,
"REQUIRED_NODE_FEATURE_MISSING" ,
"REQUIRED_CHANNEL_FEATURE_MISSING" ,
"UNKNOWN_NEXT_PEER" ,
"TEMPORARY_NODE_FAILURE" ,
"PERMANENT_NODE_FAILURE" ,
"PERMANENT_CHANNEL_FAILURE" ,
"EXPIRY_TOO_FAR" ,
"MPP_TIMEOUT" ,
"INTERNAL_FAILURE" ,
"UNKNOWN_FAILURE" ,
"UNREADABLE_FAILURE"
] ,
"default" : "RESERVED" ,
2020-05-06 17:51:14 +03:00
"description" : " - RESERVED: The numbers assigned in this enumeration match the failure codes as\ndefined in BOLT #4. Because protobuf 3 requires enums to start with 0,\na RESERVED value is added.\n - INTERNAL_FAILURE: An internal error occurred.\n - UNKNOWN_FAILURE: The error source is known, but the failure itself couldn't be decoded.\n - UNREADABLE_FAILURE: An unreadable failure result is returned if the received failure message\ncannot be decrypted. In that case the error source is unknown."
2020-02-19 19:21:03 +03:00
} ,
2020-03-10 15:39:01 +03:00
"ForceClosedChannelAnchorState" : {
"type" : "string" ,
"enum" : [
"LIMBO" ,
"RECOVERED" ,
"LOST"
] ,
"default" : "LIMBO"
} ,
2019-11-20 07:41:27 +03:00
"HTLCAttemptHTLCStatus" : {
"type" : "string" ,
"enum" : [
"IN_FLIGHT" ,
"SUCCEEDED" ,
"FAILED"
] ,
"default" : "IN_FLIGHT"
} ,
2018-12-19 18:03:48 +03:00
"InvoiceInvoiceState" : {
"type" : "string" ,
"enum" : [
"OPEN" ,
2019-01-11 13:19:16 +03:00
"SETTLED" ,
2019-02-11 14:01:05 +03:00
"CANCELED" ,
"ACCEPTED"
2018-12-19 18:03:48 +03:00
] ,
"default" : "OPEN"
} ,
2019-06-11 15:48:47 +03:00
"PaymentPaymentStatus" : {
"type" : "string" ,
"enum" : [
"UNKNOWN" ,
"IN_FLIGHT" ,
"SUCCEEDED" ,
"FAILED"
] ,
"default" : "UNKNOWN"
} ,
2019-08-12 20:13:12 +03:00
"PeerEventEventType" : {
"type" : "string" ,
"enum" : [
"PEER_ONLINE" ,
"PEER_OFFLINE"
] ,
"default" : "PEER_ONLINE"
} ,
2019-03-23 05:57:03 +03:00
"PeerSyncType" : {
"type" : "string" ,
"enum" : [
"UNKNOWN_SYNC" ,
"ACTIVE_SYNC" ,
"PASSIVE_SYNC"
] ,
"default" : "UNKNOWN_SYNC" ,
2020-05-06 17:51:14 +03:00
"description" : " - UNKNOWN_SYNC: Denotes that we cannot determine the peer's current sync type.\n - ACTIVE_SYNC: Denotes that we are actively receiving new graph updates from the peer.\n - PASSIVE_SYNC: Denotes that we are not receiving new graph updates from the peer."
2019-03-23 05:57:03 +03:00
} ,
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" ,
2020-05-06 17:51:14 +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" ,
2020-05-06 17:51:14 +03:00
"title" : "The transaction id of the closing transaction"
2017-05-05 01:34:02 +03:00
}
}
} ,
2020-03-11 18:48:45 +03:00
"PendingChannelsResponseCommitments" : {
"type" : "object" ,
"properties" : {
"local_txid" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "Hash of the local version of the commitment tx."
2020-03-11 18:48:45 +03:00
} ,
"remote_txid" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "Hash of the remote version of the commitment tx."
2020-03-11 18:48:45 +03:00
} ,
"remote_pending_txid" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "Hash of the remote pending version of the commitment tx."
2020-03-25 09:41:00 +03:00
} ,
"local_commit_fee_sat" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "The amount in satoshis calculated to be paid in fees for the local\ncommitment."
} ,
"remote_commit_fee_sat" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "The amount in satoshis calculated to be paid in fees for the remote\ncommitment."
} ,
"remote_pending_commit_fee_sat" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "The amount in satoshis calculated to be paid in fees for the remote\npending commitment."
2020-03-11 18:48:45 +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" ,
2020-05-06 17:51:14 +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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"title" : "The height at which funds can be swept 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" ,
2020-05-06 17:51:14 +03:00
"title" : "The total value of funds successfully recovered from this channel"
2017-11-09 06:27:45 +03:00
} ,
"pending_htlcs" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcPendingHTLC"
}
2020-03-10 15:39:01 +03:00
} ,
"anchor" : {
"$ref" : "#/definitions/ForceClosedChannelAnchorState"
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"
2019-06-23 13:06:09 +03:00
} ,
"local_chan_reserve_sat" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The minimum satoshis this node is required to reserve in its\nbalance."
2019-06-23 13:06:09 +03:00
} ,
"remote_chan_reserve_sat" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The minimum satoshis the other node is required to reserve in its\nbalance."
2020-03-25 09:40:44 +03:00
} ,
"initiator" : {
2020-04-03 10:13:53 +03:00
"$ref" : "#/definitions/lnrpcInitiator" ,
"description" : "The party that initiated opening the channel."
2020-03-30 21:36:38 +03:00
} ,
"commitment_type" : {
"$ref" : "#/definitions/lnrpcCommitmentType" ,
2020-05-06 17:51:14 +03:00
"description" : "The commitment type used by this channel."
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" ,
2020-05-06 17:51:14 +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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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" ,
2020-05-06 17:51:14 +03:00
"title" : "The pending channel waiting for closing tx to confirm"
2018-04-12 13:58:21 +03:00
} ,
"limbo_balance" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"title" : "The balance in satoshis encumbered in this channel"
2020-03-11 18:48:45 +03:00
} ,
"commitments" : {
"$ref" : "#/definitions/PendingChannelsResponseCommitments" ,
2020-05-06 17:51:14 +03:00
"description" : "A list of valid commitment transactions. Any of these can confirm at\nthis point."
2018-04-12 13:58:21 +03:00
}
}
} ,
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" ,
2020-05-06 17:51:14 +03:00
"description" : "A 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" ,
2020-05-06 17:51:14 +03:00
"description" : "The \"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" ,
2019-02-20 06:14:33 +03:00
"NESTED_PUBKEY_HASH" ,
"UNUSED_WITNESS_PUBKEY_HASH" ,
"UNUSED_NESTED_PUBKEY_HASH"
2018-09-27 16:49:44 +03:00
] ,
"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)" ,
2020-05-06 17:51:14 +03:00
"title" : "`AddressType` has to be one of:"
2018-09-27 16:49:44 +03:00
} ,
2019-10-23 14:28:17 +03:00
"lnrpcBakeMacaroonRequest" : {
"type" : "object" ,
"properties" : {
"permissions" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcMacaroonPermission"
} ,
2020-05-06 17:51:14 +03:00
"description" : "The list of permissions the new macaroon should grant."
2020-07-23 19:36:42 +03:00
} ,
"root_key_id" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "The root key ID used to create the macaroon, must be a positive integer."
2019-10-23 14:28:17 +03:00
}
}
} ,
"lnrpcBakeMacaroonResponse" : {
"type" : "object" ,
"properties" : {
"macaroon" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "The hex encoded macaroon, serialized in binary format."
2019-10-23 14:28:17 +03:00
}
}
} ,
2019-01-02 18:10:12 +03:00
"lnrpcChain" : {
"type" : "object" ,
"properties" : {
"chain" : {
2018-11-18 08:07:48 +03:00
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"title" : "The network the node is on (eg regtest, testnet, mainnet)"
2019-01-02 18:10:12 +03:00
}
}
} ,
2018-12-10 06:57:57 +03:00
"lnrpcChanBackupSnapshot" : {
"type" : "object" ,
"properties" : {
"single_chan_backups" : {
"$ref" : "#/definitions/lnrpcChannelBackups" ,
2020-05-06 17:51:14 +03:00
"description" : "The set of new channels that have been added since the last channel backup\nsnapshot was requested."
2018-12-10 06:57:57 +03:00
} ,
"multi_chan_backup" : {
"$ref" : "#/definitions/lnrpcMultiChanBackup" ,
2020-05-06 17:51:14 +03:00
"description" : "A multi-channel backup that covers all open channels currently known to\nlnd."
2018-12-10 06:57:57 +03:00
}
}
} ,
lnrpc: add ability to provide chan point shims for funding, new funding modifiers
In this commit, we start to expose some of the new external funding
functionality over the RPC interface.
First, we add a new `funding_shim` field to the regular `OpenChannel`
method. This can be used by a caller to express that certain parameters
of the funding flow have already been negotiated outside the protocol,
and should be used instead. For example, a shim can be provided to use a
particular key for the commitment key (ideally cold) rather than use one
this is generated by the wallet as normal, or signal that signing will
be carried out in an interactive manner (PSBT based).
Next, we add a brand new method: `FundingStateStep`. FundingStateStep is
an advanced funding related call that allows the caller to either
execute some preparatory steps for a funding workflow, or manually
progress a funding workflow. The primary way a funding flow is
identified is via its pending channel ID. As an example, this method can
be used to specify that we're expecting a funding flow for a particular
pending channel ID, for which we need to use specific parameters.
Alternatively, this can be used to interactively drive PSBT signing for
funding for partially complete funding transactions.
The new transition methods (funding state machine modifiers) in this
commit allow a party to register a funding intent that should be used
for a specified incoming pending channel ID. The "responder" to the
external channel flow should use this to prep lnd to be able to handle
the channel flow properly.
2019-11-14 07:54:34 +03:00
"lnrpcChanPointShim" : {
"type" : "object" ,
"properties" : {
"amt" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The size of the pre-crafted output to be used as the channel point for this\nchannel funding."
lnrpc: add ability to provide chan point shims for funding, new funding modifiers
In this commit, we start to expose some of the new external funding
functionality over the RPC interface.
First, we add a new `funding_shim` field to the regular `OpenChannel`
method. This can be used by a caller to express that certain parameters
of the funding flow have already been negotiated outside the protocol,
and should be used instead. For example, a shim can be provided to use a
particular key for the commitment key (ideally cold) rather than use one
this is generated by the wallet as normal, or signal that signing will
be carried out in an interactive manner (PSBT based).
Next, we add a brand new method: `FundingStateStep`. FundingStateStep is
an advanced funding related call that allows the caller to either
execute some preparatory steps for a funding workflow, or manually
progress a funding workflow. The primary way a funding flow is
identified is via its pending channel ID. As an example, this method can
be used to specify that we're expecting a funding flow for a particular
pending channel ID, for which we need to use specific parameters.
Alternatively, this can be used to interactively drive PSBT signing for
funding for partially complete funding transactions.
The new transition methods (funding state machine modifiers) in this
commit allow a party to register a funding intent that should be used
for a specified incoming pending channel ID. The "responder" to the
external channel flow should use this to prep lnd to be able to handle
the channel flow properly.
2019-11-14 07:54:34 +03:00
} ,
"chan_point" : {
"$ref" : "#/definitions/lnrpcChannelPoint" ,
2020-05-06 17:51:14 +03:00
"description" : "The target channel point to refrence in created commitment transactions."
lnrpc: add ability to provide chan point shims for funding, new funding modifiers
In this commit, we start to expose some of the new external funding
functionality over the RPC interface.
First, we add a new `funding_shim` field to the regular `OpenChannel`
method. This can be used by a caller to express that certain parameters
of the funding flow have already been negotiated outside the protocol,
and should be used instead. For example, a shim can be provided to use a
particular key for the commitment key (ideally cold) rather than use one
this is generated by the wallet as normal, or signal that signing will
be carried out in an interactive manner (PSBT based).
Next, we add a brand new method: `FundingStateStep`. FundingStateStep is
an advanced funding related call that allows the caller to either
execute some preparatory steps for a funding workflow, or manually
progress a funding workflow. The primary way a funding flow is
identified is via its pending channel ID. As an example, this method can
be used to specify that we're expecting a funding flow for a particular
pending channel ID, for which we need to use specific parameters.
Alternatively, this can be used to interactively drive PSBT signing for
funding for partially complete funding transactions.
The new transition methods (funding state machine modifiers) in this
commit allow a party to register a funding intent that should be used
for a specified incoming pending channel ID. The "responder" to the
external channel flow should use this to prep lnd to be able to handle
the channel flow properly.
2019-11-14 07:54:34 +03:00
} ,
"local_key" : {
"$ref" : "#/definitions/lnrpcKeyDescriptor" ,
2020-05-06 17:51:14 +03:00
"description" : "Our local key to use when creating the multi-sig output."
lnrpc: add ability to provide chan point shims for funding, new funding modifiers
In this commit, we start to expose some of the new external funding
functionality over the RPC interface.
First, we add a new `funding_shim` field to the regular `OpenChannel`
method. This can be used by a caller to express that certain parameters
of the funding flow have already been negotiated outside the protocol,
and should be used instead. For example, a shim can be provided to use a
particular key for the commitment key (ideally cold) rather than use one
this is generated by the wallet as normal, or signal that signing will
be carried out in an interactive manner (PSBT based).
Next, we add a brand new method: `FundingStateStep`. FundingStateStep is
an advanced funding related call that allows the caller to either
execute some preparatory steps for a funding workflow, or manually
progress a funding workflow. The primary way a funding flow is
identified is via its pending channel ID. As an example, this method can
be used to specify that we're expecting a funding flow for a particular
pending channel ID, for which we need to use specific parameters.
Alternatively, this can be used to interactively drive PSBT signing for
funding for partially complete funding transactions.
The new transition methods (funding state machine modifiers) in this
commit allow a party to register a funding intent that should be used
for a specified incoming pending channel ID. The "responder" to the
external channel flow should use this to prep lnd to be able to handle
the channel flow properly.
2019-11-14 07:54:34 +03:00
} ,
"remote_key" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "The key of the remote party to use when creating the multi-sig output."
lnrpc: add ability to provide chan point shims for funding, new funding modifiers
In this commit, we start to expose some of the new external funding
functionality over the RPC interface.
First, we add a new `funding_shim` field to the regular `OpenChannel`
method. This can be used by a caller to express that certain parameters
of the funding flow have already been negotiated outside the protocol,
and should be used instead. For example, a shim can be provided to use a
particular key for the commitment key (ideally cold) rather than use one
this is generated by the wallet as normal, or signal that signing will
be carried out in an interactive manner (PSBT based).
Next, we add a brand new method: `FundingStateStep`. FundingStateStep is
an advanced funding related call that allows the caller to either
execute some preparatory steps for a funding workflow, or manually
progress a funding workflow. The primary way a funding flow is
identified is via its pending channel ID. As an example, this method can
be used to specify that we're expecting a funding flow for a particular
pending channel ID, for which we need to use specific parameters.
Alternatively, this can be used to interactively drive PSBT signing for
funding for partially complete funding transactions.
The new transition methods (funding state machine modifiers) in this
commit allow a party to register a funding intent that should be used
for a specified incoming pending channel ID. The "responder" to the
external channel flow should use this to prep lnd to be able to handle
the channel flow properly.
2019-11-14 07:54:34 +03:00
} ,
"pending_chan_id" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "If non-zero, then this will be used as the pending channel ID on the wire\nprotocol to initate the funding request. This is an optional field, and\nshould only be set if the responder is already expecting a specific pending\nchannel ID."
2020-03-14 02:49:40 +03:00
} ,
"thaw_height" : {
"type" : "integer" ,
"format" : "int64" ,
2020-07-02 03:45:59 +03:00
"description" : "This uint32 indicates if this channel is to be considered 'frozen'. A frozen\nchannel does not allow a cooperative channel close by the initiator. The\nthaw_height is the height that this restriction stops applying to the\nchannel. The height can be interpreted in two ways: as a relative height if\nthe value is less than 500,000, or as an absolute height otherwise."
lnrpc: add ability to provide chan point shims for funding, new funding modifiers
In this commit, we start to expose some of the new external funding
functionality over the RPC interface.
First, we add a new `funding_shim` field to the regular `OpenChannel`
method. This can be used by a caller to express that certain parameters
of the funding flow have already been negotiated outside the protocol,
and should be used instead. For example, a shim can be provided to use a
particular key for the commitment key (ideally cold) rather than use one
this is generated by the wallet as normal, or signal that signing will
be carried out in an interactive manner (PSBT based).
Next, we add a brand new method: `FundingStateStep`. FundingStateStep is
an advanced funding related call that allows the caller to either
execute some preparatory steps for a funding workflow, or manually
progress a funding workflow. The primary way a funding flow is
identified is via its pending channel ID. As an example, this method can
be used to specify that we're expecting a funding flow for a particular
pending channel ID, for which we need to use specific parameters.
Alternatively, this can be used to interactively drive PSBT signing for
funding for partially complete funding transactions.
The new transition methods (funding state machine modifiers) in this
commit allow a party to register a funding intent that should be used
for a specified incoming pending channel ID. The "responder" to the
external channel flow should use this to prep lnd to be able to handle
the channel flow properly.
2019-11-14 07:54:34 +03:00
}
}
} ,
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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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
} ,
2020-05-06 17:51:14 +03:00
"description" : "The list of active, uncleared HTLCs currently pending within the channel."
2017-12-06 04:27:30 +03:00
} ,
"csv_delay" : {
"type" : "integer" ,
"format" : "int64" ,
2020-06-10 15:21:13 +03:00
"description" : "Deprecated. The CSV delay expressed in relative blocks. If the channel is\nforce closed, we will need to wait for this many blocks before we can regain\nour funds."
2017-01-13 06:40:38 +03:00
} ,
2018-03-13 22:11:09 +03:00
"private" : {
"type" : "boolean" ,
"format" : "boolean" ,
2020-05-06 17:51:14 +03:00
"description" : "Whether this channel is advertised to the network or not."
2019-01-15 04:26:22 +03:00
} ,
"initiator" : {
"type" : "boolean" ,
"format" : "boolean" ,
2020-05-06 17:51:14 +03:00
"description" : "True if we were the ones that created the channel."
2018-12-10 06:57:57 +03:00
} ,
"chan_status_flags" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "A set of flags showing the current state of the channel."
2019-06-23 13:06:09 +03:00
} ,
"local_chan_reserve_sat" : {
"type" : "string" ,
"format" : "int64" ,
2020-06-10 15:21:13 +03:00
"description" : "Deprecated. The minimum satoshis this node is required to reserve in its\nbalance."
2019-06-23 13:06:09 +03:00
} ,
"remote_chan_reserve_sat" : {
"type" : "string" ,
"format" : "int64" ,
2020-06-10 15:21:13 +03:00
"description" : "Deprecated. The minimum satoshis the other node is required to reserve in\nits balance."
2019-09-11 15:45:27 +03:00
} ,
"static_remote_key" : {
"type" : "boolean" ,
"format" : "boolean" ,
2020-05-06 17:51:14 +03:00
"description" : "Deprecated. Use commitment_type."
2020-03-04 15:21:28 +03:00
} ,
"commitment_type" : {
"$ref" : "#/definitions/lnrpcCommitmentType" ,
2020-05-06 17:51:14 +03:00
"description" : "The commitment type used by this channel."
2019-10-10 16:51:09 +03:00
} ,
"lifetime" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The number of seconds that the channel has been monitored by the channel\nscoring system. Scores are currently not persisted, so this value may be\nless than the lifetime of the channel [EXPERIMENTAL]."
2019-10-10 16:51:09 +03:00
} ,
"uptime" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The number of seconds that the remote peer has been observed as being online\nby the channel scoring system over the lifetime of the channel\n[EXPERIMENTAL]."
2019-12-16 08:38:08 +03:00
} ,
"close_address" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "Close address is the address that we will enforce payout to on cooperative\nclose if the channel was opened utilizing option upfront shutdown. This\nvalue can be set on channel open by setting close_address in an open channel\nrequest. If this value is not set, you can still choose a payout address by\ncooperatively closing with the delivery_address field set."
2020-03-18 11:52:43 +03:00
} ,
"push_amount_sat" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "The amount that the initiator of the channel optionally pushed to the remote\nparty on channel open. This amount will be zero if the channel initiator did\nnot push any funds to the remote peer. If the initiator field is true, we\npushed this amount to our peer, if it is false, the remote peer pushed this\namount to us."
2020-03-14 02:49:40 +03:00
} ,
"thaw_height" : {
"type" : "integer" ,
"format" : "int64" ,
2020-07-02 03:45:59 +03:00
"description" : "This uint32 indicates if this channel is to be considered 'frozen'. A\nfrozen channel doest not allow a cooperative channel close by the\ninitiator. The thaw_height is the height that this restriction stops\napplying to the channel. This field is optional, not setting it or using a\nvalue of zero will mean the channel has no additional restrictions. The\nheight can be interpreted in two ways: as a relative height if the value is\nless than 500,000, or as an absolute height otherwise."
2020-06-10 15:21:13 +03:00
} ,
"local_constraints" : {
"$ref" : "#/definitions/lnrpcChannelConstraints" ,
"description" : "List constraints for the local node."
} ,
"remote_constraints" : {
"$ref" : "#/definitions/lnrpcChannelConstraints" ,
"description" : "List constraints for the remote node."
2018-12-10 06:57:57 +03:00
}
}
} ,
2019-08-08 05:14:53 +03:00
"lnrpcChannelAcceptRequest" : {
"type" : "object" ,
"properties" : {
"node_pubkey" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "The pubkey of the node that wishes to open an inbound channel."
2019-08-08 05:14:53 +03:00
} ,
"chain_hash" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "The hash of the genesis block that the proposed channel resides in."
2019-08-08 05:14:53 +03:00
} ,
"pending_chan_id" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "The pending channel id."
2019-08-08 05:14:53 +03:00
} ,
"funding_amt" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The funding amount in satoshis that initiator wishes to use in the\nchannel."
2019-08-08 05:14:53 +03:00
} ,
"push_amt" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The push amount of the proposed channel in millisatoshis."
2019-08-08 05:14:53 +03:00
} ,
"dust_limit" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The dust limit of the initiator's commitment tx."
2019-08-08 05:14:53 +03:00
} ,
"max_value_in_flight" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The maximum amount of coins in millisatoshis that can be pending in this\nchannel."
2019-08-08 05:14:53 +03:00
} ,
"channel_reserve" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The minimum amount of satoshis the initiator requires us to have at all\ntimes."
2019-08-08 05:14:53 +03:00
} ,
"min_htlc" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The smallest HTLC in millisatoshis that the initiator will accept."
2019-08-08 05:14:53 +03:00
} ,
"fee_per_kw" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The initial fee rate that the initiator suggests for both commitment\ntransactions."
2019-08-08 05:14:53 +03:00
} ,
"csv_delay" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The number of blocks to use for the relative time lock in the pay-to-self\noutput of both commitment transactions."
2019-08-08 05:14:53 +03:00
} ,
"max_accepted_htlcs" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The total number of incoming HTLC's that the initiator will accept."
2019-08-08 05:14:53 +03:00
} ,
"channel_flags" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "A bit-field which the initiator uses to specify proposed channel\nbehavior."
2019-08-08 05:14:53 +03:00
}
}
} ,
2018-12-10 06:57:57 +03:00
"lnrpcChannelBackup" : {
"type" : "object" ,
"properties" : {
"chan_point" : {
"$ref" : "#/definitions/lnrpcChannelPoint" ,
2020-05-06 17:51:14 +03:00
"description" : "Identifies the channel that this backup belongs to."
2018-12-10 06:57:57 +03:00
} ,
"chan_backup" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "Is an encrypted single-chan backup. this can be passed to\nRestoreChannelBackups, or the WalletUnlocker Init and Unlock methods in\norder to trigger the recovery protocol. When using REST, this field must be\nencoded as base64."
2018-12-10 06:57:57 +03:00
}
}
} ,
"lnrpcChannelBackups" : {
"type" : "object" ,
"properties" : {
"chan_backups" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcChannelBackup"
} ,
2020-05-06 17:51:14 +03:00
"description" : "A set of single-chan static channel backups."
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" ,
2020-05-06 17:51:14 +03:00
"title" : "Sum of channels balances denominated in satoshis"
2018-04-01 02:38:04 +03:00
} ,
"pending_open_balance" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"description" : "The outpoint (txid:index) of the funding transaction."
2018-05-24 12:36:35 +03:00
} ,
"chan_id" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The unique channel ID for the channel."
2018-05-24 12:36:35 +03:00
} ,
"chain_hash" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "The hash of the genesis block that this channel resides within."
2018-05-24 12:36:35 +03:00
} ,
"closing_tx_hash" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "The txid of the transaction which ultimately closed this channel."
2018-05-24 12:36:35 +03:00
} ,
"remote_pubkey" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "Public key of the remote peer that we formerly had a channel with."
2018-05-24 12:36:35 +03:00
} ,
"capacity" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "Total capacity of the channel."
2018-05-24 12:36:35 +03:00
} ,
"close_height" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "Height at which the funding transaction was spent."
2018-05-24 12:36:35 +03:00
} ,
"settled_balance" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"title" : "Settled balance at the time of channel closure"
2018-05-24 12:36:35 +03:00
} ,
"time_locked_balance" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"title" : "The sum of all the time-locked outputs at the time of channel closure"
2018-05-24 12:36:35 +03:00
} ,
"close_type" : {
"$ref" : "#/definitions/ChannelCloseSummaryClosureType" ,
2020-05-06 17:51:14 +03:00
"description" : "Details on how the channel was closed."
2020-02-21 14:24:24 +03:00
} ,
"open_initiator" : {
2020-04-03 10:09:39 +03:00
"$ref" : "#/definitions/lnrpcInitiator" ,
2020-05-06 17:51:14 +03:00
"description" : "Open initiator is the party that initiated opening the channel. Note that\nthis value may be unknown if the channel was closed before we migrated to\nstore open channel information after close."
2020-02-21 14:24:24 +03:00
} ,
"close_initiator" : {
2020-04-03 10:09:39 +03:00
"$ref" : "#/definitions/lnrpcInitiator" ,
2020-05-06 17:51:14 +03:00
"description" : "Close initiator indicates which party initiated the close. This value will\nbe unknown for channels that were cooperatively closed before we started\ntracking cooperative close initiators. Note that this indicates which party\ninitiated a close, and it is possible for both to initiate cooperative or\nforce closes, although only one party's close will be confirmed on chain."
2020-07-07 11:32:12 +03:00
} ,
"resolutions" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcResolution"
}
2018-05-24 12:36:35 +03:00
}
}
} ,
2016-10-16 00:38:47 +03:00
"lnrpcChannelCloseUpdate" : {
"type" : "object" ,
"properties" : {
"closing_txid" : {
"type" : "string" ,
"format" : "byte"
} ,
"success" : {
"type" : "boolean" ,
"format" : "boolean"
}
}
} ,
2020-06-10 15:21:13 +03:00
"lnrpcChannelConstraints" : {
"type" : "object" ,
"properties" : {
"csv_delay" : {
"type" : "integer" ,
"format" : "int64" ,
"description" : "The CSV delay expressed in relative blocks. If the channel is force closed,\nwe will need to wait for this many blocks before we can regain our funds."
} ,
"chan_reserve_sat" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "The minimum satoshis this node is required to reserve in its balance."
} ,
"dust_limit_sat" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "The dust limit (in satoshis) of the initiator's commitment tx."
} ,
"max_pending_amt_msat" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "The maximum amount of coins in millisatoshis that can be pending in this\nchannel."
} ,
"min_htlc_msat" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "The smallest HTLC in millisatoshis that the initiator will accept."
} ,
"max_accepted_htlcs" : {
"type" : "integer" ,
"format" : "int64" ,
"description" : "The total number of incoming HTLC's that the initiator will accept."
}
}
} ,
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" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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
} ,
2020-05-06 17:51:14 +03:00
"description" : "A 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" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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"
} ,
2019-09-29 13:13:01 +03:00
"pending_open_channel" : {
"$ref" : "#/definitions/lnrpcPendingUpdate"
} ,
2019-01-23 05:28:27 +03:00
"type" : {
"$ref" : "#/definitions/ChannelEventUpdateUpdateType"
}
}
} ,
2017-08-22 10:07:25 +03:00
"lnrpcChannelFeeReport" : {
"type" : "object" ,
"properties" : {
2020-03-02 12:59:26 +03:00
"chan_id" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The short channel id that this fee report belongs to."
2020-03-02 12:59:26 +03:00
} ,
2020-02-12 18:13:07 +03:00
"channel_point" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "The channel that this fee report belongs to."
2017-08-22 10:07:25 +03:00
} ,
"base_fee_msat" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The base fee charged regardless of the number of milli-satoshis sent."
2017-08-22 10:07:25 +03:00
} ,
"fee_per_mil" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The amount charged per milli-satoshis transferred expressed in\nmillionths of a satoshi."
2017-08-22 10:07:25 +03:00
} ,
"fee_rate" : {
"type" : "number" ,
"format" : "double" ,
2020-05-06 17:51:14 +03:00
"description" : "The effective fee rate in milli-satoshis. Computed by dividing the\nfee_per_mil value by 1 million."
2017-08-22 10:07:25 +03:00
}
}
} ,
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
} ,
2020-05-06 17:51:14 +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
} ,
2020-05-06 17:51:14 +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
} ,
2020-05-06 17:51:14 +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" ,
2020-05-06 17:51:14 +03:00
"description" : "Txid of the funding transaction. When using REST, this field must be\nencoded as base64."
2016-10-16 00:38:47 +03:00
} ,
"funding_txid_str" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "Hex-encoded string representing the byte-reversed hash of the funding\ntransaction."
2016-10-16 00:38:47 +03:00
} ,
"output_index" : {
"type" : "integer" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"title" : "The index of the output of the funding transaction"
2016-10-16 00:38:47 +03:00
}
}
} ,
2020-02-19 19:21:03 +03:00
"lnrpcChannelUpdate" : {
"type" : "object" ,
"properties" : {
"signature" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "The signature that validates the announced data and proves the ownership\nof node id."
2020-02-19 19:21:03 +03:00
} ,
"chain_hash" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "The target chain that this channel was opened within. This value\nshould be the genesis hash of the target chain. Along with the short\nchannel ID, this uniquely identifies the channel globally in a\nblockchain."
2020-02-19 19:21:03 +03:00
} ,
"chan_id" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The unique description of the funding transaction."
2020-02-19 19:21:03 +03:00
} ,
"timestamp" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "A timestamp that allows ordering in the case of multiple announcements.\nWe should ignore the message if timestamp is not greater than the\nlast-received."
2020-02-19 19:21:03 +03:00
} ,
"message_flags" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The bitfield that describes whether optional fields are present in this\nupdate. Currently, the least-significant bit must be set to 1 if the\noptional field MaxHtlc is present."
2020-02-19 19:21:03 +03:00
} ,
"channel_flags" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The bitfield that describes additional meta-data concerning how the\nupdate is to be interpreted. Currently, the least-significant bit must be\nset to 0 if the creating node corresponds to the first node in the\npreviously sent channel announcement and 1 otherwise. If the second bit\nis set, then the channel is set to be disabled."
2020-02-19 19:21:03 +03:00
} ,
"time_lock_delta" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The minimum number of blocks this node requires to be added to the expiry\nof HTLCs. This is a security parameter determined by the node operator.\nThis value represents the required gap between the time locks of the\nincoming and outgoing HTLC's set to this node."
2020-02-19 19:21:03 +03:00
} ,
"htlc_minimum_msat" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The minimum HTLC value which will be accepted."
2020-02-19 19:21:03 +03:00
} ,
"base_fee" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The base fee that must be used for incoming HTLC's to this particular\nchannel. This value will be tacked onto the required for a payment\nindependent of the size of the payment."
2020-02-19 19:21:03 +03:00
} ,
"fee_rate" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The fee rate that will be charged per millionth of a satoshi."
2020-02-19 19:21:03 +03:00
} ,
"htlc_maximum_msat" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The maximum HTLC value which will be accepted."
2020-02-19 19:21:03 +03:00
} ,
"extra_opaque_data" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "The set of data that was appended to this message, some of which we may\nnot actually know how to iterate or parse. By holding onto this data, we\nensure that we're able to properly validate the set of signatures that\ncover these new fields, and ensure we're able to make upgrades to the\nnetwork in a forwards compatible manner."
2020-02-19 19:21:03 +03:00
}
}
} ,
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" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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"
}
}
}
} ,
2020-03-04 15:21:28 +03:00
"lnrpcCommitmentType" : {
"type" : "string" ,
"enum" : [
"LEGACY" ,
"STATIC_REMOTE_KEY" ,
2020-03-30 21:36:38 +03:00
"ANCHORS" ,
"UNKNOWN_COMMITMENT_TYPE"
2020-03-04 15:21:28 +03:00
] ,
"default" : "LEGACY" ,
2020-05-06 17:51:14 +03:00
"description" : " - LEGACY: A channel using the legacy commitment format having tweaked to_remote\nkeys.\n - STATIC_REMOTE_KEY: A channel that uses the modern commitment format where the key in the\noutput of the remote party does not change each state. This makes back\nup and recovery easier as when the channel is closed, the funds go\ndirectly to that key.\n - ANCHORS: A channel that uses a commitment format that has anchor outputs on the\ncommitments, allowing fee bumping after a force close transaction has\nbeen broadcast.\n - UNKNOWN_COMMITMENT_TYPE: Returned when the commitment type isn't known or unavailable."
2020-03-04 15:21:28 +03:00
} ,
2016-10-16 00:38:47 +03:00
"lnrpcConnectPeerRequest" : {
"type" : "object" ,
"properties" : {
"addr" : {
2017-08-22 10:07:25 +03:00
"$ref" : "#/definitions/lnrpcLightningAddress" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"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
} ,
2020-05-28 14:07:31 +03:00
"lnrpcDebugLevelRequest" : {
"type" : "object" ,
"properties" : {
"show" : {
"type" : "boolean" ,
"format" : "boolean"
} ,
"level_spec" : {
"type" : "string"
}
}
} ,
2017-01-13 06:40:38 +03:00
"lnrpcDebugLevelResponse" : {
"type" : "object" ,
"properties" : {
"sub_systems" : {
2017-02-28 06:03:43 +03:00
"type" : "string"
2017-01-13 06:40:38 +03:00
}
}
} ,
2017-08-22 10:07:25 +03:00
"lnrpcDeleteAllPaymentsResponse" : {
2016-12-05 14:59:36 +03:00
"type" : "object"
} ,
2020-07-23 19:36:42 +03:00
"lnrpcDeleteMacaroonIDResponse" : {
"type" : "object" ,
"properties" : {
"deleted" : {
"type" : "boolean" ,
"format" : "boolean" ,
"description" : "A boolean indicates that the deletion is successful."
}
}
} ,
2017-08-22 10:07:25 +03:00
"lnrpcDisconnectPeerResponse" : {
2016-12-05 14:59:36 +03:00
"type" : "object"
} ,
2019-10-30 12:53:21 +03:00
"lnrpcEdgeLocator" : {
"type" : "object" ,
"properties" : {
"channel_id" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The short channel id of this edge."
2019-10-30 12:53:21 +03:00
} ,
"direction_reverse" : {
"type" : "boolean" ,
"format" : "boolean" ,
2020-05-06 17:51:14 +03:00
"description" : "The direction of this edge. If direction_reverse is false, the direction\nof this edge is from the channel endpoint with the lexicographically smaller\npub key to the endpoint with the larger pub key. If direction_reverse is\nis true, the edge goes the other way."
2019-10-30 12:53:21 +03:00
}
}
} ,
2019-03-05 16:22:30 +03:00
"lnrpcEstimateFeeResponse" : {
"type" : "object" ,
"properties" : {
"fee_sat" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The total fee in satoshis."
2019-03-05 16:22:30 +03:00
} ,
"feerate_sat_per_byte" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The fee rate in satoshi/byte."
2019-03-05 16:22:30 +03:00
}
}
} ,
2020-02-19 19:21:03 +03:00
"lnrpcFailure" : {
"type" : "object" ,
"properties" : {
"code" : {
"$ref" : "#/definitions/FailureFailureCode" ,
2020-05-06 17:51:14 +03:00
"title" : "Failure code as defined in the Lightning spec"
2020-02-19 19:21:03 +03:00
} ,
"channel_update" : {
"$ref" : "#/definitions/lnrpcChannelUpdate" ,
2020-05-06 17:51:14 +03:00
"description" : "An optional channel update message."
2020-02-19 19:21:03 +03:00
} ,
"htlc_msat" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "A failure type-dependent htlc value."
2020-02-19 19:21:03 +03:00
} ,
"onion_sha_256" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "The sha256 sum of the onion payload."
2020-02-19 19:21:03 +03:00
} ,
"cltv_expiry" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "A failure type-dependent cltv expiry value."
2020-02-19 19:21:03 +03:00
} ,
"flags" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "A failure type-dependent flags value."
2020-02-19 19:21:03 +03:00
} ,
"failure_source_index" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The position in the path of the intermediate or final node that generated\nthe failure message. Position zero is the sender node."
2020-02-19 19:21:03 +03:00
} ,
"height" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "A failure type-dependent block height."
2020-02-19 19:21:03 +03:00
}
}
} ,
2019-12-11 00:09:17 +03:00
"lnrpcFeature" : {
"type" : "object" ,
"properties" : {
"name" : {
"type" : "string"
} ,
"is_required" : {
"type" : "boolean" ,
"format" : "boolean"
} ,
"is_known" : {
"type" : "boolean" ,
"format" : "boolean"
}
}
} ,
2019-12-19 10:57:23 +03:00
"lnrpcFeatureBit" : {
"type" : "string" ,
"enum" : [
"DATALOSS_PROTECT_REQ" ,
"DATALOSS_PROTECT_OPT" ,
"INITIAL_ROUING_SYNC" ,
"UPFRONT_SHUTDOWN_SCRIPT_REQ" ,
"UPFRONT_SHUTDOWN_SCRIPT_OPT" ,
"GOSSIP_QUERIES_REQ" ,
"GOSSIP_QUERIES_OPT" ,
"TLV_ONION_REQ" ,
"TLV_ONION_OPT" ,
"EXT_GOSSIP_QUERIES_REQ" ,
"EXT_GOSSIP_QUERIES_OPT" ,
"STATIC_REMOTE_KEY_REQ" ,
"STATIC_REMOTE_KEY_OPT" ,
"PAYMENT_ADDR_REQ" ,
"PAYMENT_ADDR_OPT" ,
"MPP_REQ" ,
"MPP_OPT"
] ,
"default" : "DATALOSS_PROTECT_REQ"
} ,
2018-04-19 01:13:55 +03:00
"lnrpcFeeLimit" : {
"type" : "object" ,
"properties" : {
"fixed" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The fee limit expressed as a fixed amount of satoshis.\n\nThe fields fixed and fixed_msat are mutually exclusive."
2019-11-11 18:44:08 +03:00
} ,
"fixed_msat" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The fee limit expressed as a fixed amount of millisatoshis.\n\nThe fields fixed and fixed_msat are mutually exclusive."
2018-04-19 01:13:55 +03:00
} ,
"percent" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The fee limit expressed as a percentage of the payment amount."
2018-04-19 01:13:55 +03:00
}
}
} ,
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"
} ,
2020-05-06 17:51:14 +03:00
"description" : "An array of channel fee reports which describes the current fee schedule\nfor each channel."
2018-02-28 09:22:06 +03:00
} ,
"day_fee_sum" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The total amount of fee revenue (in satoshis) the switch has collected\nover the past 24 hrs."
2018-02-28 09:22:06 +03:00
} ,
"week_fee_sum" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The total amount of fee revenue (in satoshis) the switch has collected\nover the past 1 week."
2018-02-28 09:22:06 +03:00
} ,
"month_fee_sum" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The total amount of fee revenue (in satoshis) the switch has collected\nover the past 1 month."
2018-02-28 09:22:06 +03:00
}
}
} ,
2020-03-28 18:14:26 +03:00
"lnrpcFloatMetric" : {
2020-03-19 13:14:28 +03:00
"type" : "object" ,
"properties" : {
"value" : {
"type" : "number" ,
"format" : "double" ,
2020-05-06 17:51:14 +03:00
"description" : "Arbitrary float value."
2020-03-19 13:14:28 +03:00
} ,
"normalized_value" : {
"type" : "number" ,
"format" : "double" ,
2020-05-06 17:51:14 +03:00
"description" : "The value normalized to [0,1] or [-1,1]."
2020-03-19 13:14:28 +03:00
}
}
} ,
2018-02-28 09:22:06 +03:00
"lnrpcForwardingEvent" : {
"type" : "object" ,
"properties" : {
"timestamp" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "Timestamp is the time (unix epoch offset) that this circuit was\ncompleted."
2018-02-28 09:22:06 +03:00
} ,
"chan_id_in" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The incoming channel ID that carried the HTLC that created the circuit."
2018-02-28 09:22:06 +03:00
} ,
"chan_id_out" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The outgoing channel ID that carried the preimage that completed the\ncircuit."
2018-02-28 09:22:06 +03:00
} ,
"amt_in" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The total amount (in satoshis) of the incoming HTLC that created half\nthe circuit."
2018-02-28 09:22:06 +03:00
} ,
"amt_out" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The total amount (in satoshis) of the outgoing HTLC that created the\nsecond half of the circuit."
2018-02-28 09:22:06 +03:00
} ,
"fee" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The total fee (in satoshis) that this payment circuit carried."
2018-11-13 20:22:12 +03:00
} ,
"fee_msat" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The total fee (in milli-satoshis) that this payment circuit carried."
2019-10-16 20:50:58 +03:00
} ,
"amt_in_msat" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The total amount (in milli-satoshis) of the incoming HTLC that created\nhalf the circuit."
2019-10-16 20:50:58 +03:00
} ,
"amt_out_msat" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The total amount (in milli-satoshis) of the outgoing HTLC that created\nthe second half of the circuit."
2018-02-28 09:22:06 +03:00
}
}
} ,
"lnrpcForwardingHistoryRequest" : {
"type" : "object" ,
"properties" : {
"start_time" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "Start time is the starting point of the forwarding history request. All\nrecords beyond this point will be included, respecting the end time, and\nthe index offset."
2018-02-28 09:22:06 +03:00
} ,
"end_time" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "End time is the end point of the forwarding history request. The\nresponse will carry at most 50k records between the start time and the\nend time. The index offset can be used to implement pagination."
2018-02-28 09:22:06 +03:00
} ,
"index_offset" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "Index offset is the offset in the time series to start at. As each\nresponse can only contain 50k records, callers can use this to skip\naround within a packed time series."
2018-02-28 09:22:06 +03:00
} ,
"num_max_events" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The max number of events to return in the response to this query."
2018-02-28 09:22:06 +03:00
}
}
} ,
"lnrpcForwardingHistoryResponse" : {
"type" : "object" ,
"properties" : {
"forwarding_events" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcForwardingEvent"
} ,
2020-05-06 17:51:14 +03:00
"description" : "A list of forwarding events from the time slice of the time series\nspecified in the request."
2018-02-28 09:22:06 +03:00
} ,
"last_offset_index" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The index of the last time in the set of returned forwarding events. Can\nbe used to seek further, pagination style."
2017-04-12 00:49:39 +03:00
}
}
} ,
2020-03-31 10:13:13 +03:00
"lnrpcFundingPsbtFinalize" : {
"type" : "object" ,
"properties" : {
"signed_psbt" : {
"type" : "string" ,
"format" : "byte" ,
2020-09-07 19:02:40 +03:00
"description" : "The funded PSBT that contains all witness data to send the exact channel\ncapacity amount to the PK script returned in the open channel message in a\nprevious step. Cannot be set at the same time as final_raw_tx."
2020-03-31 10:13:13 +03:00
} ,
"pending_chan_id" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "The pending channel ID of the channel to get the PSBT for."
2020-09-07 19:02:40 +03:00
} ,
"final_raw_tx" : {
"type" : "string" ,
"format" : "byte" ,
"description" : "As an alternative to the signed PSBT with all witness data, the final raw\nwire format transaction can also be specified directly. Cannot be set at the\nsame time as signed_psbt."
2020-03-31 10:13:13 +03:00
}
}
} ,
"lnrpcFundingPsbtVerify" : {
"type" : "object" ,
"properties" : {
"funded_psbt" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "The funded but not yet signed PSBT that sends the exact channel capacity\namount to the PK script returned in the open channel message in a previous\nstep."
2020-03-31 10:13:13 +03:00
} ,
"pending_chan_id" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "The pending channel ID of the channel to get the PSBT for."
2020-03-31 10:13:13 +03:00
}
}
} ,
lnrpc: add ability to provide chan point shims for funding, new funding modifiers
In this commit, we start to expose some of the new external funding
functionality over the RPC interface.
First, we add a new `funding_shim` field to the regular `OpenChannel`
method. This can be used by a caller to express that certain parameters
of the funding flow have already been negotiated outside the protocol,
and should be used instead. For example, a shim can be provided to use a
particular key for the commitment key (ideally cold) rather than use one
this is generated by the wallet as normal, or signal that signing will
be carried out in an interactive manner (PSBT based).
Next, we add a brand new method: `FundingStateStep`. FundingStateStep is
an advanced funding related call that allows the caller to either
execute some preparatory steps for a funding workflow, or manually
progress a funding workflow. The primary way a funding flow is
identified is via its pending channel ID. As an example, this method can
be used to specify that we're expecting a funding flow for a particular
pending channel ID, for which we need to use specific parameters.
Alternatively, this can be used to interactively drive PSBT signing for
funding for partially complete funding transactions.
The new transition methods (funding state machine modifiers) in this
commit allow a party to register a funding intent that should be used
for a specified incoming pending channel ID. The "responder" to the
external channel flow should use this to prep lnd to be able to handle
the channel flow properly.
2019-11-14 07:54:34 +03:00
"lnrpcFundingShim" : {
"type" : "object" ,
"properties" : {
"chan_point_shim" : {
2020-03-31 10:13:13 +03:00
"$ref" : "#/definitions/lnrpcChanPointShim" ,
2020-05-06 17:51:14 +03:00
"description" : "A channel shim where the channel point was fully constructed outside\nof lnd's wallet and the transaction might already be published."
2020-03-31 10:13:13 +03:00
} ,
"psbt_shim" : {
"$ref" : "#/definitions/lnrpcPsbtShim" ,
2020-05-06 17:51:14 +03:00
"description" : "A channel shim that uses a PSBT to fund and sign the channel funding\ntransaction."
lnrpc: add ability to provide chan point shims for funding, new funding modifiers
In this commit, we start to expose some of the new external funding
functionality over the RPC interface.
First, we add a new `funding_shim` field to the regular `OpenChannel`
method. This can be used by a caller to express that certain parameters
of the funding flow have already been negotiated outside the protocol,
and should be used instead. For example, a shim can be provided to use a
particular key for the commitment key (ideally cold) rather than use one
this is generated by the wallet as normal, or signal that signing will
be carried out in an interactive manner (PSBT based).
Next, we add a brand new method: `FundingStateStep`. FundingStateStep is
an advanced funding related call that allows the caller to either
execute some preparatory steps for a funding workflow, or manually
progress a funding workflow. The primary way a funding flow is
identified is via its pending channel ID. As an example, this method can
be used to specify that we're expecting a funding flow for a particular
pending channel ID, for which we need to use specific parameters.
Alternatively, this can be used to interactively drive PSBT signing for
funding for partially complete funding transactions.
The new transition methods (funding state machine modifiers) in this
commit allow a party to register a funding intent that should be used
for a specified incoming pending channel ID. The "responder" to the
external channel flow should use this to prep lnd to be able to handle
the channel flow properly.
2019-11-14 07:54:34 +03:00
}
}
} ,
"lnrpcFundingShimCancel" : {
"type" : "object" ,
"properties" : {
"pending_chan_id" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "The pending channel ID of the channel to cancel the funding shim for."
lnrpc: add ability to provide chan point shims for funding, new funding modifiers
In this commit, we start to expose some of the new external funding
functionality over the RPC interface.
First, we add a new `funding_shim` field to the regular `OpenChannel`
method. This can be used by a caller to express that certain parameters
of the funding flow have already been negotiated outside the protocol,
and should be used instead. For example, a shim can be provided to use a
particular key for the commitment key (ideally cold) rather than use one
this is generated by the wallet as normal, or signal that signing will
be carried out in an interactive manner (PSBT based).
Next, we add a brand new method: `FundingStateStep`. FundingStateStep is
an advanced funding related call that allows the caller to either
execute some preparatory steps for a funding workflow, or manually
progress a funding workflow. The primary way a funding flow is
identified is via its pending channel ID. As an example, this method can
be used to specify that we're expecting a funding flow for a particular
pending channel ID, for which we need to use specific parameters.
Alternatively, this can be used to interactively drive PSBT signing for
funding for partially complete funding transactions.
The new transition methods (funding state machine modifiers) in this
commit allow a party to register a funding intent that should be used
for a specified incoming pending channel ID. The "responder" to the
external channel flow should use this to prep lnd to be able to handle
the channel flow properly.
2019-11-14 07:54:34 +03:00
}
}
} ,
"lnrpcFundingStateStepResp" : {
"type" : "object"
} ,
2020-05-28 14:07:31 +03:00
"lnrpcFundingTransitionMsg" : {
"type" : "object" ,
"properties" : {
"shim_register" : {
"$ref" : "#/definitions/lnrpcFundingShim" ,
"description" : "The funding shim to register. This should be used before any\nchannel funding has began by the remote party, as it is intended as a\npreparatory step for the full channel funding."
} ,
"shim_cancel" : {
"$ref" : "#/definitions/lnrpcFundingShimCancel" ,
"description" : "Used to cancel an existing registered funding shim."
} ,
"psbt_verify" : {
"$ref" : "#/definitions/lnrpcFundingPsbtVerify" ,
"description" : "Used to continue a funding flow that was initiated to be executed\nthrough a PSBT. This step verifies that the PSBT contains the correct\noutputs to fund the channel."
} ,
"psbt_finalize" : {
"$ref" : "#/definitions/lnrpcFundingPsbtFinalize" ,
"description" : "Used to continue a funding flow that was initiated to be executed\nthrough a PSBT. This step finalizes the funded and signed PSBT, finishes\nnegotiation with the peer and finally publishes the resulting funding\ntransaction."
}
}
} ,
2016-10-16 00:38:47 +03:00
"lnrpcGetInfoResponse" : {
"type" : "object" ,
"properties" : {
2019-12-20 12:05:27 +03:00
"version" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "The version of the LND software that the node is running."
2019-12-20 12:05:27 +03:00
} ,
2020-04-10 03:06:37 +03:00
"commit_hash" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "The SHA1 commit hash that the daemon is compiled with."
2020-04-10 03:06:37 +03:00
} ,
2017-01-13 06:40:38 +03:00
"identity_pubkey" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"title" : "If applicable, the alias of the current node, e.g. \"bob\""
2016-12-27 08:45:01 +03:00
} ,
2019-12-20 12:05:27 +03:00
"color" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"title" : "The color of the current node in hex code format"
2019-12-20 12:05:27 +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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"title" : "Number of active channels"
2016-10-16 00:38:47 +03:00
} ,
2019-12-20 12:05:27 +03:00
"num_inactive_channels" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"title" : "Number of inactive channels"
2019-12-20 12:05:27 +03:00
} ,
2016-10-16 00:38:47 +03:00
"num_peers" : {
"type" : "integer" ,
2017-08-22 10:07:25 +03:00
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"title" : "The node's current view of the hash of the best block"
2017-01-13 06:40:38 +03:00
} ,
2019-12-20 12:05:27 +03:00
"best_header_timestamp" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"title" : "Timestamp of the block best known to the wallet"
2019-12-20 12:05:27 +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" ,
2020-05-06 17:51:14 +03:00
"title" : "Whether the wallet's view is synced to the main chain"
2016-12-13 02:34:20 +03:00
} ,
2019-12-20 12:05:27 +03:00
"synced_to_graph" : {
"type" : "boolean" ,
"format" : "boolean" ,
"description" : "Whether we consider ourselves synced with the public channel graph."
} ,
2016-12-13 02:34:20 +03:00
"testnet" : {
"type" : "boolean" ,
2017-08-22 10:07:25 +03:00
"format" : "boolean" ,
2020-05-06 17:51:14 +03:00
"title" : "Whether 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
} ,
2019-01-02 18:10:12 +03:00
"chains" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcChain"
} ,
2020-05-06 17:51:14 +03:00
"title" : "A list of active chains the node is connected to"
2018-12-21 19:29:24 +03:00
} ,
2019-12-20 12:05:27 +03:00
"uris" : {
"type" : "array" ,
"items" : {
"type" : "string"
} ,
2020-05-06 17:51:14 +03:00
"description" : "The URIs of the current node."
2019-12-17 22:58:28 +03:00
} ,
"features" : {
"type" : "object" ,
"additionalProperties" : {
"$ref" : "#/definitions/lnrpcFeature"
} ,
"description" : "Features that our node has advertised in our init message, node\nannouncements and invoices."
2016-10-16 00:38:47 +03:00
}
}
} ,
2020-06-09 09:47:17 +03:00
"lnrpcGetRecoveryInfoResponse" : {
"type" : "object" ,
"properties" : {
"recovery_mode" : {
"type" : "boolean" ,
"format" : "boolean" ,
"title" : "Whether the wallet is in recovery mode"
} ,
"recovery_finished" : {
"type" : "boolean" ,
"format" : "boolean" ,
"title" : "Whether the wallet recovery progress is finished"
} ,
"progress" : {
"type" : "number" ,
"format" : "double" ,
"description" : "The recovery progress, ranging from 0 to 1."
}
}
} ,
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
}
}
} ,
2019-11-20 07:41:27 +03:00
"lnrpcHTLCAttempt" : {
"type" : "object" ,
"properties" : {
"status" : {
"$ref" : "#/definitions/HTLCAttemptHTLCStatus" ,
2020-05-06 17:51:14 +03:00
"description" : "The status of the HTLC."
2019-11-20 07:41:27 +03:00
} ,
"route" : {
"$ref" : "#/definitions/lnrpcRoute" ,
2020-05-06 17:51:14 +03:00
"description" : "The route taken by this HTLC."
2019-11-20 07:41:27 +03:00
} ,
"attempt_time_ns" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The time in UNIX nanoseconds at which this HTLC was sent."
2019-11-20 07:41:27 +03:00
} ,
"resolve_time_ns" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The time in UNIX nanoseconds at which this HTLC was settled or failed.\nThis value will not be set if the HTLC is still IN_FLIGHT."
2020-02-19 19:21:03 +03:00
} ,
"failure" : {
"$ref" : "#/definitions/lnrpcFailure" ,
"description" : "Detailed htlc failure info."
2020-04-09 10:51:37 +03:00
} ,
"preimage" : {
"type" : "string" ,
"format" : "byte" ,
"description" : "The preimage that was used to settle the HTLC."
2019-11-20 07:41:27 +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" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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" ,
2020-05-06 17:51:14 +03:00
"description" : "An 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."
2019-07-31 07:44:02 +03:00
} ,
"tlv_payload" : {
"type" : "boolean" ,
"format" : "boolean" ,
2020-05-06 17:51:14 +03:00
"description" : "If set to true, then this hop will be encoded using the new variable length\nTLV format. Note that if any custom tlv_records below are specified, then\nthis field MUST be set to true for them to be encoded properly."
2019-11-05 02:11:07 +03:00
} ,
"mpp_record" : {
"$ref" : "#/definitions/lnrpcMPPRecord" ,
2020-05-06 17:51:14 +03:00
"description" : "An optional TLV record that signals the use of an MPP payment. If present,\nthe receiver will enforce that that the same mpp_record is included in the\nfinal hop payload of all non-zero payments in the HTLC set. If empty, a\nregular single-shot payment is or was attempted."
2019-11-20 14:00:25 +03:00
} ,
"custom_records" : {
"type" : "object" ,
"additionalProperties" : {
"type" : "string" ,
"format" : "byte"
} ,
2020-05-06 17:51:14 +03:00
"description" : "An optional set of key-value TLV records. This is useful within the context\nof the SendToRoute call as it allows callers to specify arbitrary K-V pairs\nto drop off at each hop within the onion."
2016-12-27 08:45:01 +03:00
}
}
} ,
2018-03-28 06:45:22 +03:00
"lnrpcHopHint" : {
"type" : "object" ,
"properties" : {
"node_id" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "The public key of the node at the start of the channel."
2018-03-28 06:45:22 +03:00
} ,
"chan_id" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The unique identifier of the channel."
2018-03-28 06:45:22 +03:00
} ,
"fee_base_msat" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The base fee of the channel denominated in millisatoshis."
2018-03-28 06:45:22 +03:00
} ,
"fee_proportional_millionths" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The fee rate of the channel for sending one satoshi across it denominated in\nmillionths of a satoshi."
2018-03-28 06:45:22 +03:00
} ,
"cltv_expiry_delta" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The time-lock delta of the channel."
2018-03-28 06:45:22 +03:00
}
}
} ,
2020-04-03 10:09:39 +03:00
"lnrpcInitiator" : {
"type" : "string" ,
"enum" : [
"INITIATOR_UNKNOWN" ,
"INITIATOR_LOCAL" ,
"INITIATOR_REMOTE" ,
"INITIATOR_BOTH"
] ,
"default" : "INITIATOR_UNKNOWN"
} ,
2016-10-16 00:38:47 +03:00
"lnrpcInvoice" : {
"type" : "object" ,
"properties" : {
"memo" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "An 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
} ,
"r_preimage" : {
"type" : "string" ,
2017-08-22 10:07:25 +03:00
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "The hex-encoded preimage (32 byte) which will allow settling an incoming\nHTLC payable to this preimage. When using REST, this field must be encoded\nas base64."
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" ,
2020-05-06 17:51:14 +03:00
"description" : "The hash of the preimage. When using REST, this field must be encoded as\nbase64."
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" ,
2019-11-15 10:59:14 +03:00
"description" : "The fields value and value_msat are mutually exclusive." ,
2020-05-06 17:51:14 +03:00
"title" : "The value of this invoice in satoshis"
2019-11-15 10:59:14 +03:00
} ,
"value_msat" : {
"type" : "string" ,
"format" : "int64" ,
"description" : "The fields value and value_msat are mutually exclusive." ,
2020-05-06 17:51:14 +03:00
"title" : "The value of this invoice in millisatoshis"
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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"description" : "A 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" ,
2020-05-06 17:51:14 +03:00
"description" : "Hash (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. When using REST, this field must be encoded\nas base64."
2017-09-05 19:01:01 +03:00
} ,
"expiry" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "Payment request expiry time in seconds. Default is 3600 (1 hour)."
2017-09-05 19:01:01 +03:00
} ,
"fallback_addr" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "Fallback on-chain address."
2017-10-19 08:13:40 +03:00
} ,
"cltv_expiry" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"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"
} ,
2020-05-06 17:51:14 +03:00
"description" : "Route 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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"description" : "The \"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-04-25 06:41:22 +03:00
} ,
"settle_index" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The \"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."
2018-04-25 06:41:22 +03:00
} ,
"amt_paid" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "Deprecated, use amt_paid_sat or amt_paid_msat."
2018-09-06 09:38:38 +03:00
} ,
"amt_paid_sat" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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."
2018-09-06 09:38:38 +03:00
} ,
"amt_paid_msat" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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" ,
2020-05-06 17:51:14 +03:00
"description" : "The state the invoice is in."
2019-08-09 18:28:08 +03:00
} ,
"htlcs" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcInvoiceHTLC"
} ,
2020-05-06 17:51:14 +03:00
"description" : "List of HTLCs paying to this invoice [EXPERIMENTAL]."
2019-12-12 03:36:44 +03:00
} ,
"features" : {
2019-12-14 18:05:21 +03:00
"type" : "object" ,
"additionalProperties" : {
2019-12-12 03:36:44 +03:00
"$ref" : "#/definitions/lnrpcFeature"
} ,
2020-05-06 17:51:14 +03:00
"description" : "List of features advertised on the invoice."
2019-12-12 10:10:15 +03:00
} ,
2020-01-16 15:13:59 +03:00
"is_keysend" : {
2019-12-12 10:10:15 +03:00
"type" : "boolean" ,
"format" : "boolean" ,
2020-05-06 17:51:14 +03:00
"description" : "Indicates if this invoice was a spontaneous payment that arrived via keysend\n[EXPERIMENTAL]."
2016-10-16 00:38:47 +03:00
}
}
} ,
2019-08-09 18:28:08 +03:00
"lnrpcInvoiceHTLC" : {
"type" : "object" ,
"properties" : {
"chan_id" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "Short channel id over which the htlc was received."
2019-08-09 18:28:08 +03:00
} ,
"htlc_index" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "Index identifying the htlc on the channel."
2019-08-09 18:28:08 +03:00
} ,
"amt_msat" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The amount of the htlc in msat."
2019-08-09 18:28:08 +03:00
} ,
"accept_height" : {
"type" : "integer" ,
"format" : "int32" ,
2020-05-06 17:51:14 +03:00
"description" : "Block height at which this htlc was accepted."
2019-08-09 18:28:08 +03:00
} ,
"accept_time" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "Time at which this htlc was accepted."
2019-08-09 18:28:08 +03:00
} ,
"resolve_time" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "Time at which this htlc was settled or canceled."
2019-08-09 18:28:08 +03:00
} ,
"expiry_height" : {
"type" : "integer" ,
"format" : "int32" ,
2020-05-06 17:51:14 +03:00
"description" : "Block height at which this htlc expires."
2019-08-09 18:28:08 +03:00
} ,
"state" : {
"$ref" : "#/definitions/lnrpcInvoiceHTLCState" ,
2020-05-06 17:51:14 +03:00
"description" : "Current state the htlc is in."
2019-11-19 15:33:05 +03:00
} ,
"custom_records" : {
"type" : "object" ,
"additionalProperties" : {
"type" : "string" ,
"format" : "byte"
} ,
2020-05-06 17:51:14 +03:00
"description" : "Custom tlv records."
2019-09-03 13:23:39 +03:00
} ,
"mpp_total_amt_msat" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The total amount of the mpp payment in msat."
2019-08-09 18:28:08 +03:00
}
} ,
2020-05-06 17:51:14 +03:00
"title" : "Details of an HTLC that paid to an invoice"
2019-08-09 18:28:08 +03:00
} ,
"lnrpcInvoiceHTLCState" : {
"type" : "string" ,
"enum" : [
"ACCEPTED" ,
"SETTLED" ,
2019-10-03 18:22:43 +03:00
"CANCELED"
2019-08-09 18:28:08 +03:00
] ,
"default" : "ACCEPTED"
} ,
lnrpc: add ability to provide chan point shims for funding, new funding modifiers
In this commit, we start to expose some of the new external funding
functionality over the RPC interface.
First, we add a new `funding_shim` field to the regular `OpenChannel`
method. This can be used by a caller to express that certain parameters
of the funding flow have already been negotiated outside the protocol,
and should be used instead. For example, a shim can be provided to use a
particular key for the commitment key (ideally cold) rather than use one
this is generated by the wallet as normal, or signal that signing will
be carried out in an interactive manner (PSBT based).
Next, we add a brand new method: `FundingStateStep`. FundingStateStep is
an advanced funding related call that allows the caller to either
execute some preparatory steps for a funding workflow, or manually
progress a funding workflow. The primary way a funding flow is
identified is via its pending channel ID. As an example, this method can
be used to specify that we're expecting a funding flow for a particular
pending channel ID, for which we need to use specific parameters.
Alternatively, this can be used to interactively drive PSBT signing for
funding for partially complete funding transactions.
The new transition methods (funding state machine modifiers) in this
commit allow a party to register a funding intent that should be used
for a specified incoming pending channel ID. The "responder" to the
external channel flow should use this to prep lnd to be able to handle
the channel flow properly.
2019-11-14 07:54:34 +03:00
"lnrpcKeyDescriptor" : {
"type" : "object" ,
"properties" : {
"raw_key_bytes" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "The raw bytes of the key being identified."
lnrpc: add ability to provide chan point shims for funding, new funding modifiers
In this commit, we start to expose some of the new external funding
functionality over the RPC interface.
First, we add a new `funding_shim` field to the regular `OpenChannel`
method. This can be used by a caller to express that certain parameters
of the funding flow have already been negotiated outside the protocol,
and should be used instead. For example, a shim can be provided to use a
particular key for the commitment key (ideally cold) rather than use one
this is generated by the wallet as normal, or signal that signing will
be carried out in an interactive manner (PSBT based).
Next, we add a brand new method: `FundingStateStep`. FundingStateStep is
an advanced funding related call that allows the caller to either
execute some preparatory steps for a funding workflow, or manually
progress a funding workflow. The primary way a funding flow is
identified is via its pending channel ID. As an example, this method can
be used to specify that we're expecting a funding flow for a particular
pending channel ID, for which we need to use specific parameters.
Alternatively, this can be used to interactively drive PSBT signing for
funding for partially complete funding transactions.
The new transition methods (funding state machine modifiers) in this
commit allow a party to register a funding intent that should be used
for a specified incoming pending channel ID. The "responder" to the
external channel flow should use this to prep lnd to be able to handle
the channel flow properly.
2019-11-14 07:54:34 +03:00
} ,
"key_loc" : {
"$ref" : "#/definitions/lnrpcKeyLocator" ,
2020-05-06 17:51:14 +03:00
"description" : "The key locator that identifies which key to use for signing."
lnrpc: add ability to provide chan point shims for funding, new funding modifiers
In this commit, we start to expose some of the new external funding
functionality over the RPC interface.
First, we add a new `funding_shim` field to the regular `OpenChannel`
method. This can be used by a caller to express that certain parameters
of the funding flow have already been negotiated outside the protocol,
and should be used instead. For example, a shim can be provided to use a
particular key for the commitment key (ideally cold) rather than use one
this is generated by the wallet as normal, or signal that signing will
be carried out in an interactive manner (PSBT based).
Next, we add a brand new method: `FundingStateStep`. FundingStateStep is
an advanced funding related call that allows the caller to either
execute some preparatory steps for a funding workflow, or manually
progress a funding workflow. The primary way a funding flow is
identified is via its pending channel ID. As an example, this method can
be used to specify that we're expecting a funding flow for a particular
pending channel ID, for which we need to use specific parameters.
Alternatively, this can be used to interactively drive PSBT signing for
funding for partially complete funding transactions.
The new transition methods (funding state machine modifiers) in this
commit allow a party to register a funding intent that should be used
for a specified incoming pending channel ID. The "responder" to the
external channel flow should use this to prep lnd to be able to handle
the channel flow properly.
2019-11-14 07:54:34 +03:00
}
}
} ,
"lnrpcKeyLocator" : {
"type" : "object" ,
"properties" : {
"key_family" : {
"type" : "integer" ,
"format" : "int32" ,
2020-05-06 17:51:14 +03:00
"description" : "The family of key being identified."
lnrpc: add ability to provide chan point shims for funding, new funding modifiers
In this commit, we start to expose some of the new external funding
functionality over the RPC interface.
First, we add a new `funding_shim` field to the regular `OpenChannel`
method. This can be used by a caller to express that certain parameters
of the funding flow have already been negotiated outside the protocol,
and should be used instead. For example, a shim can be provided to use a
particular key for the commitment key (ideally cold) rather than use one
this is generated by the wallet as normal, or signal that signing will
be carried out in an interactive manner (PSBT based).
Next, we add a brand new method: `FundingStateStep`. FundingStateStep is
an advanced funding related call that allows the caller to either
execute some preparatory steps for a funding workflow, or manually
progress a funding workflow. The primary way a funding flow is
identified is via its pending channel ID. As an example, this method can
be used to specify that we're expecting a funding flow for a particular
pending channel ID, for which we need to use specific parameters.
Alternatively, this can be used to interactively drive PSBT signing for
funding for partially complete funding transactions.
The new transition methods (funding state machine modifiers) in this
commit allow a party to register a funding intent that should be used
for a specified incoming pending channel ID. The "responder" to the
external channel flow should use this to prep lnd to be able to handle
the channel flow properly.
2019-11-14 07:54:34 +03:00
} ,
"key_index" : {
"type" : "integer" ,
"format" : "int32" ,
2020-05-06 17:51:14 +03:00
"description" : "The precise index of the key being identified."
lnrpc: add ability to provide chan point shims for funding, new funding modifiers
In this commit, we start to expose some of the new external funding
functionality over the RPC interface.
First, we add a new `funding_shim` field to the regular `OpenChannel`
method. This can be used by a caller to express that certain parameters
of the funding flow have already been negotiated outside the protocol,
and should be used instead. For example, a shim can be provided to use a
particular key for the commitment key (ideally cold) rather than use one
this is generated by the wallet as normal, or signal that signing will
be carried out in an interactive manner (PSBT based).
Next, we add a brand new method: `FundingStateStep`. FundingStateStep is
an advanced funding related call that allows the caller to either
execute some preparatory steps for a funding workflow, or manually
progress a funding workflow. The primary way a funding flow is
identified is via its pending channel ID. As an example, this method can
be used to specify that we're expecting a funding flow for a particular
pending channel ID, for which we need to use specific parameters.
Alternatively, this can be used to interactively drive PSBT signing for
funding for partially complete funding transactions.
The new transition methods (funding state machine modifiers) in this
commit allow a party to register a funding intent that should be used
for a specified incoming pending channel ID. The "responder" to the
external channel flow should use this to prep lnd to be able to handle
the channel flow properly.
2019-11-14 07:54:34 +03:00
}
}
} ,
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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"title" : "The network location of the lightning node, e.g. `69.69.69.69:1337` or\n`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"
2019-12-14 18:04:51 +03:00
} ,
"features" : {
2019-12-14 18:05:21 +03:00
"type" : "object" ,
"additionalProperties" : {
2019-12-14 18:04:51 +03:00
"$ref" : "#/definitions/lnrpcFeature"
}
2016-12-27 08:45:01 +03:00
}
2017-08-22 10:07:25 +03:00
} ,
2020-05-06 17:51:14 +03:00
"description" : "An 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
} ,
2020-05-06 17:51:14 +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
} ,
2020-05-06 17:51:14 +03:00
"description" : "A list of invoices from the time slice of the time series specified in the\nrequest."
2018-08-11 05:35:38 +03:00
} ,
"last_index_offset" : {
2018-09-11 04:19:06 +03:00
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The index of the last item in the set of returned invoices. This can be used\nto seek further, pagination style."
2018-09-11 04:19:06 +03:00
} ,
"first_index_offset" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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
}
}
} ,
2020-07-23 19:36:42 +03:00
"lnrpcListMacaroonIDsResponse" : {
"type" : "object" ,
"properties" : {
"root_key_ids" : {
"type" : "array" ,
"items" : {
"type" : "string" ,
"format" : "uint64"
} ,
"description" : "The list of root key IDs that are in use."
}
}
} ,
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
} ,
2020-05-06 17:51:14 +03:00
"title" : "The list of payments"
2020-01-17 09:35:03 +03:00
} ,
"first_index_offset" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The index of the first item in the set of returned payments. This can be\nused as the index_offset to continue seeking backwards in the next request."
2020-01-17 09:35:03 +03:00
} ,
"last_index_offset" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The index of the last item in the set of returned payments. This can be used\nas the index_offset to continue seeking forwards in the next request."
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
} ,
2020-05-06 17:51:14 +03:00
"title" : "The list of currently connected peers"
2016-10-16 00:38:47 +03:00
}
}
} ,
2020-09-04 10:22:38 +03:00
"lnrpcListPermissionsResponse" : {
"type" : "object" ,
"properties" : {
"method_permissions" : {
"type" : "object" ,
"additionalProperties" : {
"$ref" : "#/definitions/lnrpcMacaroonPermissionList"
} ,
"description" : "A map between all RPC method URIs and their required macaroon permissions to\naccess them."
}
}
} ,
2018-09-27 16:49:44 +03:00
"lnrpcListUnspentResponse" : {
"type" : "object" ,
"properties" : {
"utxos" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcUtxo"
} ,
2020-05-06 17:51:14 +03:00
"title" : "A list of utxos"
2018-09-27 16:49:44 +03:00
}
}
} ,
2019-11-05 02:11:07 +03:00
"lnrpcMPPRecord" : {
"type" : "object" ,
"properties" : {
"payment_addr" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "A unique, random identifier used to authenticate the sender as the intended\npayer of a multi-path payment. The payment_addr must be the same for all\nsubpayments, and match the payment_addr provided in the receiver's invoice.\nThe same payment_addr must be used on all subpayments."
2019-11-05 02:11:07 +03:00
} ,
"total_amt_msat" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The total amount in milli-satoshis being sent as part of a larger multi-path\npayment. The caller is responsible for ensuring subpayments to the same node\nand payment_hash sum exactly to total_amt_msat. The same\ntotal_amt_msat must be used on all subpayments."
2019-11-05 02:11:07 +03:00
}
}
} ,
2019-10-23 14:28:17 +03:00
"lnrpcMacaroonPermission" : {
"type" : "object" ,
"properties" : {
"entity" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "The entity a permission grants access to."
2019-10-23 14:28:17 +03:00
} ,
"action" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "The action that is granted."
2019-10-23 14:28:17 +03:00
}
}
} ,
2020-09-04 10:22:38 +03:00
"lnrpcMacaroonPermissionList" : {
"type" : "object" ,
"properties" : {
"permissions" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcMacaroonPermission"
} ,
"description" : "A list of macaroon permissions."
}
}
} ,
2018-12-10 06:57:57 +03:00
"lnrpcMultiChanBackup" : {
"type" : "object" ,
"properties" : {
"chan_points" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcChannelPoint"
} ,
2020-05-06 17:51:14 +03:00
"description" : "Is the set of all channels that are included in this multi-channel backup."
2018-12-10 06:57:57 +03:00
} ,
"multi_chan_backup" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "A single encrypted blob containing all the static channel backups of the\nchannel listed above. This can be stored as a single file or blob, and\nsafely be replaced with any prior/future versions. When using REST, this\nfield must be encoded as base64."
2018-12-10 06:57:57 +03:00
}
}
} ,
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"
2019-03-27 17:04:15 +03:00
} ,
"median_channel_size_sat" : {
"type" : "string" ,
"format" : "int64"
2019-07-16 02:48:59 +03:00
} ,
"num_zombie_chans" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "The number of edges marked as zombies."
2016-12-27 08:45:01 +03:00
}
}
} ,
2016-10-16 00:38:47 +03:00
"lnrpcNewAddressResponse" : {
"type" : "object" ,
"properties" : {
"address" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"description" : "An 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" ,
2018-12-10 18:37:08 +03:00
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The total number of channels for the node."
2016-12-27 08:45:01 +03:00
} ,
"total_capacity" : {
"type" : "string" ,
2018-12-10 18:37:08 +03:00
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The sum of all channels capacity for the node, denominated in satoshis."
2018-12-10 18:37:08 +03:00
} ,
"channels" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcChannelEdge"
} ,
2020-05-06 17:51:14 +03:00
"description" : "A list of all public channels for the node."
2016-12-27 08:45:01 +03:00
}
}
} ,
2020-03-19 13:14:28 +03:00
"lnrpcNodeMetricType" : {
"type" : "string" ,
"enum" : [
2020-03-28 18:14:26 +03:00
"UNKNOWN" ,
2020-03-19 13:14:28 +03:00
"BETWEENNESS_CENTRALITY"
] ,
2020-03-28 18:14:26 +03:00
"default" : "UNKNOWN"
2020-03-19 13:14:28 +03:00
} ,
"lnrpcNodeMetricsResponse" : {
"type" : "object" ,
"properties" : {
"betweenness_centrality" : {
"type" : "object" ,
"additionalProperties" : {
2020-03-28 18:14:26 +03:00
"$ref" : "#/definitions/lnrpcFloatMetric"
2020-03-19 13:14:28 +03:00
} ,
2020-05-06 17:51:14 +03:00
"description" : "Betweenness centrality is the sum of the ratio of shortest paths that pass\nthrough the node for each pair of nodes in the graph (not counting paths\nstarting or ending at this node).\nMap of node pubkey to betweenness centrality of the node. Normalized\nvalues are in the [0,1] closed interval."
2020-03-19 13:14:28 +03:00
}
}
} ,
2019-10-30 12:53:21 +03:00
"lnrpcNodePair" : {
"type" : "object" ,
"properties" : {
"from" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "The sending node of the pair. When using REST, this field must be encoded as\nbase64."
2019-10-30 12:53:21 +03:00
} ,
"to" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "The receiving node of the pair. When using REST, this field must be encoded\nas base64."
2019-10-30 12:53:21 +03:00
}
}
} ,
2017-03-14 06:37:25 +03:00
"lnrpcNodeUpdate" : {
"type" : "object" ,
"properties" : {
"addresses" : {
"type" : "array" ,
"items" : {
"type" : "string"
}
} ,
"identity_key" : {
"type" : "string"
} ,
"global_features" : {
"type" : "string" ,
"format" : "byte"
} ,
"alias" : {
"type" : "string"
2018-12-21 19:29:24 +03:00
} ,
"color" : {
"type" : "string"
2017-03-14 06:37:25 +03:00
}
}
} ,
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" ,
2020-05-06 17:51:14 +03:00
"description" : "The pubkey of the node to open a channel with. When using REST, this field\nmust be encoded as base64."
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" ,
2020-05-06 17:51:14 +03:00
"description" : "The hex encoded pubkey of the node to open a channel with. Deprecated now\nthat the REST gateway supports base64 encoding of bytes fields."
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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"title" : "The number of satoshis to push to the remote side as part of the initial\ncommitment state"
2017-11-23 22:40:14 +03:00
} ,
"target_conf" : {
"type" : "integer" ,
"format" : "int32" ,
2020-05-06 17:51:14 +03:00
"description" : "The target number of blocks that the funding transaction should be\nconfirmed by."
2017-11-23 22:40:14 +03:00
} ,
"sat_per_byte" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "A manual fee rate set in sat/byte that should be used when crafting the\nfunding transaction."
2017-11-14 02:47:33 +03:00
} ,
"private" : {
"type" : "boolean" ,
"format" : "boolean" ,
2020-05-06 17:51:14 +03:00
"description" : "Whether this channel should be private, not announced to the greater\nnetwork."
2017-12-17 01:58:08 +03:00
} ,
"min_htlc_msat" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The minimum value in millisatoshi we will require for incoming HTLCs on\nthe channel."
2018-03-14 16:12:24 +03:00
} ,
"remote_csv_delay" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The delay we require on the remote's commitment transaction. If this is\nnot set, it will be scaled automatically with the channel size."
2018-08-10 05:37:32 +03:00
} ,
"min_confs" : {
"type" : "integer" ,
"format" : "int32" ,
2020-05-06 17:51:14 +03:00
"description" : "The minimum number of confirmations each one of your outputs used for\nthe funding transaction must satisfy."
2018-10-17 02:44:26 +03:00
} ,
"spend_unconfirmed" : {
"type" : "boolean" ,
"format" : "boolean" ,
2020-05-06 17:51:14 +03:00
"description" : "Whether unconfirmed outputs should be used as inputs for the funding\ntransaction."
2019-12-17 22:58:28 +03:00
} ,
"close_address" : {
"type" : "string" ,
"description" : "Close address is an optional address which specifies the address to which\nfunds should be paid out to upon cooperative close. This field may only be\nset if the peer supports the option upfront feature bit (call listpeers\nto check). The remote peer will only accept cooperative closes to this\naddress if it is set.\n\nNote: If this value is set on channel creation, you will *not* be able to\ncooperatively close out to a different address."
lnrpc: add ability to provide chan point shims for funding, new funding modifiers
In this commit, we start to expose some of the new external funding
functionality over the RPC interface.
First, we add a new `funding_shim` field to the regular `OpenChannel`
method. This can be used by a caller to express that certain parameters
of the funding flow have already been negotiated outside the protocol,
and should be used instead. For example, a shim can be provided to use a
particular key for the commitment key (ideally cold) rather than use one
this is generated by the wallet as normal, or signal that signing will
be carried out in an interactive manner (PSBT based).
Next, we add a brand new method: `FundingStateStep`. FundingStateStep is
an advanced funding related call that allows the caller to either
execute some preparatory steps for a funding workflow, or manually
progress a funding workflow. The primary way a funding flow is
identified is via its pending channel ID. As an example, this method can
be used to specify that we're expecting a funding flow for a particular
pending channel ID, for which we need to use specific parameters.
Alternatively, this can be used to interactively drive PSBT signing for
funding for partially complete funding transactions.
The new transition methods (funding state machine modifiers) in this
commit allow a party to register a funding intent that should be used
for a specified incoming pending channel ID. The "responder" to the
external channel flow should use this to prep lnd to be able to handle
the channel flow properly.
2019-11-14 07:54:34 +03:00
} ,
"funding_shim" : {
"$ref" : "#/definitions/lnrpcFundingShim" ,
2020-05-06 17:51:14 +03:00
"description" : "Funding shims are an optional argument that allow the caller to intercept\ncertain funding functionality. For example, a shim can be provided to use a\nparticular key for the commitment key (ideally cold) rather than use one\nthat is generated by the wallet as normal, or signal that signing will be\ncarried out in an interactive manner (PSBT based)."
2018-08-30 00:43:13 +03:00
} ,
"remote_max_value_in_flight_msat" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "The maximum amount of coins in millisatoshi that can be pending within\nthe channel. It only applies to the remote party."
2020-08-13 01:46:08 +03:00
} ,
"remote_max_htlcs" : {
"type" : "integer" ,
"format" : "int64" ,
"description" : "The maximum number of concurrent HTLCs we will allow the remote party to add\nto the commitment transaction."
2017-01-13 06:40:38 +03:00
}
}
} ,
"lnrpcOpenStatusUpdate" : {
"type" : "object" ,
"properties" : {
"chan_pending" : {
2020-03-31 10:13:13 +03:00
"$ref" : "#/definitions/lnrpcPendingUpdate" ,
2020-05-06 17:51:14 +03:00
"description" : "Signals that the channel is now fully negotiated and the funding\ntransaction published."
2017-01-13 06:40:38 +03:00
} ,
"chan_open" : {
2020-03-31 10:13:13 +03:00
"$ref" : "#/definitions/lnrpcChannelOpenUpdate" ,
2020-05-06 17:51:14 +03:00
"description" : "Signals that the channel's funding transaction has now reached the\nrequired number of confirmations on chain and can be used."
2020-03-31 10:13:13 +03:00
} ,
"psbt_fund" : {
"$ref" : "#/definitions/lnrpcReadyForPsbtFunding" ,
2020-05-06 17:51:14 +03:00
"description" : "Signals that the funding process has been suspended and the construction\nof a PSBT that funds the channel PK script is now required."
lnrpc: add ability to provide chan point shims for funding, new funding modifiers
In this commit, we start to expose some of the new external funding
functionality over the RPC interface.
First, we add a new `funding_shim` field to the regular `OpenChannel`
method. This can be used by a caller to express that certain parameters
of the funding flow have already been negotiated outside the protocol,
and should be used instead. For example, a shim can be provided to use a
particular key for the commitment key (ideally cold) rather than use one
this is generated by the wallet as normal, or signal that signing will
be carried out in an interactive manner (PSBT based).
Next, we add a brand new method: `FundingStateStep`. FundingStateStep is
an advanced funding related call that allows the caller to either
execute some preparatory steps for a funding workflow, or manually
progress a funding workflow. The primary way a funding flow is
identified is via its pending channel ID. As an example, this method can
be used to specify that we're expecting a funding flow for a particular
pending channel ID, for which we need to use specific parameters.
Alternatively, this can be used to interactively drive PSBT signing for
funding for partially complete funding transactions.
The new transition methods (funding state machine modifiers) in this
commit allow a party to register a funding intent that should be used
for a specified incoming pending channel ID. The "responder" to the
external channel flow should use this to prep lnd to be able to handle
the channel flow properly.
2019-11-14 07:54:34 +03:00
} ,
"pending_chan_id" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "The pending channel ID of the created channel. This value may be used to\nfurther the funding flow manually via the FundingStateStep method."
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" ,
2020-05-06 17:51:14 +03:00
"description" : "Raw bytes representing the transaction id."
2019-02-02 05:01:51 +03:00
} ,
"txid_str" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "Reversed, hex-encoded string representing the transaction id."
2019-02-02 05:01:51 +03:00
} ,
"output_index" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The index of the output on the transaction."
2019-02-02 05:01:51 +03:00
}
}
} ,
2017-01-18 00:24:55 +03:00
"lnrpcPayReq" : {
"type" : "object" ,
"properties" : {
"destination" : {
2017-02-28 06:03:43 +03:00
"type" : "string"
2017-01-18 00:24:55 +03:00
} ,
"payment_hash" : {
2017-02-28 06:03:43 +03:00
"type" : "string"
2017-01-13 06:40:38 +03:00
} ,
"num_satoshis" : {
"type" : "string" ,
"format" : "int64"
2017-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"
}
2019-12-05 18:59:47 +03:00
} ,
"payment_addr" : {
"type" : "string" ,
"format" : "byte"
2019-12-07 02:48:30 +03:00
} ,
"num_msat" : {
"type" : "string" ,
"format" : "int64"
2019-12-11 00:09:17 +03:00
} ,
"features" : {
2019-12-14 18:05:21 +03:00
"type" : "object" ,
"additionalProperties" : {
2019-12-11 00:09:17 +03:00
"$ref" : "#/definitions/lnrpcFeature"
}
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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +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" ,
2020-05-06 17:51:14 +03:00
"title" : "Deprecated, use creation_time_ns"
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" ,
2020-05-06 17:51:14 +03:00
"description" : "Deprecated, use fee_sat or fee_msat."
2017-12-14 04:04:18 +03:00
} ,
"payment_preimage" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"title" : "The payment preimage"
2018-09-16 15:43:20 +03:00
} ,
"value_sat" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"title" : "The value of the payment in satoshis"
2018-09-16 15:43:20 +03:00
} ,
"value_msat" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"title" : "The value of the payment in milli-satoshis"
2019-05-30 02:30:51 +03:00
} ,
"payment_request" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "The optional payment request being fulfilled."
2019-06-11 15:48:47 +03:00
} ,
"status" : {
"$ref" : "#/definitions/PaymentPaymentStatus" ,
"description" : "The status of the payment."
2019-07-09 00:38:44 +03:00
} ,
"fee_sat" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"title" : "The fee paid for this payment in satoshis"
2019-07-09 00:38:44 +03:00
} ,
"fee_msat" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"title" : "The fee paid for this payment in milli-satoshis"
2019-11-20 07:41:27 +03:00
} ,
"creation_time_ns" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The time in UNIX nanoseconds at which the payment was created."
2019-11-20 07:41:27 +03:00
} ,
"htlcs" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcHTLCAttempt"
} ,
2020-05-06 17:51:14 +03:00
"description" : "The HTLCs made in attempt to settle the payment."
2020-01-17 09:35:03 +03:00
} ,
"payment_index" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The creation index of this payment. Each payment can be uniquely identified\nby this index, which may not strictly increment by 1 for payments made in\nolder versions of lnd."
2020-04-06 12:05:25 +03:00
} ,
"failure_reason" : {
"$ref" : "#/definitions/lnrpcPaymentFailureReason"
2016-10-16 00:38:47 +03:00
}
}
} ,
2020-04-06 12:05:25 +03:00
"lnrpcPaymentFailureReason" : {
"type" : "string" ,
"enum" : [
"FAILURE_REASON_NONE" ,
"FAILURE_REASON_TIMEOUT" ,
"FAILURE_REASON_NO_ROUTE" ,
"FAILURE_REASON_ERROR" ,
"FAILURE_REASON_INCORRECT_PAYMENT_DETAILS" ,
"FAILURE_REASON_INSUFFICIENT_BALANCE"
] ,
"default" : "FAILURE_REASON_NONE" ,
2020-05-06 17:51:14 +03:00
"description" : " - FAILURE_REASON_NONE: Payment isn't failed (yet).\n - FAILURE_REASON_TIMEOUT: There are more routes to try, but the payment timeout was exceeded.\n - FAILURE_REASON_NO_ROUTE: All possible routes were tried and failed permanently. Or were no\nroutes to the destination at all.\n - FAILURE_REASON_ERROR: A non-recoverable error has occured.\n - FAILURE_REASON_INCORRECT_PAYMENT_DETAILS: Payment details incorrect (unknown hash, invalid amt or\ninvalid final cltv delta)\n - FAILURE_REASON_INSUFFICIENT_BALANCE: Insufficient local balance."
2020-04-06 12:05:25 +03:00
} ,
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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"title" : "Ping time to this peer"
2019-03-23 05:57:03 +03:00
} ,
"sync_type" : {
"$ref" : "#/definitions/PeerSyncType" ,
"description" : "The type of sync we are currently performing with this peer."
2019-12-14 18:05:07 +03:00
} ,
"features" : {
2019-12-14 18:05:21 +03:00
"type" : "object" ,
"additionalProperties" : {
2019-12-14 18:05:07 +03:00
"$ref" : "#/definitions/lnrpcFeature"
} ,
2020-05-06 17:51:14 +03:00
"description" : "Features advertised by the remote peer in their init message."
2020-03-13 10:15:49 +03:00
} ,
"errors" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcTimestampedError"
} ,
"description" : "The latest errors received from our peer with timestamps, limited to the 10\nmost recent errors. These errors are tracked across peer connections, but\nare not persisted across lnd restarts. Note that these errors are only\nstored for peers that we have channels open with, to prevent peers from\nspamming us with errors at no cost."
2020-08-27 10:20:46 +03:00
} ,
"flap_count" : {
"type" : "integer" ,
"format" : "int32" ,
"description" : "The number of times we have recorded this peer going offline or coming\nonline, recorded across restarts. Note that this value is decreased over\ntime if the peer has not recently flapped, so that we can forgive peers\nwith historically high flap counts."
} ,
"last_flap_ns" : {
"type" : "string" ,
"format" : "int64" ,
"description" : "The timestamp of the last flap we observed for this peer. If this value is\nzero, we have not observed any flaps for this peer."
2016-10-16 00:38:47 +03:00
}
}
} ,
2019-08-12 20:13:12 +03:00
"lnrpcPeerEvent" : {
"type" : "object" ,
"properties" : {
"pub_key" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "The identity pubkey of the peer."
2019-08-12 20:13:12 +03:00
} ,
"type" : {
"$ref" : "#/definitions/PeerEventEventType"
}
}
} ,
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" ,
2020-05-06 17:51:14 +03:00
"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
} ,
2020-05-06 17:51:14 +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
} ,
2020-03-25 09:41:00 +03:00
"description" : "Deprecated: Channels pending closing previously contained cooperatively\nclosed channels with a single confirmation. These channels are now\nconsidered closed from the time we see them on chain."
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
} ,
2020-05-06 17:51:14 +03:00
"title" : "Channels pending force closing"
2018-04-12 13:58:21 +03:00
} ,
"waiting_close_channels" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/PendingChannelsResponseWaitingCloseChannel"
} ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"title" : "The direction within the channel that the htlc was sent"
2017-11-09 06:27:45 +03:00
} ,
"amount" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"title" : "The total value of the htlc"
2017-11-09 06:27:45 +03:00
} ,
"outpoint" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"title" : "The final output to be swept back to the user's wallet"
2017-11-09 06:27:45 +03:00
} ,
"maturity_height" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"title" : "The next block height at which we can spend the current stage"
2017-11-09 06:27:45 +03:00
} ,
"blocks_til_maturity" : {
"type" : "integer" ,
"format" : "int32" ,
2020-05-06 17:51:14 +03:00
"description" : "The number of blocks remaining until the current stage can be swept.\nNegative values indicate how many blocks have passed since becoming\nmature."
2017-11-09 06:27:45 +03:00
} ,
"stage" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"title" : "Indicates whether the htlc is in its first or second stage of recovery"
2017-11-09 06:27:45 +03:00
}
}
} ,
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" ,
2020-05-06 17:51:14 +03:00
"description" : "If set, then this update applies to all currently active channels."
2017-12-16 00:11:23 +03:00
} ,
"chan_point" : {
"$ref" : "#/definitions/lnrpcChannelPoint" ,
2020-05-06 17:51:14 +03:00
"description" : "If set, this update will target a specific channel."
2017-12-16 00:11:23 +03:00
} ,
"base_fee_msat" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The base fee charged regardless of the number of milli-satoshis sent."
2017-12-16 00:11:23 +03:00
} ,
"fee_rate" : {
"type" : "number" ,
"format" : "double" ,
2020-05-06 17:51:14 +03:00
"description" : "The effective fee rate in milli-satoshis. The precision of this value\ngoes up to 6 decimal places, so 1e-6."
2017-12-16 00:11:23 +03:00
} ,
"time_lock_delta" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The required timelock delta for HTLCs forwarded over the channel."
2019-08-20 03:55:30 +03:00
} ,
"max_htlc_msat" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "If set, the maximum HTLC size in milli-satoshis. If unset, the maximum\nHTLC will be unchanged."
2019-11-15 13:24:58 +03:00
} ,
"min_htlc_msat" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The minimum HTLC size in milli-satoshis. Only applied if\nmin_htlc_msat_specified is true."
2019-11-15 13:24:58 +03:00
} ,
"min_htlc_msat_specified" : {
"type" : "boolean" ,
"format" : "boolean" ,
2020-05-06 17:51:14 +03:00
"description" : "If true, min_htlc_msat is applied."
2017-12-16 00:11:23 +03:00
}
}
} ,
"lnrpcPolicyUpdateResponse" : {
"type" : "object"
} ,
2020-03-31 10:13:13 +03:00
"lnrpcPsbtShim" : {
"type" : "object" ,
"properties" : {
"pending_chan_id" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "A unique identifier of 32 random bytes that will be used as the pending\nchannel ID to identify the PSBT state machine when interacting with it and\non the wire protocol to initiate the funding request."
2020-03-31 10:13:13 +03:00
} ,
"base_psbt" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "An optional base PSBT the new channel output will be added to. If this is\nnon-empty, it must be a binary serialized PSBT."
2020-07-09 03:12:41 +03:00
} ,
"no_publish" : {
"type" : "boolean" ,
"format" : "boolean" ,
"description" : "If a channel should be part of a batch (multiple channel openings in one\ntransaction), it can be dangerous if the whole batch transaction is\npublished too early before all channel opening negotiations are completed.\nThis flag prevents this particular channel from broadcasting the transaction\nafter the negotiation with the remote peer. In a batch of channel openings\nthis flag should be set to true for every channel but the very last."
2020-03-31 10:13:13 +03:00
}
}
} ,
2017-03-21 05:01:32 +03:00
"lnrpcQueryRoutesResponse" : {
"type" : "object" ,
"properties" : {
"routes" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcRoute"
2019-09-03 09:58:14 +03:00
} ,
2020-05-06 17:51:14 +03:00
"description" : "The route that results from the path finding operation. This is still a\nrepeated field to retain backwards compatibility."
2019-09-03 09:58:14 +03:00
} ,
"success_prob" : {
"type" : "number" ,
"format" : "double" ,
2020-05-06 17:51:14 +03:00
"title" : "The success probability of the returned route based on the current mission\ncontrol state. [EXPERIMENTAL]"
2017-03-21 05:01:32 +03:00
}
}
} ,
2020-03-31 10:13:13 +03:00
"lnrpcReadyForPsbtFunding" : {
"type" : "object" ,
"properties" : {
"funding_address" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "The P2WSH address of the channel funding multisig address that the below\nspecified amount in satoshis needs to be sent to."
2020-03-31 10:13:13 +03:00
} ,
"funding_amount" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The exact amount in satoshis that needs to be sent to the above address to\nfund the pending channel."
2020-03-31 10:13:13 +03:00
} ,
"psbt" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "A raw PSBT that contains the pending channel output. If a base PSBT was\nprovided in the PsbtShim, this is the base PSBT with one additional output.\nIf no base PSBT was specified, this is an otherwise empty PSBT with exactly\none output."
2020-03-31 10:13:13 +03:00
}
}
} ,
2020-07-07 11:32:12 +03:00
"lnrpcResolution" : {
"type" : "object" ,
"properties" : {
"resolution_type" : {
"$ref" : "#/definitions/lnrpcResolutionType" ,
"description" : "The type of output we are resolving."
} ,
"outcome" : {
"$ref" : "#/definitions/lnrpcResolutionOutcome" ,
"description" : "The outcome of our on chain action that resolved the outpoint."
} ,
"outpoint" : {
"$ref" : "#/definitions/lnrpcOutPoint" ,
"description" : "The outpoint that was spent by the resolution."
} ,
"amount_sat" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "The amount that was claimed by the resolution."
} ,
"sweep_txid" : {
"type" : "string" ,
"description" : "The hex-encoded transaction ID of the sweep transaction that spent the\noutput."
}
}
} ,
"lnrpcResolutionOutcome" : {
"type" : "string" ,
"enum" : [
"OUTCOME_UNKNOWN" ,
"CLAIMED" ,
"UNCLAIMED" ,
"ABANDONED" ,
"FIRST_STAGE" ,
"TIMEOUT"
] ,
"default" : "OUTCOME_UNKNOWN" ,
"description" : " - OUTCOME_UNKNOWN: Outcome unknown.\n - CLAIMED: An output was claimed on chain.\n - UNCLAIMED: An output was left unclaimed on chain.\n - ABANDONED: ResolverOutcomeAbandoned indicates that an output that we did not\nclaim on chain, for example an anchor that we did not sweep and a\nthird party claimed on chain, or a htlc that we could not decode\nso left unclaimed.\n - FIRST_STAGE: If we force closed our channel, our htlcs need to be claimed in two\nstages. This outcome represents the broadcast of a timeout or success\ntransaction for this two stage htlc claim.\n - TIMEOUT: A htlc was timed out on chain."
} ,
"lnrpcResolutionType" : {
"type" : "string" ,
"enum" : [
"TYPE_UNKNOWN" ,
"ANCHOR" ,
"INCOMING_HTLC" ,
"OUTGOING_HTLC" ,
"COMMIT"
] ,
"default" : "TYPE_UNKNOWN" ,
"description" : " - ANCHOR: We resolved an anchor output.\n - INCOMING_HTLC: We are resolving an incoming htlc on chain. This if this htlc is\nclaimed, we swept the incoming htlc with the preimage. If it is timed\nout, our peer swept the timeout path.\n - OUTGOING_HTLC: We are resolving an outgoing htlc on chain. If this htlc is claimed,\nthe remote party swept the htlc with the preimage. If it is timed out,\nwe swept it with the timeout path.\n - COMMIT: We force closed and need to sweep our time locked commitment output."
} ,
2018-12-10 06:57:57 +03:00
"lnrpcRestoreBackupResponse" : {
"type" : "object"
} ,
2019-04-03 06:46:27 +03:00
"lnrpcRestoreChanBackupRequest" : {
"type" : "object" ,
"properties" : {
"chan_backups" : {
2019-11-01 11:45:02 +03:00
"$ref" : "#/definitions/lnrpcChannelBackups" ,
2020-05-06 17:51:14 +03:00
"description" : "The channels to restore as a list of channel/backup pairs."
2019-04-03 06:46:27 +03:00
} ,
"multi_chan_backup" : {
"type" : "string" ,
2019-11-01 11:45:02 +03:00
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "The channels to restore in the packed multi backup format. When using\nREST, this field must be encoded as base64."
2019-04-03 06:46:27 +03:00
}
}
} ,
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" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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\nto ourselves."
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" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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
} ,
2020-05-06 17:51:14 +03:00
"description" : "Contains details concerning the specific forwarding details at each hop."
2018-04-12 11:34:31 +03:00
} ,
"total_fees_msat" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The total fees in millisatoshis."
2018-04-12 11:34:31 +03:00
} ,
"total_amt_msat" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The total amount in millisatoshis."
2016-12-27 08:45:01 +03:00
}
2017-08-22 10:07:25 +03:00
} ,
2020-05-06 17:51:14 +03:00
"description" : "A 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"
} ,
2020-05-06 17:51:14 +03:00
"description" : "A list of hop hints that when chained together can assist in reaching a\nspecific destination."
2018-03-28 06:45:22 +03:00
}
}
} ,
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"
2018-12-09 04:43:25 +03:00
} ,
2019-02-25 18:49:39 +03:00
"max_htlc_msat" : {
2018-12-09 04:43:25 +03:00
"type" : "string" ,
"format" : "uint64"
2019-06-28 11:59:44 +03:00
} ,
"last_update" : {
"type" : "integer" ,
"format" : "int64"
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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"title" : "The amount in satoshis to send"
2017-11-23 22:40:14 +03:00
} ,
"target_conf" : {
"type" : "integer" ,
"format" : "int32" ,
2020-05-06 17:51:14 +03:00
"description" : "The target number of blocks that this transaction should be confirmed\nby."
2017-11-23 22:40:14 +03:00
} ,
"sat_per_byte" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "A manual fee rate set in sat/byte that should be used when crafting the\ntransaction."
2018-11-18 08:07:48 +03:00
} ,
"send_all" : {
"type" : "boolean" ,
"format" : "boolean" ,
2020-05-06 17:51:14 +03:00
"description" : "If 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."
2020-05-18 15:13:24 +03:00
} ,
"label" : {
"type" : "string" ,
"description" : "An optional label for the transaction, limited to 500 characters."
2016-10-16 00:38:47 +03:00
}
}
} ,
"lnrpcSendCoinsResponse" : {
"type" : "object" ,
"properties" : {
"txid" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"title" : "The transaction ID of the transaction"
2017-01-13 06:40:38 +03:00
}
}
} ,
2020-05-28 14:07:31 +03:00
"lnrpcSendManyRequest" : {
"type" : "object" ,
"properties" : {
"AddrToAmount" : {
"type" : "object" ,
"additionalProperties" : {
"type" : "string" ,
"format" : "int64"
} ,
"title" : "The map from addresses to amounts"
} ,
"target_conf" : {
"type" : "integer" ,
"format" : "int32" ,
"description" : "The target number of blocks that this transaction should be confirmed\nby."
} ,
"sat_per_byte" : {
"type" : "string" ,
"format" : "int64" ,
"description" : "A manual fee rate set in sat/byte that should be used when crafting the\ntransaction."
} ,
"label" : {
"type" : "string" ,
"description" : "An optional label for the transaction, limited to 500 characters."
}
}
} ,
2017-01-13 06:40:38 +03:00
"lnrpcSendManyResponse" : {
"type" : "object" ,
"properties" : {
"txid" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"description" : "The identity pubkey of the payment recipient. When using REST, this field\nmust be encoded as base64."
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" ,
2020-05-06 17:51:14 +03:00
"description" : "The hex-encoded identity pubkey of the payment recipient. Deprecated now\nthat the REST gateway supports base64 encoding of bytes fields."
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" ,
2020-05-06 17:51:14 +03:00
"description" : "The amount to send expressed in satoshis.\n\nThe fields amt and amt_msat are mutually exclusive."
2019-11-11 18:44:08 +03:00
} ,
"amt_msat" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "The amount to send expressed in millisatoshis.\n\nThe fields amt and amt_msat are mutually exclusive."
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" ,
2020-05-06 17:51:14 +03:00
"description" : "The hash to use within the payment's HTLC. When using REST, this field\nmust be encoded as base64."
2016-11-11 04:33:24 +03:00
} ,
"payment_hash_string" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "The hex-encoded hash to use within the payment's HTLC. Deprecated now\nthat the REST gateway supports base64 encoding of bytes fields."
2017-01-03 02:31:38 +03:00
} ,
"payment_request" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "A 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" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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" ,
2020-05-06 17:51:14 +03:00
"description" : "The 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."
2019-02-01 15:53:27 +03:00
} ,
"outgoing_chan_id" : {
"type" : "string" ,
"format" : "uint64" ,
2020-05-06 17:51:14 +03:00
"description" : "The channel id of the channel that must be taken to the first hop. If zero,\nany channel may be used."
2018-11-04 13:11:48 +03:00
} ,
2019-11-18 14:08:42 +03:00
"last_hop_pubkey" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "The pubkey of the last hop of the route. If empty, any hop may be used."
2019-11-18 14:08:42 +03:00
} ,
2018-11-04 13:11:48 +03:00
"cltv_limit" : {
"type" : "integer" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"description" : "An optional maximum total time lock for the route. This should not exceed\nlnd's `--max-cltv-expiry` setting. If zero, then the value of\n`--max-cltv-expiry` is enforced."
2019-07-31 07:44:02 +03:00
} ,
2019-11-20 14:00:25 +03:00
"dest_custom_records" : {
2019-07-31 07:44:02 +03:00
"type" : "object" ,
"additionalProperties" : {
"type" : "string" ,
"format" : "byte"
} ,
2020-05-06 17:51:14 +03:00
"description" : "An optional field that can be used to pass an arbitrary set of TLV records\nto a peer which understands the new records. This can be used to pass\napplication specific data during the payment attempt. Record types are\nrequired to be in the custom range \u003e= 65536. When using REST, the values\nmust be encoded as base64."
2019-11-25 16:13:21 +03:00
} ,
"allow_self_payment" : {
"type" : "boolean" ,
"format" : "boolean" ,
2020-05-06 17:51:14 +03:00
"description" : "If set, circular payments to self are permitted."
2019-12-19 10:57:23 +03:00
} ,
"dest_features" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/lnrpcFeatureBit"
} ,
2020-05-06 17:51:14 +03:00
"description" : "Features assumed to be supported by the final node. All transitive feature\ndependencies must also be set properly. For a given feature bit pair, either\noptional or remote may be set, but not both. If this field is nil or empty,\nthe router will try to load destination features from the graph as a\nfallback."
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" ,
2020-05-06 17:51:14 +03:00
"description" : "The payment hash to use for the HTLC. When using REST, this field must be\nencoded as base64."
2018-01-25 08:08:46 +03:00
} ,
"payment_hash_string" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "An optional hex-encoded payment hash to be used for the HTLC. Deprecated now\nthat the REST gateway supports base64 encoding of bytes fields."
2018-01-25 08:08:46 +03:00
} ,
2019-01-21 14:54:08 +03:00
"route" : {
"$ref" : "#/definitions/lnrpcRoute" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"description" : "The message to be signed. When using REST, this field must be encoded as\nbase64."
2018-11-12 20:55:14 +03:00
}
}
} ,
2017-04-20 05:28:10 +03:00
"lnrpcSignMessageResponse" : {
"type" : "object" ,
"properties" : {
"signature" : {
2017-08-22 10:07:25 +03:00
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"title" : "The signature for the given message"
2017-04-20 05:28:10 +03:00
}
}
} ,
2020-05-28 14:07:31 +03:00
"lnrpcStopRequest" : {
"type" : "object"
} ,
2017-05-12 00:55:56 +03:00
"lnrpcStopResponse" : {
"type" : "object"
} ,
2020-03-13 10:15:49 +03:00
"lnrpcTimestampedError" : {
"type" : "object" ,
"properties" : {
"timestamp" : {
"type" : "string" ,
"format" : "uint64" ,
"description" : "The unix timestamp in seconds when the error occurred."
} ,
"error" : {
"type" : "string" ,
"description" : "The string representation of the error sent by our peer."
}
}
} ,
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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"title" : "Fees paid for this transaction"
2017-12-06 20:19:07 +03:00
} ,
"dest_addresses" : {
"type" : "array" ,
"items" : {
"type" : "string"
} ,
2020-05-06 17:51:14 +03:00
"title" : "Addresses that received funds for this transaction"
2019-06-07 17:37:28 +03:00
} ,
"raw_tx_hex" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"description" : "The raw transaction hex."
2020-05-18 15:13:24 +03:00
} ,
"label" : {
"type" : "string" ,
"description" : "A label that was optionally set on transaction broadcast."
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
} ,
2020-05-06 17:51:14 +03:00
"description" : "The list of transactions relevant to the wallet."
2017-04-20 05:28:10 +03:00
}
}
} ,
2018-09-27 16:49:44 +03:00
"lnrpcUtxo" : {
"type" : "object" ,
"properties" : {
2020-02-12 18:13:07 +03:00
"address_type" : {
2018-09-27 16:49:44 +03:00
"$ref" : "#/definitions/lnrpcAddressType" ,
2020-05-06 17:51:14 +03:00
"title" : "The type of address"
2018-09-27 16:49:44 +03:00
} ,
"address" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"title" : "The address"
2018-09-27 16:49:44 +03:00
} ,
"amount_sat" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"title" : "The value of the unspent coin in satoshis"
2018-09-27 16:49:44 +03:00
} ,
2019-02-12 00:02:25 +03:00
"pk_script" : {
2018-09-27 16:49:44 +03:00
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"title" : "The pkscript in hex"
2018-09-27 16:49:44 +03:00
} ,
"outpoint" : {
2019-02-02 05:01:51 +03:00
"$ref" : "#/definitions/lnrpcOutPoint" ,
2020-05-06 17:51:14 +03:00
"title" : "The outpoint in format txid:n"
2018-09-27 16:49:44 +03:00
} ,
"confirmations" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"title" : "The number of confirmations for the Utxo"
2018-09-27 16:49:44 +03:00
}
}
} ,
2019-03-11 03:53:53 +03:00
"lnrpcVerifyChanBackupResponse" : {
2019-04-05 01:52:31 +03:00
"type" : "object"
2019-03-11 03:53:53 +03:00
} ,
2018-11-12 20:55:14 +03:00
"lnrpcVerifyMessageRequest" : {
"type" : "object" ,
"properties" : {
"msg" : {
"type" : "string" ,
"format" : "byte" ,
2020-05-06 17:51:14 +03:00
"description" : "The message over which the signature is to be verified. When using REST,\nthis field must be encoded as base64."
2018-11-12 20:55:14 +03:00
} ,
"signature" : {
"type" : "string" ,
2020-05-06 17:51:14 +03:00
"title" : "The signature to be verified over the given message"
2018-11-12 20:55:14 +03:00
}
}
} ,
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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"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" ,
2020-05-06 17:51:14 +03:00
"title" : "The balance of the wallet"
2017-11-26 16:07:55 +03:00
} ,
"confirmed_balance" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"title" : "The confirmed balance of a wallet(with \u003e= 1 confirmations)"
2017-11-26 16:07:55 +03:00
} ,
"unconfirmed_balance" : {
"type" : "string" ,
"format" : "int64" ,
2020-05-06 17:51:14 +03:00
"title" : "The unconfirmed balance of a wallet(with 0 confirmations)"
2016-10-16 00:38:47 +03:00
}
}
2019-10-30 12:53:21 +03:00
} ,
"protobufAny" : {
"type" : "object" ,
"properties" : {
"type_url" : {
"type" : "string"
} ,
"value" : {
"type" : "string" ,
"format" : "byte"
}
}
} ,
2020-05-28 14:07:31 +03:00
"runtimeError" : {
2019-10-30 12:53:21 +03:00
"type" : "object" ,
"properties" : {
2020-05-28 14:07:31 +03:00
"error" : {
"type" : "string"
2019-10-30 12:53:21 +03:00
} ,
2020-05-28 14:07:31 +03:00
"code" : {
2019-10-30 12:53:21 +03:00
"type" : "integer" ,
"format" : "int32"
} ,
"message" : {
"type" : "string"
} ,
"details" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/protobufAny"
}
}
}
} ,
2020-05-28 14:07:31 +03:00
"runtimeStreamError" : {
2019-10-30 12:53:21 +03:00
"type" : "object" ,
"properties" : {
2020-05-28 14:07:31 +03:00
"grpc_code" : {
"type" : "integer" ,
"format" : "int32"
2019-10-30 12:53:21 +03:00
} ,
2020-05-28 14:07:31 +03:00
"http_code" : {
"type" : "integer" ,
"format" : "int32"
2019-08-12 20:13:12 +03:00
} ,
2020-05-28 14:07:31 +03:00
"message" : {
"type" : "string"
2019-10-30 12:53:21 +03:00
} ,
2020-05-28 14:07:31 +03:00
"http_status" : {
"type" : "string"
2019-10-30 12:53:21 +03:00
} ,
2020-05-28 14:07:31 +03:00
"details" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/protobufAny"
}
2019-10-30 12:53:21 +03:00
}
2020-05-28 14:07:31 +03:00
}
2016-10-16 00:38:47 +03:00
}
}
}