from web3 import *
etherscan_provider = Web3.HTTPProvider( 'https://api.etherscan.io/api')
w3 = Web3(etherscan_provider)
signed_txn = w3.eth.account.signTransaction(dict(
gas = 2000000,
gasPrice= 234567897654321,
nonce=0,
to='0xABA024480E6B9e92B7e3332a2a3eb104F183D18C',
value= 100000,
chainId = 1
),
'0x2850d0xxxxxxxxxxxxxxxxxxxxxxxxxx')
w3.eth.sendRawTransaction(signed_txn.rawTransaction)
Return
File "/root/eth/lib/python3.6/site-packages/eth_utils/conversions.py", line 142, in hexstr_if_str
hexstr_or_primitive
ValueError: when sending a str, it must be a hex string. Got: 'Error! Missing Or invalid Module name'
What's the problem?