Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am eduadiez on github.
  • I am eduadiez (https://keybase.io/eduadiez) on keybase.
  • I have a public key ASCQgoj-FFlgQhFh1_Usv1uelo2IajplBagO-lHoO7BkZAo

To claim this, I am signing this object:

Web3 = require('web3')
var web3 = new Web3("ws://localhost:8546");
var SWTabi = [{ "constant": true, "inputs": [], "name": "name", "outputs": [{ "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "name": "_spender", "type": "address" }, { "name": "_amount", "type": "uint256" }], "name": "approve", "outputs": [{ "name": "success", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "creationBlock", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [{ "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_amount", "type": "uint256" }], "name": "transfer
@eduadiez
eduadiez / SWFT_ABI.json
Created January 30, 2018 20:33
SWFT_ABI.json
[
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}
# 1.- Download genesis
curl -O http://www.lethon.tk:9074/lethon.json
# 2.- Initialize
$HOME/Library/Application\ Support/Ethereum\ Wallet/binaries/Geth/unpacked/geth --datadir=$HOME/.lethon init lethon.json
# 3.- Create account
$HOME/Library/Application\ Support/Ethereum\ Wallet/binaries/Geth/unpacked/geth --datadir=$HOME/.lethon account new
# 4.- Init Ethereum Wallet
admin.startRPC("127.0.0.1", 8888, "*", "admin,db,eth,debug,miner,net,shh,txpool,personal,web3,web3_extended")
personal.unlockAccount(eth.accounts[0])
@eduadiez
eduadiez / gist:da7816f5b6cd89dcb0f74dca876cf3d9
Last active October 14, 2017 17:03
How to delete contracts from Ethereum Wallet (MIST)

You would need to open the console (CMD/CTRL + ALT + i) and type:

CustomContracts.find().fetch() CustomContracts.remove('id')

CustomContracts.remove(CustomContracts.find().fetch()[0]._id)