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
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/voucherbot/wallet.py", line 152, in spend
tx = address.send(to=send_to, fee=0.0002, private=private)
File "/usr/local/lib/python3.8/site-packages/cryptotools/BTC/address.py", line 159, in send
inp.sign(private)
File "/usr/local/lib/python3.8/site-packages/cryptotools/BTC/transaction.py", line 139, in sign
output_type = self.ref().type()
File "/usr/local/lib/python3.8/site-packages/cryptotools/BTC/transaction.py", line 271, in type
return get_type(self.script)
File "/usr/local/lib/python3.8/site-packages/cryptotools/BTC/script.py", line 145, in get_type
raise ScriptValidationError(f"Unknown script type: {bytes_to_hex(script)}")
cryptotools.BTC.error.ScriptValidationError: Unknown script type:
but it seems that bech32 (bc1q) is supported by the lib.
where am i wrong?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
@mcdallas great library i am going good with it but i have a issue:
in this code
i run with
spend("wifxxx","bc1source","bc1qdest")
i get this error
but it seems that bech32 (bc1q) is supported by the lib.
where am i wrong?
Beta Was this translation helpful? Give feedback.
All reactions