Skip to content

Instantly share code, notes, and snippets.

@janfilips
Created July 14, 2018 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janfilips/e99f526ce7f10597119255f68b0c1015 to your computer and use it in GitHub Desktop.
Save janfilips/e99f526ce7f10597119255f68b0c1015 to your computer and use it in GitHub Desktop.
import os
import json
import web3
from web3 import Web3
from solc import compile_source
from web3.contract import ConciseContract
from web3.providers.rpc import HTTPProvider
# web3.py instance
w3 = Web3(HTTPProvider('https://ropsten.infura.io'))
# set pre-funded account as sender
w3.eth.defaultAccount = w3.eth.accounts
print(w3.eth.accounts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment