Bitcoin Forum
May 25, 2024, 03:04:37 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Simple way to get address balance ?  (Read 3642 times)
flatfly
Legendary
*
Offline Offline

Activity: 1078
Merit: 1016

760930


View Profile
January 29, 2014, 07:14:02 AM
 #21

Why make it complicated?  One-liner:

https://blockchain.info/q/addressbalance/1337sfeChyyzZLzdHLewXzcaAaJSNTM893
empoweoqwj
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500


View Profile
January 29, 2014, 10:12:46 AM
 #22

Cryptolator no comment on http://jsfiddle.net/thinkloop/XW9AF/....  Undecided

What do you mean by "no comment" ?


Isn't the fiddle kinda what you're looking for Smiley

Totally !! Thanks for the hint ! I'll play with that ! Tongue

Thanks !

I'm totally lost where this thread has headed ...
Abdussamad
Legendary
*
Offline Offline

Activity: 3612
Merit: 1564



View Profile
January 29, 2014, 12:30:41 PM
 #23

JSON is not javascript. It's a common data format for use on the web. Most programming languages have json parsing support. For example php, python both have it.

But if you just want the balance you can grab it in plain text format:

https://blockchain.info/q/addressbalance/1337sfeChyyzZLzdHLewXzcaAaJSNTM893?format=json

If you want confirmed balance then see here:

https://blockchain.info/q
Cryptolator (OP)
Hero Member
*****
Offline Offline

Activity: 508
Merit: 500



View Profile
January 29, 2014, 04:12:36 PM
 #24

Cryptolator no comment on http://jsfiddle.net/thinkloop/XW9AF/....  Undecided

What do you mean by "no comment" ?


Isn't the fiddle kinda what you're looking for Smiley

Totally !! Thanks for the hint ! I'll play with that ! Tongue

Thanks !

I'm totally lost where this thread has headed ...

Why ? The solution he gave me is working fine...
Cryptolator (OP)
Hero Member
*****
Offline Offline

Activity: 508
Merit: 500



View Profile
January 29, 2014, 04:13:44 PM
 #25

JSON is not javascript. It's a common data format for use on the web. Most programming languages have json parsing support. For example php, python both have it.

But if you just want the balance you can grab it in plain text format:

https://blockchain.info/q/addressbalance/1337sfeChyyzZLzdHLewXzcaAaJSNTM893?format=json

If you want confirmed balance then see here:

https://blockchain.info/q

This option does not work, the value given is not the one I'm looking for...
Cryptolator (OP)
Hero Member
*****
Offline Offline

Activity: 508
Merit: 500



View Profile
January 29, 2014, 04:14:36 PM
 #26


This option does not work, the value given is not the one I'm looking for...
bitpop
Legendary
*
Offline Offline

Activity: 2912
Merit: 1060



View Profile WWW
January 29, 2014, 04:17:10 PM
 #27


This option does not work, the value given is not the one I'm looking for...

Then you need to be more open minded and pay us to work.

Cryptolator (OP)
Hero Member
*****
Offline Offline

Activity: 508
Merit: 500



View Profile
January 29, 2014, 04:25:41 PM
 #28


This option does not work, the value given is not the one I'm looking for...

Then you need to be more open minded and pay us to work.

In fact, this option is working: http://jsfiddle.net/thinkloop/XW9AF/

I'm playing with it right now, but, yes, I'll probably pay someone here if he can do what I want, I've already paid another member here for another project, so I guess that I am already "open minded" Tongue

bitpop
Legendary
*
Offline Offline

Activity: 2912
Merit: 1060



View Profile WWW
January 29, 2014, 04:30:56 PM
 #29


This option does not work, the value given is not the one I'm looking for...

Then you need to be more open minded and pay us to work.

In fact, this option is working: http://jsfiddle.net/thinkloop/XW9AF/

I'm playing with it right now, but, yes, I'll probably pay someone here if he can do what I want, I've already paid another member here for another project, so I guess that I am already "open minded" Tongue



How exactly is that not working?

Cryptolator (OP)
Hero Member
*****
Offline Offline

Activity: 508
Merit: 500



View Profile
January 29, 2014, 04:37:57 PM
Last edit: January 29, 2014, 04:57:27 PM by Cryptolator
 #30


This option does not work, the value given is not the one I'm looking for...

Then you need to be more open minded and pay us to work.

In fact, this option is working: http://jsfiddle.net/thinkloop/XW9AF/

I'm playing with it right now, but, yes, I'll probably pay someone here if he can do what I want, I've already paid another member here for another project, so I guess that I am already "open minded" Tongue



How exactly is that not working?

Like I said, it Is working.

But to be clear on what I need I'll be more specific.
I want to have a list of address on a website, and you'll have three possible states for each of the address: "not funded" , "partially funded" and "fully funded", those states will be based on a predefined value, for exemple, "1 bitcoin" so it will need a database that will contain the address and value.

Ideally I would like to be able to have a search box where I can enter the first 8 char of the address and list the full address and the states.

Hope that make my intentions clearer ! Smiley

rnp
Member
**
Offline Offline

Activity: 65
Merit: 10

Bullish on BitCoins


View Profile WWW
January 29, 2014, 04:43:24 PM
 #31

I've been playing around trying to make it Client-Side here:

http://rabidnerd.com/bitcoin/coinbalance.php

Only BTC works because the others don't have CORS enabled (even Litecoin)...

It's incredibly messy right now with comments and such.. And really is very early.

Obviously Bitcoin doesn't exactly work this way, wallet balance is more valuable than address balance, but I was bored.

Very cool jsFiddle btw.. For some reason I couldn't get the JSON to work (I think I tried before I put the CORS), so I went old-school and parsed it. I also did the received-sent in order to try to get it to work on other currencies.. But without CORS they're useless.
thinkloop
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile
January 29, 2014, 07:08:17 PM
Last edit: January 29, 2014, 08:01:32 PM by thinkloop
 #32


This option does not work, the value given is not the one I'm looking for...

Then you need to be more open minded and pay us to work.

In fact, this option is working: http://jsfiddle.net/thinkloop/XW9AF/

I'm playing with it right now, but, yes, I'll probably pay someone here if he can do what I want, I've already paid another member here for another project, so I guess that I am already "open minded" Tongue



How exactly is that not working?

Like I said, it Is working.

But to be clear on what I need I'll be more specific.
I want to have a list of address on a website, and you'll have three possible states for each of the address: "not funded" , "partially funded" and "fully funded", those states will be based on a predefined value, for exemple, "1 bitcoin" so it will need a database that will contain the address and value.

Ideally I would like to be able to have a search box where I can enter the first 8 char of the address and list the full address and the states.

Hope that make my intentions clearer ! Smiley

Cryptolator are you trying to spread out your btc in 1 btc increments between differing addresses, and trying to build this system to manage that? Is this for privacy/security?
Cryptolator (OP)
Hero Member
*****
Offline Offline

Activity: 508
Merit: 500



View Profile
January 30, 2014, 05:34:04 AM
 #33


This option does not work, the value given is not the one I'm looking for...

Then you need to be more open minded and pay us to work.

In fact, this option is working: http://jsfiddle.net/thinkloop/XW9AF/

I'm playing with it right now, but, yes, I'll probably pay someone here if he can do what I want, I've already paid another member here for another project, so I guess that I am already "open minded" Tongue



How exactly is that not working?

Like I said, it Is working.

But to be clear on what I need I'll be more specific.
I want to have a list of address on a website, and you'll have three possible states for each of the address: "not funded" , "partially funded" and "fully funded", those states will be based on a predefined value, for exemple, "1 bitcoin" so it will need a database that will contain the address and value.

Ideally I would like to be able to have a search box where I can enter the first 8 char of the address and list the full address and the states.

Hope that make my intentions clearer ! Smiley

Cryptolator are you trying to spread out your btc in 1 btc increments between differing addresses, and trying to build this system to manage that? Is this for privacy/security?

Not exactly, but that's close, can't really talk about it right now...
Pages: « 1 [2]  All
  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!