diff --git a/packages/worker/src/blockchain/blockchain.service.ts b/packages/worker/src/blockchain/blockchain.service.ts index f41050b25b..66a1386ce8 100644 --- a/packages/worker/src/blockchain/blockchain.service.ts +++ b/packages/worker/src/blockchain/blockchain.service.ts @@ -178,6 +178,9 @@ export class BlockchainService implements OnModuleInit { if (utils.isETH(tokenAddress)) { return await this.rpcCall(async () => { + if (this.useWebSocketsForTransactions) { + return await this.wsProvider.getProvider().getBalance(address, blockTag); + } return await this.provider.getBalance(address, blockTag); }, "getBalance"); }