admin管理员组

文章数量:1122832

I'm using jupiter quote/swap endpoints to get transaction string.

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('')
    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: enter image description here Expected result: enter image description here

本文标签: SOLANASWAPBalance change is not displayed when using Jupiter swap APIStack Overflow