You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR ->
Traceback (most recent call last):
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\coins_async\base.py", line 490, in pushtx
result = await self.client.broadcast_tx(tx)
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\electrumx_client\client.py", line 517, in broadcast_tx
return await self.send_request("blockchain.transaction.broadcast", raw_tx)
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\electrumx_client\client.py", line 390, in send_request
return await self._send_request(method, *args, timeout=timeout, **kwargs)
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\electrumx_client\client.py", line 386, in _send_request
return await self.session.send_request(method, args, timeout=timeout, **kwargs)
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\electrumx_client\client.py", line 143, in send_request
response = await asyncio.wait_for(
File "C:\Users\kerna\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 445, in wait_for
return fut.result()
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\aiorpcx\session.py", line 540, in send_request
return await self._send_concurrent(message, future, 1)
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\aiorpcx\session.py", line 512, in _send_concurrent
return await future
aiorpcx.jsonrpc.RPCError: (1, 'the transaction was rejected by network rules.\n\nmandatory-script-verify-flag-failed (Script evaluated without error but finished with a false/empty top stack element)\n')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\GIT\Python\bitcoin-rpi\exam_sign02.py", line 15, in
rtl_tx = c.send(priv, addr_from, addr_to, 10000)
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\coins\base.py", line 327, in send
return self._run_async("send", privkey, frm, to, value,
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\coins\base.py", line 84, in _run_async
return fut.result(timeout=self.timeout * 2)
File "C:\Users\kerna\AppData\Local\Programs\Python\Python310\lib\concurrent\futures_base.py", line 458, in result
return self.__get_result()
File "C:\Users\kerna\AppData\Local\Programs\Python\Python310\lib\concurrent\futures_base.py", line 403, in __get_result
raise self._exception
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\coins\base.py", line 68, in run
result = await asyncio.wait_for(coro, timeout=self.timeout)
File "C:\Users\kerna\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 445, in wait_for
return fut.result()
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\coins_async\base.py", line 1057, in send
return await self.send_to_multiple_receivers_tx(privkey, frm, outs, change_addr=change_addr,
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\coins_async\base.py", line 1043, in send_to_multiple_receivers_tx
return await self.pushtx(tx)
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\coins_async\base.py", line 498, in pushtx
raise TXRejectedError(message)
cryptos.coins_async.base.TXRejectedError: {'ins': [{'tx_hash': '467af9bc5c52678c18f867fe9ac2f1bb545e123b5609b78f69e6766d771753e8', 'tx_pos': 0, 'script': '1600142f48ae6578926108c8970caf2e18cac0ca787496', 'sequence': 4294967295}], 'outs': [{'value': 10000, 'script': '00141c2523bc4812b7d596f1df038cf960c20082627d'}, {'value': 27360, 'script': 'a914406fd8f26859a2986a264f74de48b7a43be2807487'}], 'version': 1, 'marker': 0, 'flag': 1, 'witness': [{'number': 2, 'scriptCode': '473044022069cc9b9c69baa9d172335061b13c0ebd98af10ef8b3e4f6a16bf5c9aa41b073b02205337dda64a0e3535fd05d510866cf4eefb395a8b46899d78d22a3727b3b83032012102e5afa2ffdc23712302220aefe11ba9f00f67a7032d0aaae7e1fbb59d970ae748'}], 'locktime': 0}
01000000000101e85317776d76e6698fb709563b125e54bbf1c29afe67f8188c67525cbcf97a4600000000171600142f48ae6578926108c8970caf2e18cac0ca787496ffffffff0210270000000000001600141c2523bc4812b7d596f1df038cf960c20082627de06a00000000000017a914406fd8f26859a2986a264f74de48b7a43be280748702473044022069cc9b9c69baa9d172335061b13c0ebd98af10ef8b3e4f6a16bf5c9aa41b073b02205337dda64a0e3535fd05d510866cf4eefb395a8b46899d78d22a3727b3b83032012102e5afa2ffdc23712302220aefe11ba9f00f67a7032d0aaae7e1fbb59d970ae74800000000
the transaction was rejected by network rules.
mandatory-script-verify-flag-failed (Script evaluated without error but finished with a false/empty top stack element)
The text was updated successfully, but these errors were encountered:
kernaldpark
changed the title
Please, help me. I attached my source.
Please, help me, what I`m doing wrong???
Mar 16, 2024
from cryptos import *
'''
https://blockstream.info/testnet/address/2My7wDrirLvDi5sScPcmj1ZfAToRvqe8Mpq
2My7wDrirLvDi5sScPcmj1ZfAToRvqe8Mpq
Balance : 0.00038360
'''
priv = 'fcdc16596718465bf585d7cf59ac56efcf8a629c77e6ba82a5afc2499dbb15a4'
timeout_seconds = 120 # 120 seconds
c = Bitcoin(testnet=True, timeout=timeout_seconds)
addr_from = '2My7wDrirLvDi5sScPcmj1ZfAToRvqe8Mpq'
addr_to = 'tb1qrsjj80zgz2mat9h3mupce7tqcgqgycna6ywz6m'
rtl_tx = c.send(priv, addr_from, addr_to, 10000)
ERROR ->
Traceback (most recent call last):
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\coins_async\base.py", line 490, in pushtx
result = await self.client.broadcast_tx(tx)
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\electrumx_client\client.py", line 517, in broadcast_tx
return await self.send_request("blockchain.transaction.broadcast", raw_tx)
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\electrumx_client\client.py", line 390, in send_request
return await self._send_request(method, *args, timeout=timeout, **kwargs)
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\electrumx_client\client.py", line 386, in _send_request
return await self.session.send_request(method, args, timeout=timeout, **kwargs)
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\electrumx_client\client.py", line 143, in send_request
response = await asyncio.wait_for(
File "C:\Users\kerna\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 445, in wait_for
return fut.result()
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\aiorpcx\session.py", line 540, in send_request
return await self._send_concurrent(message, future, 1)
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\aiorpcx\session.py", line 512, in _send_concurrent
return await future
aiorpcx.jsonrpc.RPCError: (1, 'the transaction was rejected by network rules.\n\nmandatory-script-verify-flag-failed (Script evaluated without error but finished with a false/empty top stack element)\n')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\GIT\Python\bitcoin-rpi\exam_sign02.py", line 15, in
rtl_tx = c.send(priv, addr_from, addr_to, 10000)
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\coins\base.py", line 327, in send
return self._run_async("send", privkey, frm, to, value,
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\coins\base.py", line 84, in _run_async
return fut.result(timeout=self.timeout * 2)
File "C:\Users\kerna\AppData\Local\Programs\Python\Python310\lib\concurrent\futures_base.py", line 458, in result
return self.__get_result()
File "C:\Users\kerna\AppData\Local\Programs\Python\Python310\lib\concurrent\futures_base.py", line 403, in __get_result
raise self._exception
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\coins\base.py", line 68, in run
result = await asyncio.wait_for(coro, timeout=self.timeout)
File "C:\Users\kerna\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 445, in wait_for
return fut.result()
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\coins_async\base.py", line 1057, in send
return await self.send_to_multiple_receivers_tx(privkey, frm, outs, change_addr=change_addr,
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\coins_async\base.py", line 1043, in send_to_multiple_receivers_tx
return await self.pushtx(tx)
File "D:\GIT\Python\bitcoin-rpi.venv\lib\site-packages\cryptos\coins_async\base.py", line 498, in pushtx
raise TXRejectedError(message)
cryptos.coins_async.base.TXRejectedError: {'ins': [{'tx_hash': '467af9bc5c52678c18f867fe9ac2f1bb545e123b5609b78f69e6766d771753e8', 'tx_pos': 0, 'script': '1600142f48ae6578926108c8970caf2e18cac0ca787496', 'sequence': 4294967295}], 'outs': [{'value': 10000, 'script': '00141c2523bc4812b7d596f1df038cf960c20082627d'}, {'value': 27360, 'script': 'a914406fd8f26859a2986a264f74de48b7a43be2807487'}], 'version': 1, 'marker': 0, 'flag': 1, 'witness': [{'number': 2, 'scriptCode': '473044022069cc9b9c69baa9d172335061b13c0ebd98af10ef8b3e4f6a16bf5c9aa41b073b02205337dda64a0e3535fd05d510866cf4eefb395a8b46899d78d22a3727b3b83032012102e5afa2ffdc23712302220aefe11ba9f00f67a7032d0aaae7e1fbb59d970ae748'}], 'locktime': 0}
01000000000101e85317776d76e6698fb709563b125e54bbf1c29afe67f8188c67525cbcf97a4600000000171600142f48ae6578926108c8970caf2e18cac0ca787496ffffffff0210270000000000001600141c2523bc4812b7d596f1df038cf960c20082627de06a00000000000017a914406fd8f26859a2986a264f74de48b7a43be280748702473044022069cc9b9c69baa9d172335061b13c0ebd98af10ef8b3e4f6a16bf5c9aa41b073b02205337dda64a0e3535fd05d510866cf4eefb395a8b46899d78d22a3727b3b83032012102e5afa2ffdc23712302220aefe11ba9f00f67a7032d0aaae7e1fbb59d970ae74800000000
the transaction was rejected by network rules.
mandatory-script-verify-flag-failed (Script evaluated without error but finished with a false/empty top stack element)
The text was updated successfully, but these errors were encountered: