In my Python web service, I'd like to confirm if a contract supports specific ABI (certain call methods). I am running get and communicating over JSON RPC.
What are steps to for this? I am guessing it's along the lines to use some RPC method to fetch contract code, decompile it and then check for presence of sha3 signatures of known methods.