LightningPay icon indicating copy to clipboard operation
LightningPay copied to clipboard

Bitcoin Lightning Network Payment library

LightningPay

Bitcoin Lightning Network Payment .NET library

Features

  • [x] Get balance (Documentation)
  • [x] Create an invoice (Documentation)
  • [x] Check payment (Documentation)
  • [x] Pay an invoice (Documentation)

Packages

  • LightningPay.Abstractions NuGet : Interfaces and model used by LightningPay
  • LightningPay NuGet : Core library with all Lightning clients
  • LightningPay.DependencyInjection NuGet : Extension methods for .NET DI

See Which package to use ? for more details.

Integration

Connect to your lightning nodes :

  • [x] LND (Documentation)
  • [x] C-Lightning (Documentation)
  • [x] Eclair (Documentation)
  • [ ] Charge (Not supported yet)

Or with custodial solution for lightning (without having a node of your own) :

  • [x] LNDHub / BlueWallet (Documentation)
  • [x] LNBits (Documentation)

Extensible

With LightningPay, you can easly extend your client by add extension methods to the ILightningClient interface.

See the full documentation here.

Samples

Need for code samples ? Go here : Lightning samples

Documentation

Lightning Documentation

Local test

You can use our docker-compose file to test the LightningPay clients.

Continuous Integration

LightningPay build reports

Contributing

We appreciate new contributions.

  • Non developer : You found a bug or have an suggestion for a new feature ? Don't hesitate to create an issue
  • Developer : develop branch is the principal branch for development. This branch is protected. You must create a pull request and target this branch for code validation.

Credits

Many thanks to the BTCPayServer.Lightning project that inspiring us.