登录 注册

eclair

去点 Star
网络与基础设施开发者工具自动化与工作流 bitcoinblockchaincryptocurrencyeclairlightninglightning-network
1,350
Stars
288
Forks
81
Watchers
46
Open Issues
Apache-2.0
许可证
Scala
语言
2015-08-19
创建时间
2026-11-05
最近更新

项目能做什么

Eclair 是用 Scala 编写的比特币闪电网络实现,严格遵循 BOLT 规范。它依托 Bitcoin Core 监控链上数据与管理链上资金,提供通道开设、关闭及闪电网络收付款功能,并内置丰富的 HTTP JSON API,方便开发者快速集成闪电支付能力。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
![Eclair Logo](.readme/logo.png)

[![Build Status](https://github.com/ACINQ/eclair/workflows/Build%20&%20Test/badge.svg)](https://github.com/ACINQ/eclair/actions?query=workflow%3A%22Build+%26+Test%22)
[![codecov](https://codecov.io/gh/acinq/eclair/branch/master/graph/badge.svg)](https://codecov.io/gh/acinq/eclair)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)

**Eclair** (French for Lightning) is a Scala implementation of the Lightning Network.

This software follows the [Lightning Network Specifications (BOLTs)](https://github.com/lightning/bolts).
Other implementations include [core lightning](https://github.com/ElementsProject/lightning), [lnd](https://github.com/LightningNetwork/lnd), [electrum](https://github.com/spesmilo/electrum/), and [ldk](https://github.com/lightningdevkit/rust-lightning).

---

* [Lightning Network Specification Compliance](#lightning-network-specification-compliance)
* [JSON API](#json-api)
* [Documentation](#documentation)
* [Installation](#installation)
  * [Prerequisite: Bitcoin Core](#prerequisite-bitcoin-core)
  * [Installing Eclair](#installing-eclair)
* [Configuration](#configuration)
  * [Configuration file](#configuration-file)
  * [Configure Bitcoin Core wallet](#configure-bitcoin-core-wallet)
  * [Java Environment Variables](#java-environment-variables)
  * [Logging](#logging)
  * [Backup](#backup)
* [Docker](#docker)
* [Plugins](#plugins)
* [Testnet usage](#testnet-usage)
* [Tools](#tools)
* [Resources](#resources)

---

## Lightning Network Specification Compliance

Please see the latest [release note](https://github.com/ACINQ/eclair/releases) for detailed information on BOLT compliance.

## JSON API

Eclair offers a feature-rich HTTP API that enables application developers to easily integrate.

For more information please visit the [API documentation website](https://acinq.github.io/eclair).

:rotating_light: Eclair's JSON API should **NOT** be accessible from the outside world (similarly to Bitcoin Core API)

## Documentation

Please visit our [docs](./docs) folder to find detailed instructions on how to [configure](./docs/Configure.md) your
node, connect to other nodes, open channels, send and receive payments, and help with more advanced scenarios.

You will also find detailed [guides](./docs/Guides.md) and [frequently asked questions](./docs/FAQ.md) there.

## Installation

### Prerequisite: Bitcoin Core

Eclair relies on Bitcoin Core to interface with and monitor the blockchain and to manage on-chain funds: Eclair does not include an on-chain wallet, channel opening transactions are funded by your Bitcoin Core node, and channel closing transactions return funds to your Bitcoin Core node.

This means that instead of re-implementing them, Eclair benefits from the verifications and optimisations (including fee management with RBF/CPFP, ...) that are implemented by Bitcoin Core. Eclair uses our own [bitcoin library](https://github.com/ACINQ/bitcoin-kmp) to verify data
阅读完整原文

项目深度分析 AI 生成

Eclair 自动化流动性与收益优化中间件 (Liquidity Ops)

产品构想基于 Eclair 的 JSON-API 封装自动化通道再平衡(Rebalancing)、动态费率调节与流动性出租工具,帮助路由节点最大化手续费收益并降低锁定资本成本。
核心功能自动化通道平衡策略引擎、动态通道费率算法、对端质量评估监控、一键式告警与自动熔断。
目标用户闪电网络路由节点运营商、流动性提供商 (LSP)。
难度/周期高 · 3-6个月 · 成本:中等(需维护全节点基础设施及测试通道资金)。
收费模式SaaS订阅费(基础管理工具)或按再平衡节省成本/路由收益按比例抽成(推测)。
竞争风险闪电网络锁定资金有链上攻击和清算风险;通道再平衡本身消耗链上手续费可能侵蚀利润。
依据 已验证事实

托管型 Eclair 开发者节点云平台 (BaaS)

产品构想提供按需实例化的非托管/托管 Eclair 节点 API 服务,隔离 Bitcoin Core 繁重的维护负担(无修剪、txindex要求),对外输出安全的 REST/WebSocket 支付 API。
核心功能即开即用的 Eclair Docker/K8s 托管集群、隔离的 API Token 访问控制网关、自动冷热通道管理、多租户账单统计。
目标用户需要集成闪电网络收款的 Web3 应用团队、跨境支付 SaaS 创业者。
难度/周期高 · 4-6个月 · 成本:高(需要承载同步未修剪 Bitcoin Core 和 Eclair 节点的高性能服务器与大容量 SSD)。
收费模式节点月租费、API 请求计量付费、通道注资提成。
竞争风险基础设施成本极高(Bitcoin Core txindex 存储压力);热钱包及通道密钥安全责任重大;合规与反洗钱监管审查。
依据 数据支持的判断

企业级轻量化闪电网络收单网关插件

产品构想针对独立电商及跨境商家,提供对接 Eclair API 的即插即用收单中间件(支持 WooCommerce、Shopify 外部网关等),免去商家自建路由的复杂度。
核心功能发票自动生成与即时支付状态推送、法币计价动态换算、自动归集至链上冷钱包或主流交易所、简化版收单对账后台。
目标用户接受比特币支付的中小型跨境独立站商家、数字内容创作者。
难度/周期中等 · 2-3个月 · 成本:低到中等(主要是轻量应用服务器与集成测试成本)。
收费模式每笔收单收取微量处理手续费(如 0.5% - 1%)或商业版插件授权许可费。
竞争风险市场上有 BTCPay Server 等强势开源竞品;加密货币结算受各地法律与税务监管约束。
依据 已验证事实
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建于 2015-08-19,近 30 天仍在推送,发布过 49 个 Release
社区活跃Star 1,350 / Fork 288 / Issue 46(数据支持,可自行核实)
许可证Apache-2.0
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/ACINQ/eclair.git
cd eclair
docker compose up -d   # 或参考 README 中的 docker run 命令
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。