construct_sign_and_send_raw_middleware#

construct_sign_and_send_raw_middleware(private_key_or_account)[source]#

Capture transactions sign and send as raw transactions

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

Return type:

Callable[[Callable[[RPCEndpoint, Any], RPCResponse], Web3], Any]