diff --git a/packages/beacon-dapp/src/dapp-client/DAppClient.ts b/packages/beacon-dapp/src/dapp-client/DAppClient.ts index f3d375cb7..5028b77b1 100644 --- a/packages/beacon-dapp/src/dapp-client/DAppClient.ts +++ b/packages/beacon-dapp/src/dapp-client/DAppClient.ts @@ -2518,6 +2518,14 @@ export class DAppClient extends Client { return } + if (await this.addRequestAndCheckIfRateLimited()) { + this.events + .emit(BeaconEvent.LOCAL_RATE_LIMIT_REACHED) + .catch((emitError) => console.warn(emitError)) + + throw new Error('rate limit reached') + } + const id = await generateGUID() this.multiTabChannel.postMessage({