I almost tried but getting failed. I am trying to fetch pending transaction. here is my code if anyone suggest that would be great.
uri = "wss://api.mainnet-beta.solana.com"
async with websockets.connect(uri) as websocket:
# Send subscription request
await websocket.send(json.dumps({
"jsonrpc": "2.0",
"id": 1,
"method": "logsUnsubscribe",
"params": [0]
}))
isResp = await websocket.recv()
responseData = json.loads(isResp)