Author

Topic: Bitcoin api (Read 578 times)

sr. member
Activity: 496
Merit: 254
October 25, 2016, 08:41:32 AM
#11
Simple thing, but I cannot find a proper source - I want to get address but presented in btc not satoshi like eg blockchain gives with q/addressbalance/address

if you can see it in satoshi's just divide by 100,000,000
As simple as that. OP everything has been made clear to you, no point asking for more question or clarification. Take it or leave but if i am wrong the forum members who know better can correct me. Hope I am making sense.
legendary
Activity: 1042
Merit: 2805
Bitcoin and C♯ Enthusiast
October 24, 2016, 06:58:36 AM
#10
Maybe tell us about what exactly you are trying to do so we can help you better.

If it is only a matter of showing it in "bitcoin" instead of "satoshi" you can just change the format of your data right before showing it (in your interface).

There should be another source - on one page I found api of many coins besides btc, but no other configurable api for such a coin?

In the link OmegaStarScream gave, you should go to "Address balance" section (use Ctrl+F to find it) and here is the link to an example:
https://btc.blockr.io/api/v1/address/balance/198aMn6ZYAczwrE5NvNTUMyJ5qkfy4g3Hi
response:
Code:
{"status":"success","data":{"address":"198aMn6ZYAczwrE5NvNTUMyJ5qkfy4g3Hi","balance":8000.00236957,"balance_multisig":0},"code":200,"message":""}
now deserialize this JSON and get the balance key which is in bitcoin not satoshi.
staff
Activity: 3500
Merit: 6152
October 24, 2016, 05:58:05 AM
#9
There should be another source - on one page I found api of many coins besides btc, but no other configurable api for such a coin?
e

I checked every (or almost every) service that have a Bitcoin API and Blockr (what I linked above) is probably the only one that gives the results in BTC and not in Satoshis so If you search a service where It only gives you the balance , you may find one .. but It will be probably in Satoshi so I guess you won't be anything that works for you 100% , instead you should do it programmatically
newbie
Activity: 38
Merit: 0
October 24, 2016, 05:42:47 AM
#8
Any ideas?
newbie
Activity: 38
Merit: 0
October 23, 2016, 02:05:03 PM
#7
There should be another source - on one page I found api of many coins besides btc, but no other configurable api for such a coin?
staff
Activity: 3500
Merit: 6152
October 23, 2016, 12:40:00 PM
#6
Blockr API should do the job for you , check the "Address balance" part : https://blockr.io/documentation/api
It's also possible to check different addresses balance at one time : http://btc.blockr.io/api/v1/address/balance/198aMn6ZYAczwrE5NvNTUMyJ5qkfy4g3Hi,1L8meqhMTRpxasdGt8DHSJfscxgHHzvPgk .

Looks better, can I add any parameters to it to return only balance?

I don't think so , the only optional parameter you could add or remove is "confirmations"  as far as I know. It shouldn't be that hard to do (programmatically) If you have some programming knowledge though.
newbie
Activity: 38
Merit: 0
October 23, 2016, 12:17:58 PM
#5
Blockr API should do the job for you , check the "Address balance" part : https://blockr.io/documentation/api
It's also possible to check different addresses balance at one time : http://btc.blockr.io/api/v1/address/balance/198aMn6ZYAczwrE5NvNTUMyJ5qkfy4g3Hi,1L8meqhMTRpxasdGt8DHSJfscxgHHzvPgk .

Looks better, can I add any parameters to it to return only balance?
staff
Activity: 3500
Merit: 6152
October 23, 2016, 12:09:03 PM
#4
Blockr API should do the job for you , check the "Address balance" part : https://blockr.io/documentation/api
It's also possible to check different addresses balance at one time : http://btc.blockr.io/api/v1/address/balance/198aMn6ZYAczwrE5NvNTUMyJ5qkfy4g3Hi,1L8meqhMTRpxasdGt8DHSJfscxgHHzvPgk .
newbie
Activity: 38
Merit: 0
October 23, 2016, 11:53:40 AM
#3
Yes, but I'm forced to display it directly from given api, with no calculations.
legendary
Activity: 4396
Merit: 4755
October 23, 2016, 11:41:12 AM
#2
Simple thing, but I cannot find a proper source - I want to get address but presented in btc not satoshi like eg blockchain gives with q/addressbalance/address

if you can see it in satoshi's just divide by 100,000,000
newbie
Activity: 38
Merit: 0
October 23, 2016, 11:03:59 AM
#1
Simple thing, but I cannot find a proper source - I want to get address but presented in btc not satoshi like eg blockchain gives with q/addressbalance/address
Jump to: