Is it possible to get the error data thrown by a Custom Exception using web3 in Python?
I only get execution reverted but would like to have all the information about the error. Thanks.
developer advocate from Chainstack here.
If the transaction is executed in a block, you may get logs like this. This may help you narrow down the root cause of failure. However, this information is solely depending on the contract and may not provide enough detail for debugging purposes.
If you have the contract source code, you can deploy it in a test environment and debug it using a tool like REMIX debugger.