コード例 #1
0
ファイル: transactions.py プロジェクト: irfan798/elrond-sdk
    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
コード例 #2
0
ファイル: transactions.py プロジェクト: irfan798/elrond-sdk
    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
コード例 #3
0
ファイル: transactions.py プロジェクト: irfan798/elrond-sdk
    def simulate(self, proxy: IElrondProxy):
        if not self.signature:
            raise errors.TransactionIsNotSigned()

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