Skip to content

Instantly share code, notes, and snippets.

View ivandru's full-sized avatar
gist.github.com/alexgleason/63ad2b8ecf86b683cf026681f85b0165

Ivan Andrusenko ivandru

gist.github.com/alexgleason/63ad2b8ecf86b683cf026681f85b0165
  • Kharkiv, Ukraine
View GitHub Profile
@ivandru
ivandru / send.py
Created January 4, 2019 16:22
Simple Ether Transfer on Ropsten
import web3
import json
from eth_account import Account
from web3 import Web3
w3 = Web3(Web3.HTTPProvider('https://ropsten.infura.io/v3/apiKey'))
acct = Account.privateKeyToAccount('private key')
nonce = w3.eth.getTransactionCount(acct.address)
transaction = {
'to' : toAccount,
'value': 1,