1

I'm a java developer implementing bitcoinj in an app that I'm currently working on. However, I could not find an option to specify the amount when creating a receive address. Is it possible, and if possible, how can I do it.

DSA User
  • 11
  • 3
  • Please clarify what you want to do – Hassen Ch. Jun 19 '20 at 14:34
  • I did request for a fresh address, copied it to my android wallet and transferred some coins into it. It worked as i was able to see the deposit in my balance. But what i wanted now is to specify how much coins the payer should pay me alongside the address. Like when the payer paste the address in their android wallet, it should show them the amount I requested, so they don't have to enter the amount they wanted to send. The amount should already be displayed on their screen. Thanks in advance – DSA User Jun 20 '20 at 05:32
  • Still unsolved. Someone should please help me. – DSA User Jun 20 '20 at 08:40

1 Answers1

0

Have a look at BIP21 and then use can create QR code or a URI. Both sender and receiver needs to be BIP 21 comparable.

And in bitcoinj you can find BitcoinURI.java