pumpdotfun-go-sdk
pumpdotfun-go-sdk copied to clipboard
BuyToken ERROR
Hello, when I called the BuyToken interface, I encountered an error. Could you please help me understand what the issue is?
txSig, err := pumpSDK.BuyToken(
rpcClient,
wsClient,
privateKey,
txInfo.Summary.TokenMint,
0.00001,
100,
)
ERROR:
can't send and confirm new transaction: %!w(*jsonrpc.RPCError=&{-32002 Transaction simulation failed: Error processing Instruction 2: incorrect program id for instruction map[accounts:<nil> err:map[InstructionError:[2 IncorrectProgramId]] innerInstructions:<nil> logs:[Program ComputeBudget111111111111111111111111111111 invoke [1] Program ComputeBudget111111111111111111111111111111 success Program ComputeBudget111111111111111111111111111111 invoke [1] Program ComputeBudget111111111111111111111111111111 success Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL invoke [1] Program log: Create Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2] Program log: Instruction: GetAccountDataSize Program log: Error: IncorrectProgramId Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 884 of 244186 compute units Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA failed: incorrect program id for instruction Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL consumed 6398 of 249700 compute units Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL failed: incorrect program id for instruction] replacementBlockhash:<nil> returnData:<nil> unitsConsumed:6698]})