Litecoin learning center

URI Schemes

Litecoin URI schemes simplify the flow of sending and receiving Litecoin by allowing users to click on a link or scan a QR code instead of having to manually enter the transaction details. This URI includes the address, the amount to be sent, and often optional parameters such as a label or message.

BIP21

The BIP21 standard was adopted by Litecoin, but with a different URN denoting litecoin. All wallets are reccomended to adopt this standard,for ease-of-use. Additional information can be found in the spec BIP21 document.

Standard syntax example:

litecoin:<address>[?amount=<amount>][?label=<label>][?message=<message>]

ABFN Grammar

litecoinurn     = "litecoin:" litecoinaddress [ "?" litecoinparams ]
litecoinaddress = *base58/bech32
litecoinparams  = litecoinparam [ "&" litecoinparams ]
litecoinparam   = [ amountparam / labelparam / messageparam / otherparam / reqparam ]
amountparam    = "amount=" *digit [ "." *digit ]
labelparam     = "label=" *qchar
messageparam   = "message=" *qchar
otherparam     = qchar *qchar [ "=" *qchar ]
reqparam       = "req-" qchar *qchar [ "=" *qchar ]

BOLT11

The BOLT11 standard specifies the design of a Litecoin lightning invoice. To adapt this invoice as a uri, `ltclightning:` should be used asas the URN prefix (note: not 'ltclightning://'). This URI scheme is only followed by versions of lndltc 0.16+.

Example:

ltclightning:lnltc1m1pdtaggcpp5t2a85mvpqvmsyejs3ysa9jqfvzl3fs7tukk8kyvhn64rxumc4t4qdqcd4u47ar9wd697urp09kk2mn5cqzjqxqzuywpn6mhcu4s7fj9q3ndu09805t3q8jwllcd8p2e9plrfcehw3xyr9lpnux9jgcv64mwpvk3599qza6a32uzak2y03ttrgnrmf554ffrgpxnnrk4

Alternatively it may also be useful to set `ltclightning:` as an additional parameter of a BIP21 payment request. By doing this, wallets which don't support lightning will be able to fallback to an onchain payment.

Example:

litecoin:<address>?ltclightning:<invoice>
Author:
Date Published:
← Back to learning center
Litecoin Learning Center
>

URI Schemes

Litecoin URI schemes simplify the flow of sending and receiving Litecoin by allowing users to click on a link or scan a QR code instead of having to manually enter the transaction details. This URI includes the address, the amount to be sent, and often optional parameters such as a label or message.

BIP21

The BIP21 standard was adopted by Litecoin, but with a different URN denoting litecoin. All wallets are reccomended to adopt this standard,for ease-of-use. Additional information can be found in the spec BIP21 document.

Standard syntax example:

litecoin:<address>[?amount=<amount>][?label=<label>][?message=<message>]

ABFN Grammar

litecoinurn     = "litecoin:" litecoinaddress [ "?" litecoinparams ]
litecoinaddress = *base58/bech32
litecoinparams  = litecoinparam [ "&" litecoinparams ]
litecoinparam   = [ amountparam / labelparam / messageparam / otherparam / reqparam ]
amountparam    = "amount=" *digit [ "." *digit ]
labelparam     = "label=" *qchar
messageparam   = "message=" *qchar
otherparam     = qchar *qchar [ "=" *qchar ]
reqparam       = "req-" qchar *qchar [ "=" *qchar ]

BOLT11

The BOLT11 standard specifies the design of a Litecoin lightning invoice. To adapt this invoice as a uri, `ltclightning:` should be used asas the URN prefix (note: not 'ltclightning://'). This URI scheme is only followed by versions of lndltc 0.16+.

Example:

ltclightning:lnltc1m1pdtaggcpp5t2a85mvpqvmsyejs3ysa9jqfvzl3fs7tukk8kyvhn64rxumc4t4qdqcd4u47ar9wd697urp09kk2mn5cqzjqxqzuywpn6mhcu4s7fj9q3ndu09805t3q8jwllcd8p2e9plrfcehw3xyr9lpnux9jgcv64mwpvk3599qza6a32uzak2y03ttrgnrmf554ffrgpxnnrk4

Alternatively it may also be useful to set `ltclightning:` as an additional parameter of a BIP21 payment request. By doing this, wallets which don't support lightning will be able to fallback to an onchain payment.

Example:

litecoin:<address>?ltclightning:<invoice>
WRITTEN BY:
PUBLISHED ON:
Get involved

Donate

As a nonprofit organization, the Litecoin Foundation relies on community generosity!

Any and all donations are greatly appreciated, and will help further the development of Litecoin!

Newsletter

Our newsletter comes out monthly, with special giveaways, announcements on partnerships and development, and exclusive Litecoin news.

Sign up today and keep an eye on your inbox!

Thank you for signing up!
Please try again

Volunteer

If you’d like to use your expertise to promote, develop or grow Litecoin - or assist the Litecoin Foundation - we’d love to hear from you.

Simply fill in the form and we'll get back to you ASAP. Thank you in advance!

Copyright © 2024 Litecoin Foundation. | Privacy Policy