0

Is there a way to combine swap transaction and stake transaction into one transaction?. My intent is to first swap the token and receive SOL(that part is done) and stake that received SOL into stake account. But when I combine those transactions, spl-stake-pool program throws the error saying don't have enough SOL in my wallet(Because swap isn't done yet). Any suggestions/ solutions please? Thanks!

0

Your Answer

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