diff --git a/web3.js/src/connection.ts b/web3.js/src/connection.ts index 43f4a8da55..56b407c234 100644 --- a/web3.js/src/connection.ts +++ b/web3.js/src/connection.ts @@ -3888,7 +3888,11 @@ export class Connection { } else { let disableCache = this._disableBlockhashCaching; for (;;) { - transaction.recentBlockhash = await this._recentBlockhash(disableCache); + if (!transaction.recentBlockhash) { + transaction.recentBlockhash = await this._recentBlockhash( + disableCache, + ); + } if (!signers) break;