Traceback (most recent call last):
File "C:\Users\Administrator\PycharmProjects\pythonProject\Tugou_Trading_Ctrl\BSC_ERC314_Tools\main_ctrl.py", line 37, in <module>
TransferToMainWallet(MainWalletAddress, File_name, ChainID, Scan_url)
File "C:\Users\Administrator\PycharmProjects\pythonProject\Tugou_Trading_Ctrl\BSC_ERC314_Tools\Each_function\Transfer_1_BNBToWallets.py", line 156, in TransferToMainWallet
signed_txn = account.sign_transaction(txn, WalletPrivateKey)
File "C:\Users\Administrator\PycharmProjects\pythonProject\venv\lib\site-packages\eth_account\signers\local.py", line 84, in sign_transaction
return self._publicapi.sign_transaction(transaction_dict, self.key, blobs=blobs)
File "C:\Users\Administrator\PycharmProjects\pythonProject\venv\lib\site-packages\eth_utils\decorators.py", line 31, in _wrapper
return self.method(objtype, *args, **kwargs)
File "C:\Users\Administrator\PycharmProjects\pythonProject\venv\lib\site-packages\eth_account\account.py", line 794, in sign_transaction
) = sign_transaction_dict(account._key_obj, sanitized_transaction, blobs=blobs)
File "C:\Users\Administrator\PycharmProjects\pythonProject\venv\lib\site-packages\eth_account\_utils\signing.py", line 32, in sign_transaction_dict
unsigned_transaction = serializable_unsigned_transaction_from_dict(
File "C:\Users\Administrator\PycharmProjects\pythonProject\venv\lib\site-packages\eth_account\_utils\legacy_transactions.py", line 46, in serializable_unsigned_transaction_from_dict
raise TypeError("Blob data is not supported for legacy transactions.")
TypeError: Blob data is not supported for legacy transactions.
Fill this section in if you know how this could or should be fixed
What happened?
I got this error.
TypeError: Blob data is not supported for legacy transactions.
Code that produced the error
Full error output
Fill this section in if you know how this could or should be fixed
No response
web3 Version
6.15.0
Python Version
3.9
Operating System
win 10
Output from
pip freeze