ソラナのトランザクションを迅速化するのに協力してください
`async sendSplTransaction(wallet, {to, value, mintAddress, 10 進数, 料金}) {
constrecipientPubKey = new PublicKey(to);
const mintPubKey = new PublicKey(mintAddress);
const bigValue = this.convertToBigInt(値, 小数);
const RecentBlockhash = await this.provider.connection.getlatestBlockhash();
let currentBlockheight = await this.provider.connection.getBlockHeight();
const { blockhash } = this.provider.connection.getlatestBlockhash();
を待ちます
const MAX_RETRIES = 3;
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.' }; }`
免責事項: 提供されるすべてのリソースの一部はインターネットからのものです。お客様の著作権またはその他の権利および利益の侵害がある場合は、詳細な理由を説明し、著作権または権利および利益の証拠を提出して、電子メール [email protected] に送信してください。 できるだけ早く対応させていただきます。
Copyright© 2022 湘ICP备2022001581号-3