Bitcoin Forum
November 11, 2024, 09:08:18 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin api  (Read 578 times)
felixyz (OP)
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile
October 23, 2016, 04:03:59 PM
 #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
franky1
Legendary
*
Offline Offline

Activity: 4396
Merit: 4761



View Profile
October 23, 2016, 04:41:12 PM
 #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

I DO NOT TRADE OR ACT AS ESCROW ON THIS FORUM EVER.
Please do your own research & respect what is written here as both opinion & information gleaned from experience. many people replying with insults but no on-topic content substance, automatically are 'facepalmed' and yawned at
felixyz (OP)
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile
October 23, 2016, 04:53:40 PM
 #3

Yes, but I'm forced to display it directly from given api, with no calculations.
OmegaStarScream
Staff
Legendary
*
Offline Offline

Activity: 3654
Merit: 6432



View Profile
October 23, 2016, 05: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 .

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
felixyz (OP)
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile
October 23, 2016, 05: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?
OmegaStarScream
Staff
Legendary
*
Offline Offline

Activity: 3654
Merit: 6432



View Profile
October 23, 2016, 05: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.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
felixyz (OP)
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile
October 23, 2016, 07: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?
felixyz (OP)
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile
October 24, 2016, 10:42:47 AM
 #8

Any ideas?
OmegaStarScream
Staff
Legendary
*
Offline Offline

Activity: 3654
Merit: 6432



View Profile
October 24, 2016, 10: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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Coding Enthusiast
Legendary
*
Offline Offline

Activity: 1042
Merit: 2805


Bitcoin and C♯ Enthusiast


View Profile WWW
October 24, 2016, 11: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.

Projects List+Suggestion box
Donate: 1Q9s or bc1q
|
|
|
FinderOuter(0.19.1)Ann-git
Denovo(0.7.0)Ann-git
Bitcoin.Net(0.26.0)Ann-git
|
|
|
BitcoinTransactionTool(0.11.0)Ann-git
WatchOnlyBitcoinWallet(3.2.1)Ann-git
SharpPusher(0.12.0)Ann-git
fiomcorka
Sr. Member
****
Offline Offline

Activity: 496
Merit: 254


View Profile
October 25, 2016, 01:41:32 PM
 #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.
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!