Skip to content

Instantly share code, notes, and snippets.

Verifying my identity on Peepeth.com 0xb6a3f13173d04a785358ed19f2fb81dad342f294
@larspensjo
larspensjo / FindAccountTransactions.js
Created July 25, 2016 22:15
Find all transactions for an account.
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 February 27, 2016 16:46
geth panic output 2016-02-27
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 February 10, 2023 12:53
web3 script for printing Ethereum account balances
//
// 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
Verifying that +larsp is my Bitcoin username. You can send me #bitcoin here: https://onename.io/larsp