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
版权声明:本文标题:SOLANA - SWAP - Balance change is not displayed when using Jupiter swap API - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736309903a1934186.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论