Rust Tutorial
Rust version of the tutorial.
📄️ Intro
Speaker: Chris Guida
📄️ Background
- Executable file
📄️ Life Cycle
1) Plugin launches
📄️ RPC Methods
- You can define custom behavior for any lightning-cli method by registering
📄️ Plugin Options
- Command line options passthrough allows plugins to register their own command
📄️ Events
- Also referred to as "Event stream subscriptions"
📄️ Hooks
- Synchronous event handler that blocks CLN from processing until it responds
📄️ Bonus Python
There are a few more elements in the official helloworld.py example that we left out in this tutorial. As a bonus exercise, implement the rest.
📄️ Bonus Golang
As a bonus exercise, implement one (or more) example(s) from the official glightning examples.
📄️ Bonus Rust
As a bonus exercise, implement the example from the official cln-plugin example.