Skip to content

Add pagination to the CheckNullifiersByPrefix endpoint #1186

@bobbinth

Description

@bobbinth

We should make sure that CheckNullifiersByPrefix never turns too much data in a single response. For this, we can use a similar strategy as we did with SyncStorageMaps and SyncAccountVault endpoints. Specifically:

We can impose a limit on the number of nullifiers returned from the database, and if the returned number of records is greater than or equal to this limit, we discard the last block of data. The user then will have to make a new request with the last returned block number + 1.

As with other two responses, we should try to limit the response size to ~ 2MB - though, at some point, we should make this a configurable setting.

Metadata

Metadata

Labels

rpcRelated to the RPC componentstoreRelated to the store component

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions