Cryptolator (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 28, 2014, 02:16:03 AM |
|
I need to make a simple website that will monitor a list of address balance, what would be the easiest way to gather the information ? Thanks in advance for you help ! ![Wink](https://bitcointalk.org/Smileys/default/wink.gif)
|
|
|
|
Cryptolator (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 28, 2014, 04:47:59 AM |
|
Their must be a simple way to query something and receive the current balance. I've look everywhere and can't find anything that work ![Sad](https://bitcointalk.org/Smileys/default/sad.gif)
|
|
|
|
empoweoqwj
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 28, 2014, 04:49:01 AM |
|
Their must be a simple way to query something and receive the current balance. I've look everywhere and can't find anything that work ![Sad](https://bitcointalk.org/Smileys/default/sad.gif) That's not how bitcoin works, it works on inputs and outputs.
|
|
|
|
Cryptolator (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 28, 2014, 04:54:39 AM |
|
Their must be a simple way to query something and receive the current balance. I've look everywhere and can't find anything that work ![Sad](https://bitcointalk.org/Smileys/default/sad.gif) That's not how bitcoin works, it works on inputs and outputs. I do understand that, but why is that on Blockchain.info you can get the current balance ? ![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fimage.bayimg.com%2Fd42b63f83d7bca7dc84e01508e7d26ea910eb53c.jpg&t=665&c=p_yq1XI6EX7Xeg)
|
|
|
|
eternaluniverse
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 28, 2014, 05:14:01 AM |
|
because they created a value for (addressX_input - addressX_output). You can get the balance of specific addresses via client but the way its calculated for everyone is through the blockchain
|
|
|
|
Cryptolator (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 28, 2014, 05:22:41 AM |
|
because they created a value for (addressX_input - addressX_output). You can get the balance of specific addresses via client but the way its calculated for everyone is through the blockchain
Ok, but their must be a way to grab the balance by querying blockchain.info ? By the way thanks for your info, it's really appreciated !
|
|
|
|
empoweoqwj
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 28, 2014, 05:25:55 AM |
|
because they created a value for (addressX_input - addressX_output). You can get the balance of specific addresses via client but the way its calculated for everyone is through the blockchain
Ok, but their must be a way to grab the balance by querying blockchain.info ? By the way thanks for your info, it's really appreciated ! Have you looked through the blockchain API?
|
|
|
|
Cryptolator (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 28, 2014, 05:31:37 AM |
|
because they created a value for (addressX_input - addressX_output). You can get the balance of specific addresses via client but the way its calculated for everyone is through the blockchain
Ok, but their must be a way to grab the balance by querying blockchain.info ? By the way thanks for your info, it's really appreciated ! Have you looked through the blockchain API? Yes, I think the solution may be: http://blockchain.info/address/$bitcoin_address?format=json Which will return this: { "hash160":"660d4ef3a743e3e696ad990364e555c271ad504b", "address":"1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F", "n_tx":17, "n_unredeemed":2, "total_received":1031350000, "total_sent":931250000, "final_balance":100100000, "txs":[--Array of Transactions--] } And then, I isolate the "final_balance" value Not too sure how to implement it on a website tho, but I think it might be the way to go...
|
|
|
|
empoweoqwj
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 28, 2014, 05:39:23 AM |
|
because they created a value for (addressX_input - addressX_output). You can get the balance of specific addresses via client but the way its calculated for everyone is through the blockchain
Ok, but their must be a way to grab the balance by querying blockchain.info ? By the way thanks for your info, it's really appreciated ! Have you looked through the blockchain API? Yes, I think the solution may be: http://blockchain.info/address/$bitcoin_address?format=json Which will return this: { "hash160":"660d4ef3a743e3e696ad990364e555c271ad504b", "address":"1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F", "n_tx":17, "n_unredeemed":2, "total_received":1031350000, "total_sent":931250000, "final_balance":100100000, "txs":[--Array of Transactions--] } And then, I isolate the "final_balance" value Not too sure how to implement it on a website tho, but I think it might be the way to go... There you go ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
|
|
|
|
thinkloop
Newbie
Offline
Activity: 41
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 28, 2014, 07:59:45 AM |
|
Yes, I think the solution may be: http://blockchain.info/address/$bitcoin_address?format=json Which will return this: { "hash160":"660d4ef3a743e3e696ad990364e555c271ad504b", "address":"1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F", "n_tx":17, "n_unredeemed":2, "total_received":1031350000, "total_sent":931250000, "final_balance":100100000, "txs":[--Array of Transactions--] } And then, I isolate the "final_balance" value Not too sure how to implement it on a website tho, but I think it might be the way to go... I think you will need to get an api key from blockchain to be able to use that in code: http://blockchain.info/api/api_create_code
|
|
|
|
Minthos
Newbie
Offline
Activity: 14
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 28, 2014, 08:11:38 AM |
|
because they created a value for (addressX_input - addressX_output). You can get the balance of specific addresses via client but the way its calculated for everyone is through the blockchain
Ok, but their must be a way to grab the balance by querying blockchain.info ? By the way thanks for your info, it's really appreciated ! Have you looked through the blockchain API? Yes, I think the solution may be: http://blockchain.info/address/$bitcoin_address?format=json Which will return this: { "hash160":"660d4ef3a743e3e696ad990364e555c271ad504b", "address":"1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F", "n_tx":17, "n_unredeemed":2, "total_received":1031350000, "total_sent":931250000, "final_balance":100100000, "txs":[--Array of Transactions--] } And then, I isolate the "final_balance" value Not too sure how to implement it on a website tho, but I think it might be the way to go... JSON is javascript. If you know javascript, all you have to do is read the API documentation from blockchain.info and write the code. If you don't know javascript you must learn it :)
|
|
|
|
bitpop
Legendary
Offline
Activity: 2912
Merit: 1060
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 28, 2014, 10:12:47 AM |
|
Btcbalance.net
|
|
|
|
Cryptolator (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 28, 2014, 07:41:31 PM |
|
because they created a value for (addressX_input - addressX_output). You can get the balance of specific addresses via client but the way its calculated for everyone is through the blockchain
Ok, but their must be a way to grab the balance by querying blockchain.info ? By the way thanks for your info, it's really appreciated ! Have you looked through the blockchain API? Yes, I think the solution may be: http://blockchain.info/address/$bitcoin_address?format=json Which will return this: { "hash160":"660d4ef3a743e3e696ad990364e555c271ad504b", "address":"1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F", "n_tx":17, "n_unredeemed":2, "total_received":1031350000, "total_sent":931250000, "final_balance":100100000, "txs":[--Array of Transactions--] } And then, I isolate the "final_balance" value Not too sure how to implement it on a website tho, but I think it might be the way to go... JSON is javascript. If you know javascript, all you have to do is read the API documentation from blockchain.info and write the code. If you don't know javascript you must learn it ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) My JavaScript skills are limited, I think I'll have to hire someone ! ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
|
|
|
|
thinkloop
Newbie
Offline
Activity: 41
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 28, 2014, 10:02:33 PM |
|
because they created a value for (addressX_input - addressX_output). You can get the balance of specific addresses via client but the way its calculated for everyone is through the blockchain
Ok, but their must be a way to grab the balance by querying blockchain.info ? By the way thanks for your info, it's really appreciated ! Have you looked through the blockchain API? Yes, I think the solution may be: http://blockchain.info/address/$bitcoin_address?format=json Which will return this: { "hash160":"660d4ef3a743e3e696ad990364e555c271ad504b", "address":"1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F", "n_tx":17, "n_unredeemed":2, "total_received":1031350000, "total_sent":931250000, "final_balance":100100000, "txs":[--Array of Transactions--] } And then, I isolate the "final_balance" value Not too sure how to implement it on a website tho, but I think it might be the way to go... JSON is javascript. If you know javascript, all you have to do is read the API documentation from blockchain.info and write the code. If you don't know javascript you must learn it ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) My JavaScript skills are limited, I think I'll have to hire someone ! ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) You looking for something like this: http://jsfiddle.net/thinkloop/XW9AF/
|
|
|
|
empoweoqwj
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 29, 2014, 03:47:46 AM |
|
because they created a value for (addressX_input - addressX_output). You can get the balance of specific addresses via client but the way its calculated for everyone is through the blockchain
Ok, but their must be a way to grab the balance by querying blockchain.info ? By the way thanks for your info, it's really appreciated ! Have you looked through the blockchain API? Yes, I think the solution may be: http://blockchain.info/address/$bitcoin_address?format=json Which will return this: { "hash160":"660d4ef3a743e3e696ad990364e555c271ad504b", "address":"1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F", "n_tx":17, "n_unredeemed":2, "total_received":1031350000, "total_sent":931250000, "final_balance":100100000, "txs":[--Array of Transactions--] } And then, I isolate the "final_balance" value Not too sure how to implement it on a website tho, but I think it might be the way to go... JSON is javascript. If you know javascript, all you have to do is read the API documentation from blockchain.info and write the code. If you don't know javascript you must learn it ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) My JavaScript skills are limited, I think I'll have to hire someone ! ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) You should learn it dude - its not hard. Web programming is (often) heavily dependent on .js now
|
|
|
|
Cryptolator (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 29, 2014, 04:08:13 AM |
|
because they created a value for (addressX_input - addressX_output). You can get the balance of specific addresses via client but the way its calculated for everyone is through the blockchain
Ok, but their must be a way to grab the balance by querying blockchain.info ? By the way thanks for your info, it's really appreciated ! Have you looked through the blockchain API? Yes, I think the solution may be: http://blockchain.info/address/$bitcoin_address?format=json Which will return this: { "hash160":"660d4ef3a743e3e696ad990364e555c271ad504b", "address":"1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F", "n_tx":17, "n_unredeemed":2, "total_received":1031350000, "total_sent":931250000, "final_balance":100100000, "txs":[--Array of Transactions--] } And then, I isolate the "final_balance" value Not too sure how to implement it on a website tho, but I think it might be the way to go... JSON is javascript. If you know javascript, all you have to do is read the API documentation from blockchain.info and write the code. If you don't know javascript you must learn it ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) My JavaScript skills are limited, I think I'll have to hire someone ! ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) You should learn it dude - its not hard. Web programming is (often) heavily dependent on .js now I'll give a try ! ![Wink](https://bitcointalk.org/Smileys/default/wink.gif)
|
|
|
|
thinkloop
Newbie
Offline
Activity: 41
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 29, 2014, 04:23:29 AM |
|
|
|
|
|
Cryptolator (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 29, 2014, 04:32:23 AM |
|
What do you mean by "no comment" ?
|
|
|
|
thinkloop
Newbie
Offline
Activity: 41
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 29, 2014, 04:36:14 AM |
|
What do you mean by "no comment" ? Isn't the fiddle kinda what you're looking for ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
|
|
|
|
Cryptolator (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
January 29, 2014, 04:37:24 AM |
|
What do you mean by "no comment" ? Isn't the fiddle kinda what you're looking for ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) Totally !! Thanks for the hint ! I'll play with that ! ![Tongue](https://bitcointalk.org/Smileys/default/tongue.gif) Thanks !
|
|
|
|
|