Introduction
Welcome to the AutoHive Protocol documentation. AutoHive is a decentralized marketplace for influencer engagement built on Solana blockchain. This documentation will guide you through integrating AutoHive into your applications.
Key Features
- Trustless escrow smart contracts
- Decentralized engagement verification
- Instant token settlements on Solana
- Comprehensive analytics dashboard
- Multi-platform social media support
Quick Start
Get up and running with AutoHive in under 5 minutes. This guide will walk you through creating your first campaign.
Prerequisites
- Node.js version 16 or higher
- A Solana wallet (Phantom, Solflare, etc.)
- Some SOL for transaction fees
- HIVE tokens for campaign budget
Step 1: Install the SDK
npm install @autohive/sdk
Step 2: Initialize Client
import { AutoHiveClient } from '@autohive/sdk';
const client = new AutoHiveClient({
apiKey: 'your-api-key',
network: 'mainnet'
});
Step 3: Create Your First Campaign
const campaign = await client.campaigns.create({
name: 'My First Campaign',
budget: 1000,
duration: 7 * 24 * 60 * 60
});
API Reference
Complete API documentation for all AutoHive endpoints and methods.
Base URL
https://api.autohive.io/v1
Authentication
All API requests require authentication using your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /campaigns | List all campaigns |
| POST | /campaigns | Create new campaign |
| GET | /campaigns/:id | Get campaign details |
| POST | /payments | Process payment |
| GET | /analytics | Get analytics data |