Overview
Velora (formerly ParaSwap) is a leading DEX aggregator that provides:
- MEV Protection - Private transactions through Flashbots
- Multi-path Routing - Split orders across multiple DEXs for best execution
- Gas Optimization - Efficient transaction routing to minimize gas costs
- Delta Algorithm - Advanced pricing algorithm for optimal rates
Features
- Price API - Get optimal swap prices and routing
- Transaction Builder - Build executable swap transactions
- Token Lists - Query supported tokens per chain
- Multi-chain - Supports Ethereum, Polygon, BSC, Arbitrum, Optimism, Base, and more
Quick Start
use ;
async
Building Transactions
use ;
let client = new?;
// 1. Get a price quote
let price_request = sell;
let price = client.get_price.await?;
// 2. Build the transaction
let tx_request = new;
let tx = client.build_transaction.await?;
println!;
println!;
println!;
Token Lists
use ;
let client = new?;
let tokens = client.get_tokens.await?;
for token in &tokens.tokens
Supported Chains
| Chain | Chain ID |
|---|---|
| Ethereum | 1 |
| Polygon | 137 |
| BSC | 56 |
| Arbitrum | 42161 |
| Optimism | 10 |
| Base | 8453 |
| Avalanche | 43114 |
| Gnosis | 100 |
Configuration
use ;
use Duration;
// With API key (recommended for production)
let client = with_api_key?;
// With custom configuration
let config = new
.api_key
.timeout;
let client = with_config?;
API Reference
License
MIT