Closed SkullCandby closed 4 months ago
Hi, as far as I know there are a few things you can do for tx inclusion and those are as follows:
But I'm not an expert on transaction inclusion so there will be others more qualified to answer this
I have my own node bought from QuickNode. Also, I was using pumpportal api before with node and when I was sendim txs in the loop moneys were always debited for JITO in every failed transaction
If you bundle it yourself with a jito tip in the transaction, you will not pay the tip unless it executes.
PS C:\Users\gdmes\solana-pump-fun> node example.js
Error sending transaction: TransactionExpiredBlockheightExceededError: Signature 44o76QmDC65dsUKY3aPNxGEGKeQ37WE5bPk4FuwG2nFY164wEVfwYhQKPAy78G8dXCqYy5nYmPCJJfvgwms27c4n has expired: block height exceeded.
at Connection.confirmTransactionUsingBlockHeightExceedanceStrategy (C:\Users\gdmes\solana-pump-fun\node_modules\@solana\web3.js\lib\index.cjs.js:6565:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Connection.confirmTransaction (C:\Users\gdmes\solana-pump-fun\node_modules\@solana\web3.js\lib\index.cjs.js:6393:14)
at async sendAndConfirmTransaction (C:\Users\gdmes\solana-pump-fun\node_modules\@solana\web3.js\lib\index.cjs.js:2181:15) {
signature: '44o76QmDC65dsUKY3aPNxGEGKeQ37WE5bPk4FuwG2nFY164wEVfwYhQKPAy78G8dXCqYy5nYmPCJJfvgwms27c4n'
}
Buy transaction confirmed: null
Error sending transaction: TransactionExpiredBlockheightExceededError: Signature 4H1F9iABSE1XcipAbmYJkme26bv2syG3VJdEGSceXNtysupkZkVAHQj5Qb9Mjbz7ktX6d2LnPdf2yjNXL44HqzV9 has expired: block height exceeded.
at Connection.confirmTransactionUsingBlockHeightExceedanceStrategy (C:\Users\gdmes\solana-pump-fun\node_modules\@solana\web3.js\lib\index.cjs.js:6565:15)
at runMicrotasks (
but it takes like 3 minutes to buy a token
What are you using as priority fee? Have you tried upping that?
0.01, but does it affect transaction speed if I am the only one who is buying a token
Well it does affect inclusion rate, for the validator it doesnt matter what your transaction is doing. But 0.01 is already very high so i would not increase that further. Have you recompiled the typescript (npx tsc), after making changes in the example.ts file?
no I just recompiled it using npx tsc
I tested this code with my decent QuickNode rpc endpoint (the one for) and it did not work (block height exceeded.), but it works with public main node. Any advices on what node I should get?