Documentation
Comprehensive guides and technical documentation for building on Xolium
Quick Start
Getting Started with Xolium
Xolium provides a Solana-native network utility layer that enables priority execution, adaptive liquidity routing, and infrastructure fee capture. This guide will help you integrate Xolium into your Solana applications.
1. Installation
npm install @xolium/sdk @solana/web3.js2. Initialize Client
import { XoliumClient } from '@xolium/sdk'
import { Connection } from '@solana/web3.js'
const connection = new Connection('https://api.mainnet-beta.solana.com')
const client = new XoliumClient({
connection,
network: 'mainnet-beta',
apiKey: process.env.XOLIUM_API_KEY // Optional
})3. Execute Your First Transaction
const signature = await client.executePriorityTransaction({
instructions: [/* your instructions */],
priorityLevel: 'high',
maxRetries: 3
})Core Concepts
Learn about the core components of Xolium's infrastructure layer, including execution credits, liquidity routing, and value accrual mechanisms.
Network Layers:
- • Execution Layer: Priority transaction processing with MEV protection
- • Routing Layer: Cross-DEX liquidity aggregation and optimization
- • Settlement Layer: Fee capture and value redistribution
XOL serves as the utility token for network operations, fee payment, and value capture across the Xolium infrastructure.
Burn XOL to obtain priority execution credits. 1 XOL = 100 credits. Credits are non-transferable and consumed per transaction.
25% of protocol fees used for XOL buyback and burn. Creates deflationary pressure and sustainable token economics.
Stake XOL for 7-365 days to earn yield from protocol revenue. APY ranges from 12-45% based on lock duration.
Staked XOL grants voting power for protocol parameters, fee structures, and treasury allocation (Q3 2025).
Node.js 18+, @solana/web3.js v1.87+, TypeScript 5.0+ (recommended)
- 1. Install SDK and dependencies
- 2. Configure RPC endpoints and network
- 3. Initialize XoliumClient instance
- 4. Implement error handling and retry logic
Use connection pooling, implement exponential backoff, cache route calculations, monitor transaction status.
Complete audits by OtterSec (Jan 2025) and Sec3 (Feb 2025). All critical findings resolved.
- • Multi-signature treasury (3/5 threshold)
- • Time-locked admin functions (48h delay)
- • Emergency pause mechanism
- • Rate limiting on withdrawals
24/7 monitoring with automated alerts, anomaly detection, and circuit breakers for unusual activity.
Active program on Immunefi with rewards up to $500,000 for critical vulnerabilities.
Advanced Topics
Standard execution, 95th percentile confirmation time ~8s. Suitable for non-time-sensitive operations.
Enhanced priority, 90th percentile confirmation time ~4s. Recommended for most DeFi operations.
Premium execution, 80th percentile confirmation time ~2s. Ideal for arbitrage and time-sensitive trades.
Maximum priority with MEV protection, 70th percentile confirmation time ~1s. For critical, high-value transactions.
Xolium's smart fee engine automatically adjusts priority fees based on real-time network congestion, block production rates, and historical confirmation times to optimize for both cost and speed.
Xolium's routing engine evaluates up to 1000+ possible paths across major Solana DEXs (Raydium, Orca, Meteora, Phoenix) to find optimal execution routes. The algorithm considers:
- • Pool liquidity depth and slippage curves
- • Historical execution success rates
- • Gas costs for multi-hop routes
- • Real-time price impact simulation
For large trades, Xolium automatically splits orders across multiple pools to minimize price impact. Example: A 100K USDC → SOL swap might be split 60% Orca, 40% Raydium for optimal execution.
const route = await client.findOptimalRoute({
inputMint: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', // USDC
outputMint: 'So11111111111111111111111111111111111111112', // SOL
amount: 100_000_000000, // 100K USDC
slippageBps: 50, // 0.5% slippage tolerance
options: {
splitRoutes: true,
maxHops: 3,
excludeDexes: [] // Optional: exclude specific DEXs
}
})
// Returns: {
// route: RouteInfo[],
// expectedOutput: bigint,
// priceImpact: number,
// executionSteps: Step[]
// }Technical Reference
API Reference
Complete REST and WebSocket API documentation for real-time interaction with Xolium infrastructure.
Submit priority transactions with execution guarantees
Calculate optimal swap routes across DEX aggregators
Stake XOL tokens with lock period selection
Historical metrics, TVL, volume, and APY data
Real-time transaction updates and network events
Rate Limits: 1000 req/min for authenticated, 100 req/min for public endpoints
Smart Contracts
On-chain program addresses and interaction specifications for direct integration.
- • ExecutePriority: Submit priority transaction
- • Stake: Lock XOL for yield
- • Unstake: Withdraw after lock period
- • ClaimRewards: Harvest staking rewards
- • Route: Execute optimized swap
Verified Source: All programs verified on Solana Explorer with reproducible builds