1

Is there a way to tell if a transaction involves a user providing liquidity? For example, in this transaction I am providing liquidity using Raydium. I am trying to tag other transactions that provide liquidity given a wallet address. Is there a way to do this maybe by analyzing the accounts array or the instructions? Any resources or advice would be greatly appreciated!

example tx: https://solscan.io/tx/5xLFfoL7qyM1thHfbfyT3zu8zeG3CqXfyCwfreFLuud4meZzYZ9haMi5LR3M8mM62GFoBLSoxAnSj8hkgn6BXx5v

1 Answer 1

1

Being as the explorer can identify the fourth instruction as "add liquidity", you should be able to scan all transactions for Raydium instructions with the same discriminator (3? probably dig through their code to confirm)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.