construct_sign_and_send_raw_middleware_anvil
Documentation for eth_defi.middleware.construct_sign_and_send_raw_middleware_anvil function.
- construct_sign_and_send_raw_middleware_anvil(private_key_or_account)[source]
Capture transactions sign and send as raw transactions
Note
This is web3.py middleware that has been fixed for Anvil/other JSON-RPC compatibility.
Keyword arguments: private_key_or_account – A single private key or a tuple, list or set of private keys. Keys can be any of the following formats:
An eth_account.LocalAccount object
An eth_keys.PrivateKey object
A raw private key as a hex string or byte string