Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

anduschain-python SDK ( wrapped )

Project description



pip install anduscahin


from web3 import Web3
from anduschain.middleware import construct_sign_and_send_raw_middleware

my_provider = Web3.HTTPProvider('http:/RPC-URL:8545')
w3 = Web3(my_provider)

ADDRESS = '0xfef6f81c2c9e1fa327cad572d352b913bc074a0d'
KEY_FILE = './tmp/UTC--2019-09-30T08:50:41Z--fef6f81c2c9e1fa327cad572d352b913bc074a0d.json'

sender = Web3.toChecksumAddress(ADDRESS)

# read local keyfile
with open(KEY_FILE) as keyfile:
    encrypted_key =
    private_key = w3.eth.account.decrypt(encrypted_key, KEY_PASS)

# add anduschain middleware
w3.eth.defaultAccount = sender

    result = w3.eth.sendTransaction({'to': sender, 'gas': 21000, 'value': 1})
except Exception as err:
    print("=====Exception======", str(err))

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for anduschain, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size anduschain-1.0.1-py3-none-any.whl (5.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size anduschain-1.0.1.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page