help me make solana transaction faster
`async sendSplTransaction(wallet, {to, value, mintAddress, decimals, fee}) {
const recipientPubKey = new PublicKey(to);
const mintPubKey = new PublicKey(mintAddress);
const bigValue = this.convertToBigInt(value, decimals);
const recentBlockhash = await this.provider.connection.getLatestBlockhash();
let currentBlockheight = await this.provider.connection.getBlockHeight();
const { blockhash } = await this.provider.connection.getLatestBlockhash();
const MAX_RETRIES = 3;
let retryCount = 0;
while (retryCount setTimeout(resolve, delay)); } else { return { success: false, data: null, error: error.message }; } } } return { success: false, data: null, error: 'Transaction retries exhausted.' }; }`
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3