Posts

FlutterWebln

Image
A package that helps you to interact with WebLN providers by providing a FlutterWebln interface for creating Bitcoin Lightning powered web applications. Features There are methods to: Enable the provider ( FlutterWebln.enable ) Get information about a users Bitcoin Lightning node ( FlutterWebln.getInfo ) Send a payment ( FlutterWebln.sendPayment ) Create an invoice to receive a payment ( FlutterWebln.makeInvoice ) Request the user to send a keysend payment ( FlutterWebln.keysend ) Request a signature of an arbitrary message ( FlutterWebln.signMessage ) Verifies the signature against the raw message ( FlutterWebln.verifyMessage ) Getting Started You first need to install WebLN provider in order to use any of the FlutterWebln methods. Detecting WebLN support Before you start using FlutterWebln you need to check for browser support by checking if the variable FlutterWebln.webln is defined: void checkWebln() { try { final weblnValue = weblnDecode(Flu