This plugin intercepts the CLN createinvoice RPC command and replaces the invoice with a cashu ecash mint invoice in case the inbound liquidity is too low to receive the payment directly.

Once enough satoshi are collected a lightning channel will be requested from a specified Lightning Service Provider (LSP).

This way new CLN users can instantly receive small payments, even if no funds to purchase a channel are available upfront. If inbound liquidity is depleted again and no automatic swapping mechanism is set-up the plugin will also help to automatically get new inbound channels from the LSP.

Reply to this note

Please Login to reply.

Discussion

Sounds like that might fix Lightning's incoming liquidity requirement? (and horrible UX as a result)

fix might be strong word here. This is quite complex on its own. Maybe though! Still wrapping my brain around how this would work.