Quick Start Guide
Get up and running with AllenHark's infrastructure and trading bots in under 5 minutes.
Prerequisites
Before you begin, make sure you have:
- A Solana wallet with SOL for transactions
- Node.js 18+ installed
- Basic knowledge of Solana and trading concepts
Step 1: Get API Access
Contact our team to get your API credentials:
1# You'll receive:
2# - API Key
3# - API Secret
4# - RPC Endpoint URLStep 2: Install the SDK
1npm install @allenhark/sdk
2# or
3yarn add @allenhark/sdkStep 3: Configure Your Environment
Create a .env file in your project root:
1ALLENHARK_API_KEY=your_api_key_here
2ALLENHARK_API_SECRET=your_api_secret_here
3ALLENHARK_RPC_URL=https://rpc.allenhark.com
4SOLANA_PRIVATE_KEY=your_wallet_private_keyStep 4: Initialize the Client
1import { AllenHarkClient } from '@allenhark/sdk';
2
3const client = new AllenHarkClient({
4 apiKey: process.env.ALLENHARK_API_KEY!,
5 apiSecret: process.env.ALLENHARK_API_SECRET!,
6 rpcUrl: process.env.ALLENHARK_RPC_URL!,
7});
8
9// Test connection
10const status = await client.getStatus();
11console.log('Connected:', status.connected);Step 5: Run Your First Bot
1import { PumpFunSniper } from '@allenhark/sdk';
2
3const sniper = new PumpFunSniper(client, {
4 buyAmount: 0.1, // SOL
5 slippage: 10, // 10%
6 autoSell: {
7 takeProfit: 2.0, // 2x
8 stopLoss: 0.5, // -50%
9 },
10});
11
12// Start monitoring
13await sniper.start();
14console.log('Sniper bot is now running!');Next Steps
Need Help?
- Join our Discord community
- Email support: support@allenhark.com
- Check troubleshooting guide