Post
Topic
Board Announcements (Altcoins)
Re: [ANN][YAC] YACoin ongoing development
by
sairon
on 01/06/2014, 10:27:15 UTC
http://explore.grokonet.com/ Is there any API for this block explorer?

Official explorer has been dead for ages
well, technically it's dead only since today. the motivation behind this decision is:
* it was running too damn slow to be of any use anyway
* the benefits of running that server didn't justify the cost (over $20/mo for something that's constantly moving through the thin line called "working/broken")
* some of the stat-generating cron jobs actually didn't even have a chance to complete as they were getting killed due to an out-of-memory condition

as a replacement, i'm running a (much cheaper but working and fast) new explorer at http://yacoin.unsha.net (it sucks, looking for javascript devs) along with enhanced electrum api. i'm documenting the original api (as it has no official docs that i'm aware of) and also my changes to it, the finished docs shoud be available later today.

as a quick fix for the coin mining comparison sites, here's a quick doc for the relevant api calls (for difficulty, hashrate, block reward, coin supply, block height and latest block; respectively):
Code:
$ echo '{"method": "blockchain.net.difficulty", "id": 0, "params": []}' | nc electrum.unsha.net 50001
{"id": 0, "result": 0.01548104}

$ echo '{"method": "blockchain.net.hashrate", "id": 0, "params": []}' | nc electrum.unsha.net 50001
{"id": 0, "result": 1108192.9181497758}

$ echo '{"method": "blockchain.net.blockreward", "id": 0, "params": []}' | nc electrum.unsha.net 50001
{"id": 0, "result": 50070000}

$ echo '{"method": "blockchain.net.coinsupply", "id": 0, "params": []}' | nc electrum.unsha.net 50001
{"id": 0, "result": 23037887792452}

$ echo '{"method": "blockchain.numblocks.subscribe", "id": 0, "params": []}' | nc electrum.unsha.net 50001
{"id": 0, "result": 576149}

$ echo '{"method": "blockchain.headers.subscribe", "id": 0, "params": []}' | nc electrum.unsha.net 50001
{"id": 0, "result": {"nonce": 17688, "prev_block_hash": "64c2a300de2372657c571ba01ccb4b2d666a62af3ad59b93253463316906eee9", "hash": "0000000bf3aaa90904defe5e2dc559da69e25205ceddad92ccdb58bfd7cc5948", "timestamp": 1401618292, "merkle_root": "a563c45d9fee71a9a4c0083d8bdbb0b1850986018c0e2df0d760fcc97a0da41b", "block_height": 576149, "difficulty": 0.01547291, "mint": 50080000, "size": 291, "totalsent": 50080000, "numtx": 1, "utxo_root": "4a3aeb6ed04606ff7c374fa36777cf8201e6058ab79b359de4ebe05a078f6ab9", "version": 3, "bits": 490774731}}

stats&graphs page is suspended until further notice (until i get some good explorer up and running)

the yac raffle if cancelled (it's not like millions of people used it anyway)