gnosis/eth/ethereum_client.py
def send_eth_to(self, private_key: str, to: str, gas_price: int, value: int, gas: int=22000,
                    retry: bool = False, block_identifier=None, max_eth_to_send: int = 0) -> bytes:
        """
        Send ether using configured account
        :param to: to
        :param gas_price: gas_price
        :param value: value(wei)
        :param gas: gas, defaults to 22000
        :param retry: Retry if a problem is found
        :param block_identifier: None default, 'pending' not confirmed txs
        :return: tx_hash
        """

        assert check_checksum(to)
        if max_eth_to_send and value > self.w3.toWei(max_eth_to_send, 'ether'):
            raise EtherLimitExceeded('%d is bigger than %f' % (value, max_eth_to_send))

        tx = {
            'to': to,
            'value': value,
            'gas': gas,
            'gasPrice': gas_price,
        }

        return self.send_unsigned_transaction(tx, private_key=private_key, retry=retry,
                                              block_identifier=block_identifier)
def send_eth_to(self, private_key: str, to: str, gas_price: int, value: int, gas: int=22000,
                    retry: bool = False, block_identifier=None, max_eth_to_send: int = 0) -> bytes:
        """
        Send ether using configured account
        :param to: to
        :param gas_price: gas_price
        :param value: value(wei)
        :param gas: gas, defaults to 22000
        :param retry: Retry if a problem is found
        :param block_identifier: None default, 'pending' not confirmed txs
        :return: tx_hash
        """

        assert check_checksum(to)
        if max_eth_to_send and value > self.w3.toWei(max_eth_to_send, 'ether'):
            raise EtherLimitExceeded('%d is bigger than %f' % (value, max_eth_to_send))

        tx = {
            'to': to,
            'value': value,
            'gas': gas,
            'gasPrice': gas_price,
        }

        return self.send_unsigned_transaction(tx, private_key=private_key, retry=retry,
                                              block_identifier=block_identifier)
def send_eth_to ( self , private_key : str , to : str , gas_price : int , value : int , gas : int = 22000 , retry : bool = False , block_identifier = None , max_eth_to_send : int = 0 ) -> bytes : assert check_checksum ( to ) if max_eth_to_send and value > self . w3 . toWei ( max_eth_to_send , 'ether' ) : raise EtherLimitExceeded ( '%d is bigger than %f' % ( value , max_eth_to_send ) ) tx = { 'to' : to , 'value' : value , 'gas' : gas , 'gasPrice' : gas_price , } return self . send_unsigned_transaction ( tx , private_key = private_key , retry = retry , block_identifier = block_identifier )
Send ether using configured account
        :param to: to
        :param gas_price: gas_price
        :param value: value(wei)
        :param gas: gas, defaults to 22000
        :param retry: Retry if a problem is found
        :param block_identifier: None default, 'pending' not confirmed txs
        :return: tx_hash
Send ether using configured account : param to : to : param gas_price : gas_price : param value : value ( wei ) : param gas : gas defaults to 22000 : param retry : Retry if a problem is found : param block_identifier : None default pending not confirmed txs : return : tx_hash