# Clone the repo
git clone https://github.com/niteshbalusu11/cln-lightning-liquidity.git
# Go into it
cd cln-lightning-liquidity
# Build
cargo build --release
# In your core lightning config
plugin=/path/to/cln-lightning-liquidity
# Start the plugin
Usage
Help command:
lightning-cli buy-inbound-channel method=help
{ "cli_params": {
"amount": "<number> enter the channel size you want to buy",
"blocks": "<number> enter the number of blocks you want to wait for the channel to be confirmed",
"method": "Method can be one of the following: (help, buy, getinfo, getorder)",
"orderid": "<orderid> returns the status of the order",
"type": "<private/public> the type of channel you want to buy",
"uri": "<uri> pubkey@host:port"
}
}