0

i am trying to convert the

URI into BIP21

currently i am generating URI from bitcoinj library, but i want it to be on BIP21 Standard. i have read many articles but didn't found any solution

  • Do you have an example of an URI generated by bitcoinj lib? – Chak Dec 19 '17 at 19:27
  • yes here: "mqe8V3Vrp77JKYG2tfnQ6P8wpN4YVZ84V2" – Zombie Dec 19 '17 at 21:55
  • Have you tried convertToBitcoinURI(String address, Coin amount, String label, String message) or convertToBitcoinURI(Address address, Coin amount, String label, String message) ? or github.com/bitcoinjs/bip21 – Chak Dec 19 '17 at 22:01
  • no i didn't try this... – Zombie Dec 19 '17 at 22:10
  • yes i try this but didn't work for me – Zombie Dec 20 '17 at 11:14
0

The source file for that method is here

BIP21 wiki

Method can be accessed like this

 String bitcoinURI = BitcoinURI.convertToBitcoinURI(String address, Coin amount, String label, String message);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.