Reputation: 111
Theres a contract on BSC that isnt verified and I am really keen to get the code behind it. I have both the full bytecode and ABI. Is it possible to obtain readable source code using this?
Thanks!
Upvotes: 1
Views: 1318
Reputation: 43581
BSCScan has an integrated decompiler that produces pseudocode from the input binary bytecode.
It's not perfect - some of the resulting code performs overly complicated operations that can be written on one line in Solidity, some functions are not able to decompile at all, ... but it can help with manually reconstructing the source code.
There are other decompilers available online as well. Usually it helps to decompile the binary using multiple tools so that you get a better sense of what the source code should do.
Upvotes: 1