Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tronpy.exceptions.ValidationError: Contract validate error : No contract or not a smart contract #130

Closed
SmallWangs opened this issue May 21, 2024 · 1 comment

Comments

@SmallWangs
Copy link

Traceback (most recent call last):
File "c:\Users\wang\Downloads\tron-api-python-main\test.py", line 37, in
print("broadcast and result =>", txn.broadcast().wait())
^^^^^^^^^^^^^^^
File "C:\Users\wang\AppData\Local\Programs\Python\Python312\Lib\site-packages\tronpy\tron.py", line 184, in broadcast
return TransactionRet(self._client.broadcast(self), client=self._client, method=self._method)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wang\AppData\Local\Programs\Python\Python312\Lib\site-packages\tronpy\tron.py", line 1079, in broadcast
self._handle_api_error(payload)
File "C:\Users\wang\AppData\Local\Programs\Python\Python312\Lib\site-packages\tronpy\tron.py", line 616, in _handle_api_error
raise ValidationError(msg)
tronpy.exceptions.ValidationError: Contract validate error : No contract or not a smart contract

@MrNaif2018
Copy link
Collaborator

Most likely your constructed tx contains a wrong address

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants