this signature
4rWMeMx4UB8pbqnazhM4aVaueNzPbh33aPYVi6cJxEvvmpw9oK8ZJNn3g1NFbNf58mithnWvmaNpoKviygrDLh6m
is there a way to use solana rpc or websocket to check if this is a buy swap (swapped sol for token mint) or sell (swapped token mint for sol) ?
what should i look for if one would want a python code to parse and print this is a buy swap transaction and this is the bought mint token with the amount of the bought token .
i have tried :
url = "https://api.mainnet-beta.solana.com"
with “method”: “getTransaction”,
and i tried dexscreener api also but can’t sort the response for something that will identify the transaction being a buy or sell of token mint .