Writing a plugin in Python

Check out a step-by-step recipe for building a simple helloworld.py example plugin based on pyln-client.

You can also follow along the video below where Blockstream Engineer Rusty Russell walks you all the way from getting started with Core Lightning to building a plugin in Python.

Finally, lightningd's own internal tests can be a useful (and most reliable) resource.

Writing a plugin in Rust

cln-plugin is a library that facilitates the creation of plugins in Rust, with async/await support, for low-footprint plugins.

Community built plugins

Check out this repository that has a collection of actively maintained plugins as well as plugin libraries (in your favourite language) built by the community.


Core Lightning (previously c-lightning) is a lightweight, highly customizable and standard compliant implementation of the Lightning Network protocol.

© 2023 Core Lightning
All rights reserved.

Discussion Forum

The official Core Lightning forum is hosted at discuss.corelightning.org

BuildonL2 Community

The official BuildOnL2 community lives at community.corelightning.org. Join us and build the future of bitcoin on lightning.

Mailing List

For general discussions about CLN implementation, use [email protected]. For the Lightning Network, use [email protected]

Telegram

Community-driven telegram group where most of the node operators hang out. Go to https://t.me/lightningd to join.

Discord

Community-driven discord server where the devs flock together. Go to https://discord.gg/w27fMFESMN to join.

Internet Relay Chat

Don't hesitate to reach out to us on IRC at #lightning-dev @ libera.chat, #c-lightning @ libera.chat.