Is there any software apart from Geth and Mist that offers the Javascript console? I want to use the console but I don't want to do all that syncing.
Parity does not have a console as far as I know and neither does MetaMask. Any other software out there?
Best Answer
Try
geth --light console
, available since v1.5.2, but listed under "Experimental Features". Syncs in minutesif not seconds.Update - The initial sync took 11 minutes. Subsequently, syncing 7 hours worth of blocks took 8 seconds.
I'll document some light client stats below.
Here are some stats (the current block is 2972534:
Checking the amount of disk space taken:
Checking a random account 0x5d03a3e0ab0fd3b00f1c3654b0765d923960c464 balance which is currently 4.03604217 ETH from EtherScan.
Checking the retrieval of The DAO events using the code from How do I retrieve the Voted events from The DAO, but only for 10 blocks, it took 12 seconds:
I'll now try to retrieve the events for 1,000 blocks:
I exited
geth
and restartedgeth --light console
and ran the same command as the previous section to retrieve events from 1,000 blocks and the results came back in 15 seconds.Conclusion:
geth --light
seems a bit unstable currently for the retrieval of events from a historical part of the blockchain. The first retrieval of events from 1,000 blocks did not return the data in a reasonable time (I waited 7 minutes). I stoppedgeth
and restarted it and ran the same command again. The block data for the 1,000 blocks was already downloaded and the events were retrieved the second time in 15 seconds.Update
Syncing 7 hours worth of blocks took 8 seconds: