0

I'm using jupiter quote/swap endpoints to get transaction string. https://www.quicknode.com/docs/solana/swap

But when signing transaction, wallets don't display balance change at all, even though it gets correctly performed after confirming this transaction.

Simulating transaction on main net succeeds.

const connection = new Connection('https://solana-rpc.publicnode.com')
const serializedTx = result.transactionString // the swapTransaction string of /swap endpoint
const binaryString = atob(serializedTx);
const transactionBuffer = Uint8Array.from(binaryString, (char) => char.charCodeAt(0));
const versionedTransaction = VersionedTransaction.deserialize(transactionBuffer);
console.log(await connection.simulateTransaction(versionedTransaction)) // success

const signedTransaction = await wallet.value.adapter.signTransaction(versionedTransaction);

console.log("Signed Transaction:", signedTransaction);

But when sign happens, i see window like this:

MyResult

Expected result:

ExpectedResult

1 Answer 1

1

I think the question is more about Phantom policies. Try to reach out to the email specified in the warning.

1
  • Yeah so those warning likely because i use ngrok. Basically if there were any warnings like those or unsufficient balance warning, i was not seeing this balance change with token names. Once i didn't have any of warnings - i had balance change display correctly. PS In case anyone else will have similar problem: I also encountered issue where adding too small transaction instruction transfer amount(0.0001 SOL) over SwapAPI transaction, also resulted in unsufficient balance warning(even though there was more than enough) without any balance change. For 0.001 transfer amount all good though.. Commented Nov 27 at 16:13

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.