Currently i am using the following code to perform swaps on raydium: https://github.com/raydium-io/raydium-sdk-V2-demo/blob/master/src/api/swap.ts
However often it returns the error: TransactionExpiredBlockheightExceededError
. After forcing it to retry a few times I get a successful transaction which takes about 10 minutes overall.
My current setup is to use the high fee and multiply it by 1.5 to get an even higher fee. I am swapping 0.001 SOL for RAY and slippage is 1%.