• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

Using darkcoin-abe

Thanks Guys. I think I will keep on trying to learn about the data before I get this running.

One more quick question though, I have found out how to get a wallet balance, but the wallet identifier is the public key hash (pubkey.pubkey_hash). How do I get the public key hash for a wallet address?
I guess you are looking for smth like that https://github.com/bitcoin-abe/bitc...7f843afff9a8c86d93fe7c77fadf/Abe/abe.py#L1356
/q/addresstohash/

EDIT: errr.... gave you link to bitcoin one, sorry... here is the correct one https://github.com/darkcoin/darkcoin-abe/blob/master/Abe/abe.py#L1610
 
I guess you are looking for smth like that https://github.com/bitcoin-abe/bitc...7f843afff9a8c86d93fe7c77fadf/Abe/abe.py#L1356
/q/addresstohash/

EDIT: errr.... gave you link to bitcoin one, sorry... here is the correct one https://github.com/darkcoin/darkcoin-abe/blob/master/Abe/abe.py#L1610
That's great. Thanks for that. I take it this is the same as using

http://explorer.darkcoin.io/chain/Darkcoin/q/addresstohash/WALLETADDRESS

I'm guessing there is a way to run this command locally on my server?
 
That's great. Thanks for that. I take it this is the same as using

http://explorer.darkcoin.io/chain/Darkcoin/q/addresstohash/WALLETADDRESS

I'm guessing there is a way to run this command locally on my server?
Not sure what you need but basically:
1. you can grab pieces of code from there and util.py and build your small python script that does only this
2. you can curl yourself from bash ;)
Code:
$ curl http://explorer.darkcoin.io/chain/Darkcoin/q/addresstohash/WALLETADDRESS
000000000000000000000000000008F2F5A033D1
 
Not sure what you need but basically:
1. you can grab pieces of code from there and util.py and build your small python script that does only this
2. you can curl yourself from bash ;)
Code:
$ curl http://explorer.darkcoin.io/chain/Darkcoin/q/addresstohash/WALLETADDRESS
000000000000000000000000000008F2F5A033D1


I might be way off, but I thought you may be able to do something like...

Code:
$ 127.0.0.1/chain/Darkcoin/q/addresstohash/WALLETADDRESS
000000000000000000000000000008F2F5A033D1
 
I might be way off, but I thought you may be able to do something like...

Code:
$ 127.0.0.1/chain/Darkcoin/q/addresstohash/WALLETADDRESS
000000000000000000000000000008F2F5A033D1
sure but only if you execute this on exact same server - just use curl command to send http request
Code:
$ curl http://127.0.0.1/chain/Darkcoin/q/addresstohash/WALLETADDRESS
000000000000000000000000000008F2F5A033D1
note: be aware that curl 7.35 and below has some strange bug preventing it from successfully resolve localhost addresses
 
sure but only if you execute this on exact same server - just use curl command to send http request
Code:
$ curl http://127.0.0.1/chain/Darkcoin/q/addresstohash/WALLETADDRESS
000000000000000000000000000008F2F5A033D1
note: be aware that curl 7.35 and below has some strange bug preventing it from successfully resolve localhost addresses


I'm getting curl failed to connect to localhost port 80: connection refused. :confused::confused::confused::confused: I am going back to the readme's and will try and see what I've done wrong.
 
I'm getting curl failed to connect to localhost port 80: connection refused. :confused::confused::confused::confused: I am going back to the readme's and will try and see what I've done wrong.
Code:
sudo netstat -an | grep 80
This will give you the host your web service is bind to. To be able to serve both localhost and external requests you need to bind web service to 0.0.0.0

But as far as I see you are behind nginx so I guess your run abe on some other port (2750 is default)
Code:
sudo netstat -an | grep 2750
If it's like that - you can just bind abe itself (check "host" in your abe.conf) and then you should be able curl http://localhost:2750/ internally while keeping nginix config untouched.
 
@calnaughtonjnr

Did you ever get abe up and running? I'm trying to get it to run locally with mySQL.
So sorry! I didn't see this message. Only saw it as I need some of the info in this thread again.

I did have it running, yes. I but haven't used it for a while. I need it back up and running now, so will be getting back into it. I'll do my best to help if you still need it, but I'm no expert. Just standing on the shoulders of giants :grin:
 
So sorry! I didn't see this message. Only saw it as I need some of the info in this thread again.

I did have it running, yes. I but haven't used it for a while. I need it back up and running now, so will be getting back into it. I'll do my best to help if you still need it, but I'm no expert. Just standing on the shoulders of giants :grin:

Thanks for the reply. I'm actually getting help from one of the giants now. Once I get ABE up and running I'll start working on an API.
 
Guys, I have this working great now. Only problem is the speed. I see that I should be using FastCGi to get the performance up. I've read the readme on the Git page, but could do with a bit of help if anyone has the time.

dirty way - you can set up uptimerobot.com HTTP(s) type monitor and point it to your abe :cool:

UdjinM6, just got round to needing to use this. It may be dirty, but it works great. Just what I needed :grin:. Cheers mate. Sent you a tip but can't link to it cos I'm having some block explorer issues.
 
Back
Top