Bitcoin Forum
December 03, 2016, 09:54:31 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Is there a simple app to scan a QR and return a balance?  (Read 2360 times)
LoweryCBS
Sr. Member
****
Offline Offline

Activity: 364


firstbits 1LoCBS


View Profile
July 24, 2012, 05:34:59 PM
 #1

Napkin-backing some point-of-sale ideas, and wondering if there's a simple Android app that will scan a QR of the address and return the balance?

1480802071
Hero Member
*
Offline Offline

Posts: 1480802071

View Profile Personal Message (Offline)

Ignore
1480802071
Reply with quote  #2

1480802071
Report to moderator
1480802071
Hero Member
*
Offline Offline

Posts: 1480802071

View Profile Personal Message (Offline)

Ignore
1480802071
Reply with quote  #2

1480802071
Report to moderator
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480802071
Hero Member
*
Offline Offline

Posts: 1480802071

View Profile Personal Message (Offline)

Ignore
1480802071
Reply with quote  #2

1480802071
Report to moderator
1480802071
Hero Member
*
Offline Offline

Posts: 1480802071

View Profile Personal Message (Offline)

Ignore
1480802071
Reply with quote  #2

1480802071
Report to moderator
casascius
Mike Caldwell
VIP
Legendary
*
Offline Offline

Activity: 1344


The Casascius 1oz 10BTC Silver Round (w/ Gold B)


View Profile WWW
July 24, 2012, 05:42:54 PM
 #2

No, but such a thing should be simple to create and somebody should create it.  It could be created for iPhone without being a "bitcoin app", and would merely do the following:

1. scan QR code
2. extract bitcoin address out of it, removing any other URL components
3. direct the web browser to http://blockchain.info/address/ADDRESSGOESHERE

Any open-source QR code scanner could be modified to do such a thing and it would work great.

Companies claiming they got hacked and lost your coins sounds like fraud so perfect it could be called fashionable.  I never believe them.  If I ever experience the misfortune of a real intrusion, I declare I have been honest about the way I have managed the keys in Casascius Coins.  I maintain no ability to recover or reproduce the keys, not even under limitless duress or total intrusion.  Remember that trusting strangers with your coins without any recourse is, as a matter of principle, not a best practice.  Don't keep coins online. Use paper wallets instead.
Stephen Gornick
Legendary
*
Offline Offline

Activity: 1988



View Profile
July 24, 2012, 05:49:29 PM
 #3

Napkin-backing some point-of-sale ideas, and wondering if there's a simple Android app that will scan a QR of the address and return the balance?

I asked essentially the same question and nobody had a solution so it probably doesn't yet exist.  But there is definitely a need for it.
 - http://bitcoin.stackexchange.com/q/4107/153

tbcoin
Hero Member
*****
Offline Offline

Activity: 896



View Profile WWW
July 24, 2012, 09:36:40 PM
 #4

Vote:
http://blockchain.uservoice.com/forums/152743-general-ideas/suggestions/3024674-function-to-scan-the-qr-of-the-address-and-return-

Sorry for my bad english Wink
Bitcoin card for deposit and payment + Little POS
Donations:1N65efiNUhH6sEQg7Z6oUC76kJS9Yhevyf
unclemantis
Member
**
Offline Offline

Activity: 98


(:firstbits => "1mantis")


View Profile
July 24, 2012, 11:42:37 PM
 #5

I have a bookmark in my blackberry that points to my cold storage address and gives me my balance in Satoshi. Yes. I am geeky like that and besides it makes me look like i have a 100 million more than I really do!

PHP, Ruby, Rails, ASP, JavaScript, SQL
20+ years experience w/ Internet Technologies
Bitcoin OTC | GPG Public Key                                                                               thoughts?
bg002h
Donator
Legendary
*
Offline Offline

Activity: 1288


Got GLIPH? https://gli.ph/m *p-d-d


View Profile WWW
July 25, 2012, 01:00:26 AM
 #6

I have my addresses in an iOS app I wrote...it's simple, but it works for me. More info in my signature.

My very own Casascius Bearer Bar: 1GCDzqmX2Cf513E8NeThNHxiYEivU1Chhe
rasengan
Member
**
Offline Offline

Activity: 114



View Profile WWW
July 25, 2012, 05:55:38 AM
 #7

As per LoweryCBS and casascius requirements,

Here is a simple Bitcoin Balance checker which simply does as follows:
1. Scan QR Code - Must be of form bitcoin:<address> or <address>
2. Forward to http://blockexplorer.com/address/<address>

Google Play
https://play.google.com/store/apps/details?id=com.londontrustmedia.bitcoinbalance


It was built using Titanium Appcelerator for quickness and ease, and the snippet of code is available via GIST(github) at:
https://gist.github.com/3174001

You can also use this on iOS by building it yourself.  Please enjoy.

Co-Founder of Private Internet Access VPN service
Privacy Online News Blog
davout
Legendary
*
Offline Offline

Activity: 1358


1davout


View Profile WWW
July 25, 2012, 06:38:06 AM
 #8

It also exists for iOS and it's free to download on the appstore.

See : http://itunes.apple.com/en/app/scanbook-bitcoin-address-utility/id536215208?mt=8&ign-mpt=uo%3D2

rasengan
Member
**
Offline Offline

Activity: 114



View Profile WWW
July 25, 2012, 06:39:35 AM
 #9

It also exists for iOS and it's free to download on the appstore.

See : http://itunes.apple.com/en/app/scanbook-bitcoin-address-utility/id536215208?mt=8&ign-mpt=uo%3D2

That's very cool!  Grin

Co-Founder of Private Internet Access VPN service
Privacy Online News Blog
LoweryCBS
Sr. Member
****
Offline Offline

Activity: 364


firstbits 1LoCBS


View Profile
July 25, 2012, 11:45:14 AM
 #10

As per LoweryCBS and casascius requirements,

Here is a simple Bitcoin Balance checker which simply does as follows:
1. Scan QR Code - Must be of form bitcoin:<address> or <address>
2. Forward to http://blockexplorer.com/address/<address>

Google Play
https://play.google.com/store/apps/details?id=com.londontrustmedia.bitcoinbalance


It was built using Titanium Appcelerator for quickness and ease, and the snippet of code is available via GIST(github) at:
https://gist.github.com/3174001

You can also use this on iOS by building it yourself.  Please enjoy.

Too cool for school, yo!

The name "Bitcoin Balance Checker" is ok I guess, but if asked I would have suggested:

"The Magic Computer Money Fancy Anonymous Cryptographic Coin Balance-Checker-Outer"
rasengan
Member
**
Offline Offline

Activity: 114



View Profile WWW
July 25, 2012, 02:53:19 PM
 #11

Too cool for school, yo!

The name "Bitcoin Balance Checker" is ok I guess, but if asked I would have suggested:

"The Magic Computer Money Fancy Anonymous Cryptographic Coin Balance-Checker-Outer"


Haha - you can definitely rebuild/repackage the app and post it on the Google Play store with this name as well if you would like -- I like the name! :-)


Co-Founder of Private Internet Access VPN service
Privacy Online News Blog
casascius
Mike Caldwell
VIP
Legendary
*
Offline Offline

Activity: 1344


The Casascius 1oz 10BTC Silver Round (w/ Gold B)


View Profile WWW
July 25, 2012, 04:41:00 PM
 #12

I haven't tested any of these apps, but wanted to make sure the apps were coded in such a way that they will resist a malicious QR code that contained a fully qualified URL that led to a fake website.

Example: I am an attacker, and I print a QR code on a note that encodes the following URL: http://my-nifty-attack-site.tk/address/128jxLBCaS1MZpCtXEzN8TmwcetBHibP9L

When browsed, the attack site shows a mockup of blockexplorer / blockchain.info that shows a big balance that is not really there, which allows me to deceive someone into thinking I paid them when I really haven't.

The app should never send the smartphone browser there, but instead be smart enough to strip the bitcoin address out, and formulate the correct complete URL on its own: e.g. http://blockchain.info/address/128jxLBCaS1MZpCtXEzN8TmwcetBHibP9L

Companies claiming they got hacked and lost your coins sounds like fraud so perfect it could be called fashionable.  I never believe them.  If I ever experience the misfortune of a real intrusion, I declare I have been honest about the way I have managed the keys in Casascius Coins.  I maintain no ability to recover or reproduce the keys, not even under limitless duress or total intrusion.  Remember that trusting strangers with your coins without any recourse is, as a matter of principle, not a best practice.  Don't keep coins online. Use paper wallets instead.
Winterfrost
Full Member
***
Offline Offline

Activity: 149


GPG 0FC76C1241E39BF6


View Profile
July 25, 2012, 04:53:57 PM
 #13

I haven't tested any of these apps, but wanted to make sure the apps were coded in such a way that they will resist a malicious QR code that contained a fully qualified URL that led to a fake website.

Example: I am an attacker, and I print a QR code on a note that encodes the following URL: http://my-nifty-attack-site.tk/address/128jxLBCaS1MZpCtXEzN8TmwcetBHibP9L

When browsed, the attack site shows a mockup of blockexplorer / blockchain.info that shows a big balance that is not really there, which allows me to deceive someone into thinking I paid them when I really haven't.

The app should never send the smartphone browser there, but instead be smart enough to strip the bitcoin address out, and formulate the correct complete URL on its own: e.g. http://blockchain.info/address/128jxLBCaS1MZpCtXEzN8TmwcetBHibP9L

I tested Bitcoin Balance on a random URL. It takes whatever you put and tacks it onto https://blockexplorer.com/address/. So if I read a QR code for http://google.com, then the app sends me to https://blockexplorer.com/address/http://google.com.

1winteru2GkEyqLGK95WVCHwBBpGRJXW1
rasengan
Member
**
Offline Offline

Activity: 114



View Profile WWW
July 25, 2012, 05:15:38 PM
 #14

I haven't tested any of these apps, but wanted to make sure the apps were coded in such a way that they will resist a malicious QR code that contained a fully qualified URL that led to a fake website.

Example: I am an attacker, and I print a QR code on a note that encodes the following URL: http://my-nifty-attack-site.tk/address/128jxLBCaS1MZpCtXEzN8TmwcetBHibP9L

When browsed, the attack site shows a mockup of blockexplorer / blockchain.info that shows a big balance that is not really there, which allows me to deceive someone into thinking I paid them when I really haven't.

The app should never send the smartphone browser there, but instead be smart enough to strip the bitcoin address out, and formulate the correct complete URL on its own: e.g. http://blockchain.info/address/128jxLBCaS1MZpCtXEzN8TmwcetBHibP9L

Hi Mike

Hope you are doing well!  I am loving my casascius coins!

As of now, the way it works is as follows:
http://blockexplorer.com/address/(unescape(e.result).match(/([^\?]*)/)[1].replace("bitcoin:",""))

What this means is:
1. It is safe from the malicious attack that you have provided above in terms of http://my-nifty-attack...
2. However, it will only accept QR codes that have the following form:
128jxLBCaS1MZpCtXEzN8TmwcetBHibP9L
bitcoin:128jxLBCaS1MZpCtXEzN8TmwcetBHibP9L

As per Winterfrost:
I tested Bitcoin Balance on a random URL. It takes whatever you put and tacks it onto https://blockexplorer.com/address/. So if I read a QR code for http://google.com, then the app sends me to https://blockexplorer.com/address/http://google.com.

They will simply get some kind of 404 or Address not found I presume.  Please checkout that tiny snippet on GIST -- that is the entirety of what this is as I simply made this quickly in an effort to give back to the bitcoin community which I have really come to value greatly.  As Erik Voorhees had once mentioned, you guys (bitcoin community) are truly amazing.

With that said, if you think the reader needs to be able to read other types of addresses aside from the "#2" listed above, please let me know.

Cheers,
rasengan


Co-Founder of Private Internet Access VPN service
Privacy Online News Blog
casascius
Mike Caldwell
VIP
Legendary
*
Offline Offline

Activity: 1344


The Casascius 1oz 10BTC Silver Round (w/ Gold B)


View Profile WWW
July 25, 2012, 05:37:34 PM
 #15

If using regex, then why not just use regex to snip out the first contiguous group of say 28-34 characters starting with '1' and the rest matching the base58 alphabet?  This would make it highly universal without adding any complexity.

Companies claiming they got hacked and lost your coins sounds like fraud so perfect it could be called fashionable.  I never believe them.  If I ever experience the misfortune of a real intrusion, I declare I have been honest about the way I have managed the keys in Casascius Coins.  I maintain no ability to recover or reproduce the keys, not even under limitless duress or total intrusion.  Remember that trusting strangers with your coins without any recourse is, as a matter of principle, not a best practice.  Don't keep coins online. Use paper wallets instead.
rasengan
Member
**
Offline Offline

Activity: 114



View Profile WWW
July 25, 2012, 05:54:49 PM
 #16

If using regex, then why not just use regex to snip out the first contiguous group of say 28-34 characters starting with '1' and the rest matching the base58 alphabet?  This would make it highly universal without adding any complexity.

Brilliant!  I will get on it in a few moments.  I have an appointment for a haircut real quick, and then I will change it as per your suggestion thereafter.

Thanks again, you always have the brightest ideas casascius.

Co-Founder of Private Internet Access VPN service
Privacy Online News Blog
rasengan
Member
**
Offline Offline

Activity: 114



View Profile WWW
July 25, 2012, 09:29:55 PM
 #17

casascius,

Here is your suggestion:
https://gist.github.com/3178816
/([1][123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{27,34})/

I have tried it with several strangely formulated QR codes and it seems to work well.  When a QR is not matched to the match expression, the app will just exit.

I'm uploading to Android Market (Google Play) now and it should be available within an hour.

Thanks again,
rasengan

edit: Hope this is what you meant. Wink

Co-Founder of Private Internet Access VPN service
Privacy Online News Blog
Stephen Gornick
Legendary
*
Offline Offline

Activity: 1988



View Profile
August 10, 2013, 10:45:41 PM
 #18

wondering if there's a simple Android app that will scan a QR of the address and return the balance?

Here's a new one:

Bitcoin Balance Scanner
by Beyondem Inc.
 - https://play.google.com/store/apps/details?id=com.beyondem.bitcoinbalance
 - http://www.reddit.com/r/Bitcoin/comments/1k3ws2

TheButterZone
Legendary
*
Offline Offline

Activity: 1610


Nemo me impune lacessit


View Profile WWW
August 10, 2013, 10:59:38 PM
 #19

It also exists for iOS and it's free to download on the appstore.

See : http://itunes.apple.com/en/app/scanbook-bitcoin-address-utility/id536215208?mt=8&ign-mpt=uo%3D2

Android too:
https://play.google.com/store/apps/details?id=paymium.paytunia.scanbook

ΜΟΛΩΝ ΛΑΒΕ! I sell stuff for BTC here here and here | Skirt & Kilts & Violin For Sale | Voiceover for BTC | Copy editing for BTC | THE Bitcoin Sound is here.
gpg_identity=http://pgp.thebutterzone.com | WoT feedback here & eBay feedback here | Buy BTC in San Diego, CA, or worldwide! | Get paid for taking surveys!
Change my name! "I am __ Satoshi __." | PayPal: Bitcoinese for "FU, I'm getting a chargeback up to 365 days later!" | Bitcoin voice chat
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!