Skip to content
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

Transaction never confirms #4

Open
teletonn opened this issue Oct 25, 2024 · 10 comments
Open

Transaction never confirms #4

teletonn opened this issue Oct 25, 2024 · 10 comments

Comments

@teletonn
Copy link

Token is found, but wheen its try to buy it, I.ve got this:
Bonding curve address: 2eKawxwvMDKm4vpEue7Cm3WiQR5ZjC8enMgKRcrpKLfr
Token price: 0.0000000294 SOL
Buying 0.000100 SOL worth of the new token with 20.0% slippage tolerance...
Creating associated token account (Attempt 1)...
Associated token account created.
Associated token account address: 89kqLViBhpVYysXmWigwSK58qUdxQCT5UyhgG1ndyY7a
Transaction sent: https://explorer.solana.com/tx/528n1x2eR2V9288bn9tLVpcetrRpydVZjoSCS6mUbFuSfPmv6UhdjqC2fDzUqGkin3ATquWjAns7hdSvEtaoRMy1
Attempt 1 failed: Unable to confirm transaction 528n1x2eR2V9288bn9tLVpcetrRpydVZjoSCS6mUbFuSfPmv6UhdjqC2fDzUqGkin3ATquWjAns7hdSvEtaoRMy1
Retrying in 1 seconds...
Transaction sent: https://explorer.solana.com/tx/4GrKsi5pEKoZjos1mMrNqQVb58R8FaWyGzWv9HvbttDMguXMTQ1RGLw8KR73YQ9atuCH17bRJ8mXUrhaYnEv6Xfu
Attempt 2 failed: Unable to confirm transaction 4GrKsi5pEKoZjos1mMrNqQVb58R8FaWyGzWv9HvbttDMguXMTQ1RGLw8KR73YQ9atuCH17bRJ8mXUrhaYnEv6Xfu
Retrying in 2 seconds...
Transaction sent: https://explorer.solana.com/tx/5cdD6ANEztXa51sCu64jNwJzgDSvSXpWUFrN513robrZUoPUrKL1GReHYdvej1pkLFgbfrb4WEdN46drFt3BQJBb
Attempt 3 failed: Unable to confirm transaction 5cdD6ANEztXa51sCu64jNwJzgDSvSXpWUFrN513robrZUoPUrKL1GReHYdvej1pkLFgbfrb4WEdN46drFt3BQJBb
Retrying in 4 seconds...
Transaction sent: https://explorer.solana.com/tx/5w4MFsubd2ScSZwXmA2Bsn3kSDPyi7ohRXeu5sVa5HpX6KAWE6TwenYmPREbdRj6Gk9Ntp5zT8drUVLEAtJPtzyb

How to fix it?

@teletonn
Copy link
Author

After all attempts it says:
Max retries reached. Unable to complete the transaction.
Buy transaction failed.
Waiting for 20 seconds before selling...

@akegaviar
Copy link
Contributor

Try increasing the fees or get a Trader node that guarantees 100% landing rate.

@teletonn
Copy link
Author

i'm using chainstack free node wss and https.
Where can I change fees?
Thanks for such quick answer!

@teletonn
Copy link
Author

https://solscan.io/account/7zLWiNJizHqfifoSr1DkoQDVvVxiFEWiv7oNAEPqBHwh
It creates account for tokens, but can't buy them..

@teletonn
Copy link
Author

Ok. I didn't find a fee, but I've changed slippage in config to 0.35 and it works! Thanks again.

@teletonn
Copy link
Author

It works 1 time and cant confirm any more again..

@teletonn
Copy link
Author

I've changed skip preflight to false, and got this in terminal, maybe it can help to figure out the problem. I don';t understand whats wrong here.
Waiting for 25 seconds for things to stabilize...
Bonding curve address: BMoNX3tEk5wZUCg9npLhxZTvtetw3j2YzqCcgEmA9KjP
Token price: 0.0000000280 SOL
Buying 0.000200 SOL worth of the new token with 30.0% slippage tolerance...
Creating associated token account (Attempt 1)...
Associated token account created.
Associated token account address: 3gWRbRyVBMgQ7sRxFe1NaypvYHaJmqg9YZh7SuentTRa
Attempt 1 failed: SendTransactionPreflightFailureMessage { message: "Transaction simulation failed: Error processing Instruction 0: custom program error: 0xbc4", data: RpcSimulateTransactionResult(RpcSimulateTransactionResult { err: Some(InstructionError(0, Custom(3012))), logs: Some(["Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P invoke [1]", "Program log: Instruction: Buy", "Program log: AnchorError caused by account: associated_user. Error Code: AccountNotInitialized. Error Number: 3012. Error Message: The program expected this account to be already initialized.", "Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P consumed 9238 of 200000 compute units", "Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P failed: custom program error: 0xbc4"]), accounts: None, units_consumed: Some(9238), return_data: None, inner_instructions: None }) }
Retrying in 1 seconds...

@teletonn
Copy link
Author

Well, if you see my account, you can see that some txs are ok, but others have 3-5 attempts and no luck. Where I can make a higher fees or maybe something else?

@smypmsa
Copy link
Contributor

smypmsa commented Oct 26, 2024

Well, if you see my account, you can see that some txs are ok, but others have 3-5 attempts and no luck. Where I can make a higher fees or maybe something else?

Please check the responses here (you should set a compute unit price, it must be the first instruction in your tx):
#1 (comment)

@pascaloberle
Copy link

pascaloberle commented Oct 31, 2024

If anyone knows what's happening in #6 would really appreciate some feedback :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants