Quickstart Guide
Get up and running with the Blockline API in three simple steps. You’ll learn how to authenticate, make your first request, and analyze transaction context.Prerequisites
- A Blockline account (sign up here)
- A Solana transaction signature to analyze
- Basic knowledge of HTTP APIs and curl/your programming language of choice
Step 1: Get Your API Key
Sign up for Blockline
Visit blockline.soltop.sh and create an account. New users get a free trial to explore the API.
Navigate to API Keys
Once logged in, go to Dashboard → API
Keys
Step 2: Make Your First Request
Let’s analyze a Solana transaction to see who traded before and after it.Understanding the Request
- signature: Your transaction signature (base58-encoded, 87-88 characters)
- account_id: The market/pool address your transaction touched (base58-encoded, 32-44 characters)
- slot_range: Number of slots before/after to search (default: 4, max: 100)
Step 3: Understand the Response
The API returns all transactions that touched the same market within ±4 slots of your transaction:Key Fields Explained
Negative = transaction happened before yours (potential front-runner)
Zero = your transaction Positive = transaction happened after yours
(potential back-runner)
Negative = earlier slot/block Zero = same slot as your transaction
Positive = later slot/block
Common Errors
401 Unauthorized
401 Unauthorized
403 Forbidden
403 Forbidden
Cause: Subscription required or expired Solution: Ensure your
subscription is active (trial, active, or grace period) at your
dashboard
400 Bad Request
400 Bad Request
Cause: Invalid signature format or parameters Solution: Verify your
signature is base58-encoded and 87-88 characters long
429 Too Many Requests
429 Too Many Requests
Cause: Rate limit exceeded (6 requests/minute)
Solution: Wait for the
retry_after_seconds time before retryingNext Steps
Now that you’ve made your first request, explore more capabilities:Detect Front-Running
Learn how to identify transactions that front-ran yours
Find Sandwich Attacks
Detect if you were sandwiched by MEV bots
Get Transaction Details
Fetch detailed transaction metadata including fees and tokens
Code Examples
See complete integration examples in JavaScript and Python
You’re all set! You now know how to authenticate and make requests to the
Blockline API.
Need Help?
- Read the full API Reference
- Explore Use Cases & Patterns
- Check Error Handling Guide
- Visit the Dashboard