Peerchain.co is permanently down

https://peerchain.co

https://peerchain.co/api/v1/blockLatest/

is where Peerbox was pulling info on latest block, to compare health of local blockchain with the network.
This feature (peerbox-info --health) was introduced to enable users to make sure they are running on the right chain.
With this API down, this feature will no longer function.

I will look for another public API and fix this in next Peerbox release.
If you know some API like that, please help.

I need this info from the API:

heightInt, hash, previousblockhash, merkleroot

Why is it permanently down? JetJet manages this website right?

I thought he was running the NuExplorer as well. Maybe the Nu team knows what happened and if it’s temporary?

Hey peerchemist, you can use my site: http://peerchain.net/api/blocks/last

Is there anything else you would need? API examples: http://peerchain.net/api

Hi snakie,

you know what would be really really cool? To be able to get data needed for finding stakes!

I am porting kac-s findstake to findstakejs at the moment. With this everyone will be able to find out when a stake is likely to be minted somewhere in future just by entering their txid with their browser/firefoxOS/phonegap app. Github: https://github.com/jointhepartypooper/FindstakeJS/

What is needed to calc a hash is the following:
BlockFromTime int64
StakeModifier uint64 string
PrevTxOffset uint32
PrevTxTime int64
PrevTxOutIndex uint32
PrevTxOutValue int64
IsProtocolV03 bool
StakeMinAge int64
TxTime int64

But if you could extend the tx api with fields
BlockTime
BlockStakeModifier
previoustxOffset
previoustxTxTime

, it would make my project so much easier.

I spend some time yesterday documenting how these data is to be retrieved here: http://www.peercointalk.org/index.php?topic=3802.msg36829#msg36829

I ve already extracted the db from kac-s project to a readable json format till block height 142000:
https://onedrive.live.com/redir?resid=DB7D019CE8BD8E40!106

[quote=“snakie, post:3, topic:3265”]Hey peerchemist, you can use my site: http://peerchain.net/api/blocks/last

Is there anything else you would need? API examples: http://peerchain.net/api[/quote]

alright, I will check it out.

@thehuntergames

Excellent! Get this tool to some host, provide API and I will include it in Peerbox.

[quote=“Sentinelrv, post:2, topic:3265”]Why is it permanently down? JetJet manages this website right?

I thought he was running the NuExplorer as well. Maybe the Nu team knows what happened and if it’s temporary?[/quote]
JetJet let me know that the traffic to the site was very low versus the cost to keep it running. I hope he changes his mind and considers donations or advertising to get it back up and running.
But at least we have a solution for Peerbox now.