Exemple #1
0
    def send_wait_result(self, proxy, timeout):
        if not self.signature:
            raise errors.TransactionIsNotSigned()

        response = proxy.send_transaction_and_wait_for_result(self.to_dictionary(), timeout)
        self.hash = response['hash']
        return response
Exemple #2
0
    def send(self, proxy: IElrondProxy):
        if not self.signature:
            raise errors.TransactionIsNotSigned()

        logger.info(f"Transaction.send: nonce={self.nonce}")

        dictionary = self.to_dictionary()
        self.hash = proxy.send_transaction(dictionary)
        logger.info(f"Hash: {self.hash}")
        return self.hash
Exemple #3
0
    def simulate(self, proxy: IElrondProxy):
        if not self.signature:
            raise errors.TransactionIsNotSigned()

        dictionary = self.to_dictionary()
        return proxy.simulate_transaction(dictionary)