-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error processing Instruction 0: Provided owner is not allowed #165
Comments
did you find a solution to this problem? SendTransactionError: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: Provided owner is not allowed |
same problem |
same error too |
Same error, any news on this one? |
Need to fetch token accounts by yourself, also you might need to create wrapped_native_account to prevent "insufficient funds" issue, phoenix's SDK is very amateur |
Same error |
Swap 1 of 10
Market buy 9 USDC with 0.8 % slippage
Expected out amount: 0.008995502248875561 SOL
Error: SendTransactionError: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: Provided owner is not allowed
at Connection.sendEncodedTransaction (/Users/cuimiandashi/GitHub/phoenix-trade/node_modules/@solana/web3.js/src/connection.ts:5923:13)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Connection.sendRawTransaction (/Users/cuimiandashi/GitHub/phoenix-trade/node_modules/@solana/web3.js/src/connection.ts:5880:20)
at async Connection.sendTransaction (/Users/cuimiandashi/GitHub/phoenix-trade/node_modules/@solana/web3.js/src/connection.ts:5868:12)
at async sendAndConfirmTransaction (/Users/cuimiandashi/GitHub/phoenix-trade/node_modules/@solana/web3.js/src/utils/send-and-confirm-transaction.ts:35:21)
at async swap (/Users/cuimiandashi/GitHub/phoenix-trade/src/swap.ts:84:16)
at async /Users/cuimiandashi/GitHub/phoenix-trade/src/swap.ts:138:7 {
logs: [
'Program PhoeNiXZ8ByJGLkxNfZRnkUfjvmuYqLR89jjFHGqdXY invoke [1]',
'Program log: Discriminant for phoenix::program::accounts::MarketHeader is 8167313896524341111',
'Program log: PhoenixInstruction::Swap',
'Program consumption: 195020 units remaining',
'Program log: Token account must be owned by the Token Program. \n' +
'src/program/validation/checkers/token_checkers.rs:51:9',
'Program PhoeNiXZ8ByJGLkxNfZRnkUfjvmuYqLR89jjFHGqdXY consumed 8242 of 200000 compute units',
'Program PhoeNiXZ8ByJGLkxNfZRnkUfjvmuYqLR89jjFHGqdXY failed: Provided owner is not allowed'
]
}
The text was updated successfully, but these errors were encountered: