I'm encountering an issue with the Jupiter API V6 Swap API when invoking a wallet. Using swapTransaction, everything works perfectly, but when using swap-instructions, the wallet does not display the correct data. Here is the relevant part of my code:
{
"context": {
"apiVersion": "1.17.28",
"slot": 266085023
},
"value": {
"accounts": null,
"err": {
"InstructionError": [
0,
"ProgramFailedToComplete"
]
},
"logs": [
"Program JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4 invoke [1]",
"Program log: Instruction: SharedAccountsRoute",
"Program log: panicked at 'range end index 64 out of range for slice of length 0', src/token.rs:551:38",
"Program JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4 consumed 16399 of 200000 compute units",
"Program JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4 failed: SBF program panicked"
],
"returnData": null,
"unitsConsumed": 0
}
}
When using swap-instructions, the wallet does not display the correct data, but with swapTransaction, it works fine. Could someone help me identify what might be going wrong?
Additional Details:
Solana Network Version: 1.9.25
Wallet: Phantom
Thanks in advance for any insights!
I'm encountering an issue with the Jupiter API V6 Swap API when invoking a wallet. Using swapTransaction, everything works perfectly, but when using swap-instructions, the wallet does not display the correct data. Here is the relevant part of my code:
log
When using swap-instructions, the wallet does not display the correct data, but with swapTransaction, it works fine. Could someone help me identify what might be going wrong?![screenshot-20240516-102203](https://github.com/jup-ag/jupiter-quote-api-node/assets/11712852/b85736df-f398-489c-9fc3-61eb2e57705d)
Additional Details: Solana Network Version: 1.9.25 Wallet: Phantom Thanks in advance for any insights!