hi,
I have a short question. I'm trying since 2-3 days now to access my local wallet using groovy and I'm sadly failling at this and running out of idea's by now. Does anybody has a simple groovy client?
I always get the error message: 'internal server error' without any details what is actually wrong.
my cleint:
def authSite = new HTTPBuilder('http://127.0.0.1:8332/',JSON)
authSite.auth.basic 'username', 'password'
authSite.get(path: 'getbalance',
query: [:]) { resp, json ->
println resp.status
json.each { // iterate over JSON 'status' object in the response:
println it
}
}
if I use the bitcoind tool on the command line, it works fine. So I'm sure the daemon is running.
thanks,
g.