Replies: 1 comment
-
Hi guys. I fixed it. Just add ‘'broadcast=True’' instead of ‘'offline=False’' to sign the transaction correctly.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I generate bitcoin wallets/keys with bitcoinlib. I generated it with ‘network='testnet’. However, when I try to send tBTC to another address, I get an error, even though the recipient's address is also ‘testnet’.
When I use, for example, ‘transaction = w.send_to(’'address'‘,’'0.0004 BTC'‘, offline=False)’, it returns something like this ‘'TypeError: Wallet.send_to() got an unexpected keyword argument 'offline’''.


Full code:
Beta Was this translation helpful? Give feedback.
All reactions