pumpdotfun-go-sdk icon indicating copy to clipboard operation
pumpdotfun-go-sdk copied to clipboard

failed to get buy instructions: can't fetch bonding curve: FBCD: failed to get account info: not found

Open sirdont0 opened this issue 1 year ago • 3 comments

Hey! Find your repository and trying run your code to create token from example and get this error: "failed to get buy instructions: can't fetch bonding curve: FBCD: failed to get account info: not found". Thanks!

sirdont0 avatar Dec 29 '24 22:12 sirdont0

This happens to me as well, I'll try to dig in and figure it

vasiloeth avatar Jan 11 '25 11:01 vasiloeth

Hey! Find your repository and trying run your code to create token from example and get this error: "failed to get buy instructions: can't fetch bonding curve: FBCD: failed to get account info: not found". Thanks!

After looking into it, the issue is that when creating and buying at the same time, in order to calculate the buy amount there's an attempt to fetch the bonding curve, which doesn't exists yet. The solution here would be to virtually calculate the first buy amount without fetching the bonding curve.

vasiloeth avatar Jan 11 '25 12:01 vasiloeth

yet

okay! thank you! will try it way

sirdont0 avatar Jan 11 '25 15:01 sirdont0