区块天下 区块链新闻 比特币闪电网络API手册

比特币闪电网络API手册

比特币闪电网络服务节点(Lightning Nework Daemon)的gRPC API文档,中文版由汇智网提供,访问地址:http://cw.hubwiz.com/card/c/lnd-grpc-api/

如果希望快速掌握区块链应用的开发,推荐汇智网的区块链应用开发系列教程, 内容涵盖比特币、以太坊、eos、超级账本fabric和tendermint等多种区块链,以及 java、go、c#、nodejs、python、php、dart等多种开发语言。

gRPC API

  • GenSeed – 生成加密种子
  • InitWallet – 初始化钱包
  • UnlockWallet – 解锁钱包
  • ChangePassword – 修改钱包密码
  • WalletBalance – 查询钱包余额
  • ChannelBalance – 查询通道余额
  • GetTransactions – 查询钱包交易
  • EstimateFee – 估算交易手续费
  • SendCoins – 单址转账
  • ListUnspent – 查询钱包UTXO
  • SubscribeTransactions – 订阅交易事件
  • SendMany – 多址转账
  • NewAddress – 生成新地址
  • SignMessage – 生成消息签名
  • VerifyMessage – 验证消息签名
  • ConnectPeer – 连接对端节点
  • DisconnectPeer – 断开对端节点的连接
  • ListPeers – 查询对端节点
  • GetInfo – 查询节点信息
  • PendingChannels – 查询待确认通道
  • ListChannels – 查询已开启通道
  • SubscribeChannelEvents – 订阅通道事件
  • ClosedChannels – 查询已关闭通道
  • OpenChannelSync – 同步开启通道
  • OpenChannel – 开启通道
  • CloseChannel – 关闭通道
  • AbandonChannel – 启用通道
  • SendPayment – 发送支付
  • SendPaymentSync – 同步支付
  • SendToRoute – 指定路由支付
  • SendToRouteSync – 指定路由同步支付
  • AddInvoice – 添加发票
  • ListInvoices – 返回发票清单
  • LookupInvoice – 查询发票
  • SubscribeInvoices – 订阅发票
  • DecodePayReq – 解码支付请求
  • ListPayments – 返回支付清单
  • DeleteAllPayments – 删除所有支付
  • DescribeGraph – 返回图描述
  • GetChanInfo – 获取通道信息
  • GetNodeInfo – 获取节点信息
  • QueryRoutes – 查询路径
  • GetNetworkInfo – 获取支付网络信息
  • StopDaemon – 停止后台服务
  • SubscribeChannelGraph – 订阅通道图事件
  • DebugLevel – 设置调试等级
  • FeeReport – 获取手续费报告
  • UpdateChannelPolicy – 更新通道政策
  • ForwardingHistory – 查询转发历史
  • ExportChannelBackup – 导出通道备份
  • ExportAllChannelBackups – 导出所有通道的备份
  • VerifyChanBackup – 验证通道备份完整性
  • RestoreChannelBackups – 恢复通道备份
  • SubscribeChannelBackups – 订阅通道备份

消息

  • OpenStatusUpdate
  • ChannelEventSubscription
  • ChannelPoint
  • GraphTopologySubscription
  • UnlockWalletResponse
  • ChannelOpenUpdate
  • ChannelGraph
  • ListInvoiceResponse
  • VerifyChanBackupResponse
  • EdgeLocator
  • ForwardingHistoryRequest
  • ClosedChannelUpdate
  • HopHint
  • Route
  • ListPaymentsResponse
  • HTLC
  • FeeLimit
  • StopResponse
  • Peer
  • ChangePasswordResponse
  • ListINvoiceRequest
  • SendCoinsRequest
  • ForwardingEvent
  • NetworkInfoRequest
  • ForwardingHistoryResponse
  • WalletBalanceResponse
  • ListChannelsResponse
  • ChangePasswordRequest
  • Channel
  • DeleteAllPaymentsResponse
  • SendCoinsResponse
  • MultiChanBackup
  • GetInfoResponse
  • ChannelBackup
  • DeleteAllPaymentsRequest
  • Transaction
  • QueryRoutesRequest
  • VerifyMessageResponse
  • ChannelGraphRequest
  • SendRequest
  • FeeReportResponse
  • ForceClosedChannel
  • OutPoint
  • LightningAddress
  • Hop
  • PolicyUpdateResponse
  • SignMessageResponse
  • EstimateFeeResponse
  • AddInvoiceResponse
  • Invoice
  • InitWalletResponse
  • ListUnspentResponse
  • DisconnectPeerResponse
  • ChannelCloseSummary
  • SignMessageRequest
  • NodeInfo
  • NodeUpdate
  • ListPeersRequest
  • ClosedChannelsResponse
  • StopRequest
  • PayReqString
  • SendManyResponse
  • ChannelBackupSubscription
  • Payment
  • GenSeedRequest
  • ConfirmationUpdate
  • CloseStatusUpdate
  • GetTransactionsRequest
  • SendToRouteRequest
  • Chain
  • QueryRoutesResponse
  • PaymentHash
  • SendResponse
  • DebugLevelResponse
  • AbandonChannelResponse
  • ChanBackupExportRequest
  • ChannelCloseUpdate
  • PendingChannel
  • Utxo
  • DebugLevelRequest
  • PendingHTLC
  • UnlockWalletRequest
  • SendManyRequest
  • PayReq
  • PendingChannelsRequest
  • RestoreChanBackupRequest
  • ExportChannelBackupRequest
  • ChannelBackups
  • ChannelEdgeUpdate
  • ClosedChannel
  • CLoseChannelRequest
  • OpenChannelRequest
  • ChannelEventUpdate
  • ChanInfoRequest
  • ConnectPeerResponse
  • NewAddressRequest
  • ListPeersResponse
  • ListChannelsRequest
  • EstimateFeeRequest
  • LightningNode
  • WaitingCloseChannel
  • PendingOpenChannel
  • NewAddressResponse
  • ChannelBalanceResponse
  • ChanBackupSnapshot
  • TransactionDetails
  • PendingChannelsResponse
  • ChannelEdge
  • ConnectPeerRequest
  • PendingUpdate
  • RestoreBackupResponse
  • DisconnectPeerRequest
  • ClosedChannelsRequest
  • InvoiceSubscription
  • RouteHint
  • NodeInfoRequest
  • AddrToAmountEntry
  • FeeReportRequest
  • NetworkInfo
  • ListPaymentsRequest
  • AbandonChannelRequest
  • GetInfoRequest
  • GraphTopologyUpdate
  • InitWalletRequest
  • VerifyMessageRequest
  • ChannelFeeReport
  • PolicyUpdateRequest
  • GenSeedResponse
  • ChannelBalanceRequest
  • NodeAddress
  • WalletBalanceRequest
  • RoutingPolicy
  • ListUnspentRequest

枚举

  • ClosureType
  • SyncType
  • InvoiceState
  • PyamentStatus
  • UpdateType
  • AddressType
返回顶部