Overview
Blitzz is a simple yet lightning-fast API for trading and market data tokens on Pump Fun and Pump AMM. Use it to build transactions, send them, fetch token metadata, and stream live human readable events.Base URLs
HTTP Base URL:https://api.blitzz.fun
WebSocket URL: wss://api.blitzz.fun/ws
Health Endpoint
Method:GET
Path: /health
Purpose: Warm up the connection to remove TCP handshake delay before trading.
Response: 200 OK (empty body)
Authentication
No API key is required to use the Blitzz API. However, per-IP rate limits apply to each endpoint.Conventions
- Public Keys: All public keys are represented as base58 strings.
- Amounts:
amountfor buy or create is specified in lamports (1 SOL = 1,000,000,000 lamports).amountfor sell is specified in token base units (6 decimals).
- Slippage:
slippage_pctis a percentage (e.g., 0.5 means 0.5%). - Priority Fee:
prioFeeis the priority fee in SOL (e.g., 0.0005). - Pool:
poolmust be one of “pump”, “pump-amm”, or “auto”. - Errors: Errors are returned in a standard JSON format.
Local Trade Endpoint
Build an unsigned transaction that you can sign with your own wallet and send through your preferred RPC endpoint or Transaction Processor (e.g., Astralane). Method:POST
Path: /local-trade
Rate Limit: 5 requests/second per IP
Request Body
The type of transaction to build. Must be one of:
"buy", "sell", "create", or "claimCreatorFees".The liquidity pool to use for the trade. Must be one of:
"pump", "pump-amm", or "auto".The base58 mint address of the token (required for
buy and sell).The base58 public key of the fee payer (required for
buy, sell, and create).The base58 public key of the token creator (required for
claimCreatorFees).- For
buy/create: The amount of SOL in lamports. - For
sell: The amount of tokens in base units (6 decimals). - Not required for
claimCreatorFees.
The slippage tolerance as a percentage (e.g.,
0.5 for 0.5%). Required for buy, sell, and create.The priority fee in SOL (e.g.,
0.0005).Required for
type="create". Contains name, symbol, and uri.Optional configuration to transfer SOL in the same transaction. Contains
pubkey (base58) and lamports (string).Response
Base64-encoded unsigned transaction.
Descriptive error message (only present on error).
Examples
The response contains a base64-encoded unsigned transaction. Decode it, sign it with your wallet, and send it using your RPC provider.
Blitzz Mode Endpoint
Build, sign, and send a transaction in a single API call. The API signs with the provided private key and sends the transaction through our dedicated nodes for the fastest landing times. Method:POST
Path: /blitzz
Rate Limit: 3 requests/second per IP
Request Body
Includes all fields from/local-trade, plus:
The base58 private key used to sign the transaction and pay fees.
Response
Transaction status (e.g.,
"success").The transaction signature.
Descriptive error message (only present on error).
Examples
Metadata Endpoint
Fetch on-chain metadata for one or more tokens. Method:POST
Path: /metadata
Rate Limit: 1 request/second per IP
Limit: Up to 10 mints per request
Request Body
An array of 1 to 10 base58 mint addresses.
Response
Array of metadata objects for successfully fetched tokens.
Array of error objects for tokens that could not be fetched.
Example
Data WebSocket
Stream real-time events, including trades, token creations, and migrations. URL:wss://api.blitzz.fun/ws
Path: /
Limits:
- Max 2 connections per IP.
- You must subscribe to at least one filter within 10 seconds of connecting.
- Max Limit of 50 Pubkeys on the Mint and Account filter.
Subscribing to Events
Send a JSON message to the WebSocket to subscribe to events. You can filter by mint, account, or event type.Subscribe to mints
Subscribe to mints
Subscribe to accounts (trader/creator)
Subscribe to accounts (trader/creator)
Subscribe to new token creations
Subscribe to new token creations
Subscribe to migration events
Subscribe to migration events
Unsubscribing from Events
Unsubscribe from mints
Unsubscribe from mints
Unsubscribe from accounts
Unsubscribe from accounts
Unsubscribe from new creations
Unsubscribe from new creations
Unsubscribe from migrations
Unsubscribe from migrations
Event Examples
Errors and Limits
Common HTTP Errors
- 400 Bad Request: Invalid input (e.g., bad pubkey, amount < 0).
- 404 Not Found: Item not found (e.g., token or pool does not exist).
- 429 Too Many Requests: Rate limit exceeded.
- 500 Internal Server Error / 502 Bad Gateway: Server or upstream error.
- 503 Service Unavailable: Blockhash is temporarily unavailable.
- 504 Gateway Timeout: Timed out waiting for transaction confirmation on
/blitzz.
Rate Limits
/local-trade
5 requests/second per IP
/blitzz
3 requests/second per IP
/metadata
1 request/second per IP (10 mints max)
WebSocket
2 connections per IP