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
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
0
The source file for that method is here
Method can be accessed like this
String bitcoinURI = BitcoinURI.convertToBitcoinURI(String address, Coin amount, String label, String message);
Do you have an example of an URI generated by bitcoinj lib? – Chak – 2017-12-19T19:27:42.210
yes here: "mqe8V3Vrp77JKYG2tfnQ6P8wpN4YVZ84V2" – Zombie – 2017-12-19T21:55:56.920
Have you tried convertToBitcoinURI(String address, Coin amount, String label, String message) or convertToBitcoinURI(Address address, Coin amount, String label, String message) ? or https://github.com/bitcoinjs/bip21
– Chak – 2017-12-19T22:01:19.467no i didn't try this... – Zombie – 2017-12-19T22:10:41.093
yes i try this but didn't work for me – Zombie – 2017-12-20T11:14:05.913
Did you get an error or something else? – Chak – 2017-12-20T15:00:04.033
well, i couldn't access the convertToBitcoinURI – Zombie – 2017-12-20T17:43:52.493
This is how i am generating URI
// Derive address mAddress = mECKey.toAddress(mParams); – Zombie – 2017-12-20T17:44:33.883
Ohh I forgot, you have access the method in BitcoinURI , so like that ...................................................... String bitcoinURI = BitcoinURI.convertToBitcoinURI(String address, Coin amount, String label, String message) – Chak – 2017-12-20T18:28:34.073
did this generate BIP21 URI for me? – Zombie – 2017-12-20T18:33:49.153
bitcoin:mqe8V3Vrp77YMZG2tfnQ6P8wpN4YVZ84V2?amount=0.000001&label=bla&message=So%20this%20is%20it%21%20hmm...This is i got when i print – Zombie – 2017-12-20T18:46:28.380
That is bip21...??? – Zombie – 2017-12-20T18:46:37.237
Seems fine to me – Chak – 2017-12-20T18:55:32.917