Skip to main content

Rate Limits

Blockline implements rate limiting to ensure fair usage and maintain API performance for all users. This guide explains the rate limits, how to stay within them, and how to handle rate limit errors.

Rate Limit Overview

Rate limits are applied per API key and per endpoint. Each endpoint has its own separate rate limit.

Endpoint Rate Limits

Global Rate Limit

In addition to per-endpoint limits, there’s a global rate limit:
  • 30 requests per minute across all /api/* routes

Rate Limit Headers

Every API response includes rate limit headers:
integer
Maximum number of requests allowed in the current window
integer
Number of requests remaining in the current window
integer
Unix timestamp when the rate limit window resets

Handling Rate Limits

429 Too Many Requests

When you exceed the rate limit, the API returns a 429 status code:

Retry Strategy

Implement exponential backoff when you receive a 429 error:

Best Practices

Check X-RateLimit-Remaining before making requests:
Use a queue to control request rate:
The API provides built-in caching for some endpoints:
  • Wallet signatures: 5-minute cache
  • Transaction details: 5-minute cache
  • Enhanced metadata: 48-hour cache
Leverage these caches to reduce redundant requests.
Instead of making multiple individual requests:
  1. Use /analyze-trade to get all transactions in a slot range
  2. Then use /enhance-metadata only for transactions you need details on
  3. Use hint_signature in /wallet/:address/signatures for efficiency

Special Case: /backfill-transaction

The /backfill-transaction endpoint currently has no rate limiting. However, this may change in the future. Use responsibly and avoid overwhelming the system.
Since backfill operations are async and resource-intensive:
  • Use sparingly and only when necessary
  • Don’t make rapid concurrent backfill requests
  • Monitor the request ID returned for completion status

Upgrading Limits

Need higher rate limits for production workloads?

Contact Us for Enterprise Plans

Enterprise plans offer higher rate limits, dedicated support, and SLAs.
Email: support@soltop.sh

Monitoring Your Usage

Track your API usage in the Dashboard:
  • Request count per endpoint
  • Rate limit hits over time
  • Peak usage periods
  • Error rates including 429s

Common Patterns

Pattern 1: Respecting Rate Limits

Pattern 2: Priority Queue

Next Steps

Error Handling

Learn comprehensive error handling strategies

Performance Optimization

Optimize your API usage with caching and batching

API Reference

Explore all endpoints and their specifications

Integration Patterns

Learn efficient integration patterns