dart_bip353

Creator: coderz1093

Last updated:

0 purchases

dart_bip353 Image
dart_bip353 Images

Languages

Categories

Add to Cart

Description:

dart bip353

dart_bip353 #
A Dart package to work with the BIP353, resolving payment details from a given address like [email protected] and get the bol 12 offer, onchain address and lnurl...
Usage #
A simple usage example:
// get the DNS query for the given address.
final dnsQuery = Bip353.buildDnsQueryFromRawAddress("[email protected]");
print(dnsQuery); // test.user._bitcoin-payment.twelve.cash

// get payment details from the given address, inclusing bolt12 offerr, bitcoin onchain address and lnurl.
final data = await Bip353.getAdressResolve("[email protected]");
print(data.onchain); // bc1p73p4sc52mdamccfrth4gn8wull0h7ywkzzn6d8e2mxqr4m7evdqqwusn64

print(data.offer); // lno1pqqq5xj5wajkcan9gdshx6pq23jhxarfdenjqstyv3ex2umnzcss80xkrjkyrjk43u5dgu8f6a450fg2cnjtg7lhg76c3gtk5gdhshns

print(data.lnurl); // lnurl1dp68gurn8ghj7anvwshxwef09emk2mrv944kummhdchkcmn4wfk8qte3xf6x2um50n5cup

// do something with the bolt 12 offer.
// ...
copied to clipboard
Features and bugs #
Please file feature requests and bugs at the [issue tracker][issues].
License #
MIT License, see LICENSE.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.