dart_lnurl library
Classes
- LNURLAuthParams
- LNURLChannelParams
- LNURLErrorResponse
- LNURLParseResult
- The result returned when you call getParams. The correct response item will be non-null and the rest will be null.
- LNURLPayParams
- LNURLPayResult
- LNURLPaySuccessAction
- A success action will be returned when making a call to the lnUrl callback url.
- LNURLWithdrawParams
Functions
-
convert(
List< int> data, int inBits, int outBits, bool pad) → List<int> - Taken from bech32 (bitcoinjs): https://github.com/bitcoinjs/bech32
-
decodeUri(
String encodedUrl) → Uri -
decryptSuccessActionAesPayload(
{required LNURLPaySuccessAction successAction, required String preimage}) → String - Given a success action, will return the decrypted AES payload. The preimage is the key to decrypt the data.
-
fromWords(
List< int> words) → List<int> - Converts a list of character positions in the bech32 alphabet ("words") to binary data.
-
getParams(
String encodedUrl) → Future< LNURLParseResult> - Get params from a lnurl string. Possible types are: