Bitcoin Forum
April 23, 2024, 10:35:12 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is there a simple app to scan a QR and return a balance?  (Read 3479 times)
LoweryCBS (OP)
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


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?

1713911712
Hero Member
*
Offline Offline

Posts: 1713911712

View Profile Personal Message (Offline)

Ignore
1713911712
Reply with quote  #2

1713911712
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713911712
Hero Member
*
Offline Offline

Posts: 1713911712

View Profile Personal Message (Offline)

Ignore
1713911712
Reply with quote  #2

1713911712
Report to moderator
1713911712
Hero Member
*
Offline Offline

Posts: 1713911712

View Profile Personal Message (Offline)

Ignore
1713911712
Reply with quote  #2

1713911712
Report to moderator
1713911712
Hero Member
*
Offline Offline

Posts: 1713911712

View Profile Personal Message (Offline)

Ignore
1713911712
Reply with quote  #2

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

Activity: 1386
Merit: 1136


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 or hardware wallets instead.
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


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

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


tbcoin
Legendary
*
Offline Offline

Activity: 1022
Merit: 1000



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
Merit: 10


(: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: 1463
Merit: 1047


I outlived my lifetime membership:)


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.

Hardforks aren't that hard. It’s getting others to use them that's hard.
1GCDzqmX2Cf513E8NeThNHxiYEivU1Chhe
rasengan
Member
**
Offline Offline

Activity: 139
Merit: 37



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.

Joseon.com - The First Legally Recognized Cyber State
davout
Legendary
*
Offline Offline

Activity: 1372
Merit: 1007


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: 139
Merit: 37



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

Joseon.com - The First Legally Recognized Cyber State
LoweryCBS (OP)
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


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: 139
Merit: 37



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! :-)


Joseon.com - The First Legally Recognized Cyber State
casascius
Mike Caldwell
VIP
Legendary
*
Offline Offline

Activity: 1386
Merit: 1136


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 or hardware wallets instead.
Winterfrost
Full Member
***
Offline Offline

Activity: 574
Merit: 135


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.
rasengan
Member
**
Offline Offline

Activity: 139
Merit: 37



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


Joseon.com - The First Legally Recognized Cyber State
casascius
Mike Caldwell
VIP
Legendary
*
Offline Offline

Activity: 1386
Merit: 1136


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 or hardware wallets instead.
rasengan
Member
**
Offline Offline

Activity: 139
Merit: 37



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.

Joseon.com - The First Legally Recognized Cyber State
rasengan
Member
**
Offline Offline

Activity: 139
Merit: 37



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

Joseon.com - The First Legally Recognized Cyber State
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


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

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


TheButterZone
Legendary
*
Offline Offline

Activity: 3052
Merit: 1031


RIP Mommy


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

Saying that you don't trust someone because of their behavior is completely valid.
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!