Bitcoin Forum
April 26, 2024, 01:44:10 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Minimal watch-only client to receive Bitcoin payments  (Read 1451 times)
drazvan (OP)
Full Member
***
Offline Offline

Activity: 191
Merit: 100



View Profile WWW
September 24, 2014, 03:12:34 PM
 #1

Hello everyone,

I am looking for the smallest / least memory and processor intensive solution that would allow me to receive Bitcoin payments independently (that is without requiring a server). The app does not need to be a wallet, it simply needs to watch a given address and trigger some sort of alert when a payment is received (and possibly confirmed). I'm leaning towards bitcoinj for this (and SPV), but I was wondering if there was anything else that was even less complex / simpler to deploy.

Any ideas?

Thanks,
Razvan
1714139050
Hero Member
*
Offline Offline

Posts: 1714139050

View Profile Personal Message (Offline)

Ignore
1714139050
Reply with quote  #2

1714139050
Report to moderator
"There should not be any signed int. If you've found a signed int somewhere, please tell me (within the next 25 years please) and I'll change it to unsigned int." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714139050
Hero Member
*
Offline Offline

Posts: 1714139050

View Profile Personal Message (Offline)

Ignore
1714139050
Reply with quote  #2

1714139050
Report to moderator
ffe
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250



View Profile
September 24, 2014, 06:05:41 PM
 #2

in any web browser:

https://blockchain.info/address/1611QkyFoHv3NDrtLgGmRifWdSU3WbE57j

Where you replace 1611QkyFoHv3NDrtLgGmRifWdSU3WbE57j with the address you want to watch.

Bookmark it to use at will. You can shorten it as well using google or other URL shortners. Then you can memorize it.
drazvan (OP)
Full Member
***
Offline Offline

Activity: 191
Merit: 100



View Profile WWW
September 24, 2014, 06:45:10 PM
 #3

Thanks ffe, but I'm looking for something that does not require an external server. I've managed to prototype this using Bitcoinj, if anyone knows of a better/simpler solution, I'm all ears. Again, this must receive/parse transaction data from the Bitcoin network, not talk to a server.

ffe
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250



View Profile
September 24, 2014, 08:41:29 PM
 #4

Not sure how compact their code is but you could look at


Bither - a simple and secure Bitcoin wallet!
Decentralized, based on Bitcoin P2P network, and open source.

Bither Hot Wallet: running on your daily phone, can easily monitor your bitcoin assets, and you can also save small amout of bitcoins in it to pay bitcoins anytime, anywhere.
Bither Cold Wallet: running on your backup phone (old or cheap one), keep the phone offline and save large amount of bitcoins in it, then you can keep your bitcoins as safe as possible.
Communicating between Bither Hot and Bither Cold is simple, the only thing you need to do is scanning the QR-Code.

website : http://bither.net
Google Play : https://play.google.com/store/apps/details?id=net.bither
Apple App Store : https://itunes.apple.com/us/app/bither/id899478936
source code : https://github.com/bither
twitter : @bithernet

demo video : http://youtu.be/Q1DSrc7qkrs



hhanh00
Sr. Member
****
Offline Offline

Activity: 467
Merit: 266


View Profile
September 25, 2014, 05:18:55 AM
 #5

Thanks ffe, but I'm looking for something that does not require an external server. I've managed to prototype this using Bitcoinj, if anyone knows of a better/simpler solution, I'm all ears. Again, this must receive/parse transaction data from the Bitcoin network, not talk to a server.



Coincidentally, I just wrote an app for a very similar purpose. The only difference is that it takes an Electrum public master key instead of a single address but it's much smaller than bitcoinj or anything else so you can easily modify the code for your needs.

https://github.com/hhanh00/spvwallet

Dabs
Legendary
*
Offline Offline

Activity: 3416
Merit: 1912


The Concierge of Crypto


View Profile
September 25, 2014, 05:32:58 AM
 #6

Is bitcoin core out of the question? You could import your address to a brand new wallet and just use -walletnotify. You either use an impossible password or pywallet to wipe out the private key.

drazvan (OP)
Full Member
***
Offline Offline

Activity: 191
Merit: 100



View Profile WWW
September 25, 2014, 07:30:52 PM
 #7

Is bitcoin core out of the question? You could import your address to a brand new wallet and just use -walletnotify. You either use an impossible password or pywallet to wipe out the private key.

Bitcoin Core is out because of its blockchain space requirements, I only have 4GB of storage and that won't fit the current 20+ GB of the blockchain. I was able to implement it using Bitcoinj, thanks hhanh00 for your suggestion but I'm considerably more familiar with Java (your project uses Scala), so I guess I'll stick to that (and Bitcoinj).

Thanks again everyone.
TheButterZone
Legendary
*
Offline Offline

Activity: 3052
Merit: 1031


RIP Mommy


View Profile WWW
September 26, 2014, 05:14:52 AM
 #8

I'd suggest you download the peer-to-peer https://play.google.com/store/apps/details?id=de.schildbach.wallet&hl=en and then submit an issue for it on https://github.com/schildbach/bitcoin-wallet/ asking to be able to import watch-only addresses.

Saying that you don't trust someone because of their behavior is completely valid.
drazvan (OP)
Full Member
***
Offline Offline

Activity: 191
Merit: 100



View Profile WWW
September 26, 2014, 01:42:29 PM
 #9

I'd suggest you download the peer-to-peer https://play.google.com/store/apps/details?id=de.schildbach.wallet&hl=en and then submit an issue for it on https://github.com/schildbach/bitcoin-wallet/ asking to be able to import watch-only addresses.

Thanks, but that's an Android wallet and I'm not running Android, my board is a very simple embedded Linux device (low memory, small flash, etc). As I said, I have a working solution now using Bitcoinj so I'll stick to that for now.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!