Skip to content

Instantly share code, notes, and snippets.

View genesis.json
"config": {
"chainId": 7,
"homesteadBlock": 0,
"daoForkBlock": 0,
"daoForkSupport": true,
"eip150Block": 0,
"eip150Hash": "0x5de1ee4135274003348e80b788e5afa4b18b18d320a5622218d5c493fedf5689",
"eip155Block": 0,
"eip158Block": 0
bas-vk / chat.js
Last active Mar 21, 2018
whisper chat demo
View chat.js
var chat = {
username: "<not set>",
topic: "0xfeedbabe",
key: "",
identity: "",
pollInterval: null,
filter: null,
setUsername: function(name) {
this.username = name;

Keybase proof

I hereby claim:

  • I am bas-vk on github.
  • I am basvk ( on keybase.
  • I have a public key ASDtFz0U4QjTDaeUgWx50hjddvXOHZMvkqZ3xprspTMARgo

To claim this, I am signing this object:

bas-vk / ercevocer.js
Last active Jul 6, 2020
Use solidity ecrecover with signature calculated with eth_sign
View ercevocer.js
// Change accountToSignWith to the address of your account.
var Web3 = require('web3');
var web3 = new Web3();
web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545'));
var accountToSignWith = '0xbedcf417ff2752d996d2ade98b97a6f0bef4beb9';
var message = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Tubulum fuisse, qua illum, cuius is condemnatus est rogatione, P. Eaedem res maneant alio modo.'
View gist:6642a3f110a270917619171ab02203a7
#!/usr/bin/env node
var net = require("net");
var client = net.connect({
path: "/home/bas/.ethereum/geth.ipc" //"/tmp/dd/geth.ipc"
}, function() {
// createSyncingSubscription();
View json-stream.js
var oboe = require('oboe')
var net = require('net');
var client = net.createConnection("/tmp/geth.ipc");
client.on("connect", function() {
// called each time a full json object is parsed
View bloom.go
package main
import (
ethereum ""
View missinglogs.go
package main
import (
You can’t perform that action at this time.