Issue With WSS Subscribe

I am having an issue the eth_subscribe method is that whenever I put in more than 1 topic, the connection fails to find when certain topics hit the chain. Is there something wrong with the json below that causes such a behavior?

{"jsonrpc": "2.0", "id": 1, 
"method": "eth_subscribe", 
"params": ["logs", {"topics":
["0x0bcae573430f69c5361e5d76534d3f61d2d803958778680cd74be9dc6299bc63",
"0x37efb38e92b0f94698f6df0c9070e2f00946862a042ac09e34ae8c547684240a",
"0x0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f",
"0x58d170de3a12438e22d81380f353b2fcac86f0a708a1374deaa5c6322a95992f"]}]}

Ok to those who read this in the future, I figured it out…
Turns out, best do the request in python using from web3.providers.base import JSONBaseProvider as opposed to having the json as a dict and doing json.dumps…

1 Like

Thanks for posting the solution, @kaleb-keny! This will help future users out tremendously :slight_smile: