Pages:
Author

Topic: Python scripting - page 3. (Read 2584 times)

full member
Activity: 169
Merit: 100
August 17, 2016, 01:52:09 PM
#1
Hi, i'm working on a small project and got stuck.
Maybe somebody coud lead me?

I'm running a full node and want a py-script to check the balance of an address,
That's the code i am using, but really no idea, how the url needs to look, to get get the balance from my bitcore full node, already tried "http://localhost:3001/insight/"+address+"" but, didn't work!

That's the original code i was using:

Code:
def scan(address,pkey): 
req = urllib2.Request("http://btc.blockr.io/api/v1/address/info/"+address+"")
res = urllib2.urlopen(req)
json_data = json.load(res)
Pages:
Jump to: