dart_lnurl 0.1.0 icon indicating copy to clipboard operation
dart_lnurl: ^0.1.0 copied to clipboard

A Dart implementation of lnurl to decode bech32 lnurl strings.

dart_lnurl #

pub package

A Dart implementation of lnurl to decode bech32 lnurl strings. Currently supports the following tags:

  • withdrawRequest
  • payRequest
  • channelRequest
  • login

Features #

  • ✅ Decode a bech32-encoded lnurl string.
  • ✅ Make GET request to the decoded ln service and return the response.

Learn more about the lnurl spec here: https://github.com/btcontract/lnurl-rfc

API Reference #

Future<LNURLParseResult> getParams(String encodedUrl) Use this to parse an encoded bech32 lnurl string, call the decoded URI, and return the parsed response from the lnurl service. The encodedUrl can either have lightning: in it or not.

String decryptSuccessActionAesPayload({LNURLPaySuccessAction successAction, String preimage})

When doing lnurl pay, the success action could contain an encrypted payload using the payment preimage. Use this function to decrypt that payload.

1
likes
110
pub points
63%
popularity

Publisher

verified publisher iconbottlepay.com

A Dart implementation of lnurl to decode bech32 lnurl strings.

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

bech32, encrypt, flutter, http

More

Packages that depend on dart_lnurl