I try to find a solution for my problem since hours but I couldn't find an answer for my question, so you're my last hope.
I'm experimenting with spl-token-swap
, precisely with TokenSwap.swapInstruction()
but I can not figure out the values for some of the expected parameters. These are the parameters I'm struggling with:
- tokenSwap
- poolMint
- feeAccount
- sourceTokenProgramId
- destinationTokenProgramId
- poolTokenProgramId
It'd would be really helpful if someone could tell me, where I can find those values on Solscan.
That's the best tutorial I found so far but it seems a bit outdated because sourceTokenProgramId
, destinationTokenProgramId
and poolTokenProgramId
are not existing in this tutorial: https://www.soldev.app/course/token-swap
I'm happy about any answer which leads me in the right direction.