diff --git a/src/backend/revoker/subScan.ts b/src/backend/revoker/subScan.ts index 9a9cad73e..bd0362354 100644 --- a/src/backend/revoker/subScan.ts +++ b/src/backend/revoker/subScan.ts @@ -90,6 +90,12 @@ export async function getEvents({ JSON.stringify(payloadForEventsListRequest, null, 2), ); + if (parameters.page >= 100) { + throw new Error( + `Page ${parameters.page} exceeds Subscan's paging limit of 100.`, + ); + } + const { data: { count, events }, } = await got