Quick Start Guide
Get up and running with AllenHark's Solana infrastructure and trading tools in under 5 minutes. Pick the track that matches what you're building.
Prerequisites
Before you begin, make sure you have:
- A Solana wallet with SOL for transactions
- Node.js 18+, Rust 1.70+, or Python 3.10+ installed
- Basic knowledge of Solana and trading concepts
Track 1: Land transactions faster (AllenHark Relay)
Send your pre-signed transaction over QUIC, WebSocket or HTTPS to Frankfurt, Amsterdam, New York or Tokyo; it broadcasts it to the current and upcoming leaders.
- Create an API key in the Relay tab of the console. Keys have the form
ak_<digits>, and every request needs one. - Add a tip of at least 0.001 SOL inside your transaction: a top-level
SystemProgram.transferto one of the AllenHark tip wallets. The tip is the price of the relay; there is no monthly fee. - Send the signed transaction, base64-encoded:
const response = await fetch("https://relay.allenhark.com/v1/sendTx", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY",
},
body: JSON.stringify({ tx: "BASE64_ENCODED_TRANSACTION", simulate: false }),
});
console.log(await response.json()); // { status: "accepted", request_id, signature }For the lowest latency, send over QUIC; the AllenHark Relay guide has the endpoints for every region, QUIC, WebSocket and Rust and Python examples, and atomic Jito bundles.
Track 2: Stream market data (RPC, gRPC, Shreds)
- Staked RPC endpoints — stake-weighted QoS for reliable sendTransaction
- Yellowstone gRPC — stream accounts, transactions, blocks, and slots
- ShredStream — raw shreds before block propagation completes
Track 3: Run a trading bot
- PumpFun Sniper — snipe token launches with 0-slot execution, reading shreds and buying through AllenHark Relay
- Arbitrage Bot — buys a watched token on one pool and sells it on another in one transaction that starts and ends in SOL
- Wallet Blacklist — block known scammer wallets before they hit your fills
Next Steps
- Explore Infrastructure
- AllenHark Relay guide
- Account API
- MCP server for Claude, ChatGPT, Codex, Cursor and other AI clients
Need Help?
- Join our Discord community
- Email support: support@allenhark.com
- Check the Relay error codes
