Skip to content

Instantly share code, notes, and snippets.

View Verifying my Peepeth
Verifying my identity on Peepeth.com 0xb6a3f13173d04a785358ed19f2fb81dad342f294
@larspensjo
larspensjo / FindAccountTransactions.js
Created Jul 25, 2016
Find all transactions for an account.
View FindAccountTransactions.js
function FindAccountTransactions(start, end) {
find = "0x304a554a310c7e546dfe434669c62820b7d83490";
// find = "0x80a103beced8a6854a7a82ac2d48cdab0eb21cc0";
total = 0;
found = "";
for (bn = start; bn < end; bn++) {
block = eth.getBlock(bn);
transList = block.transactions;
total += transList.length;
for (i = 0; i < transList.length; i++) {
@larspensjo
larspensjo / gist:93f9d8fb7f6dec30e742
Created Feb 27, 2016
geth panic output 2016-02-27
View gist:93f9d8fb7f6dec30e742
I0227 17:44:16.248736 10784 cmd.go:133] Force quitting: this might not end so well.
panic: boom
goroutine 129 [running]:
github.com/ethereum/go-ethereum/cmd/utils.StartEthereum.func1(0xc08209c140)
D:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/cmd/utils/cmd.go:134 +0x6bf
created by github.com/ethereum/go-ethereum/cmd/utils.StartEthereum
D:/builds/geth_win32/build-go-win-master/go/src/github.com/ethereum/go-ethereum/cmd/utils/cmd.go:135 +0x2d7
goroutine 1 [chan receive, 3484 minutes]:
@larspensjo
larspensjo / checkAllBalances.js
Last active Jul 20, 2018
web3 script for printing Ethereum account balances
View checkAllBalances.js
//
// Pretty print accounts summary. Constant function, does not consume gas. No unlocks needed.
//
// Usage:
// Save to file, e.g. '/tmp/checkAllBalances.js'
// From the geth console, do: loadScript('/tmp/checkAllBalances.js');
// Execute with checkAllBalances()
//
// For the price feed ABI, see http://forum.ethereum.org/discussion/3417/ask-%CE%9E-community-what-do-you-think-of-our-new-smart-contract-pricefeed
View gist:c56985dea240412fc465
Verifying that +larsp is my Bitcoin username. You can send me #bitcoin here: https://onename.io/larsp
You can’t perform that action at this time.