Bulk coin queries
Fetch multiple coins by mints
Retrieve detailed information for multiple coins using their mint addresses:Fetch multiple coin metadatas
Get metadata for multiple coins efficiently:Bulk moderation operations
Bulk NSFW marking
Mark multiple items as NSFW in a single request:Bulk hide items
Hide multiple items from public view:Bulk ban items
Ban multiple items or users:Batch processing patterns
Process items in batches
Efficiently process large lists by batching:Python
Parallel batch processing
Process multiple batches concurrently for better performance:Python
When using parallel processing, be mindful of rate limits. Limit the number of concurrent workers to avoid hitting API limits.
Error handling in bulk operations
Implement robust error handling for bulk operations:Python
Best practices
1
Optimize batch size
Use batch sizes between 25-100 items for optimal performance. Larger batches may timeout.
2
Implement retry logic
Always implement exponential backoff for failed requests, especially for rate limit errors.
3
Validate input
Validate and sanitize input arrays before sending to avoid malformed requests.
4
Track failures
Keep track of failed items to retry them separately or log for investigation.
5
Use parallel processing wisely
Limit concurrent requests to 3-5 to avoid overwhelming the API or triggering rate limits.
6
Monitor response times
Track response times and adjust batch sizes if requests consistently timeout.