Apex SDK Protocol
Build secure, multichain blockchain applications with compile-time safety
Apex SDK Protocol is a compile-time safe, unified Rust SDK that enables developers to build multichain applications spanning Substrate and EVM ecosystems. With a single, intuitive API, reduce development complexity while ensuring type safety and native performance across Polkadot, Kusama, Ethereum, and more.
Features
- Unified Interface: Single API for both Substrate and EVM blockchains
- Compile-Time Type Safety: Catch errors before deployment, not in production
- Native Performance: Rust-based implementation for optimal execution speed
- Metadata-Driven: Automatic type generation from blockchain runtime metadata
- Multi-Chain Ready: Built-in support for multichain communication
- Modular Architecture: Easy to extend with new blockchain protocols
- Comprehensive Testing: Built-in testing framework for multichain scenarios
- Developer Friendly: Extensive documentation and examples
Quick Start
Get started with Apex SDK in under 5 mins:
# Install Apex SDK CLI
# Create a new multi-chain project
# Navigate to project directory
# Build and test
Installation
Requirements
- Rust 1.85 or higher
- Cargo package manager
Via Cargo
# Add to your Cargo.toml
[]
= "0.1.0"
= "0.1.0"
= "0.1.0"
From Source
# Clone the repository
# Build from source
# Run tests
# Install locally
Testing
Apex SDK includes comprehensive testing infrastructure with unit tests, integration tests, and Docker-based testing against local blockchain nodes.
Quick Testing
# Run all unit tests
# Run with all features
# Run doc tests
Docker Integration Tests
Test against actual blockchain nodes running in Docker containers:
# Start test nodes (Hardhat + Substrate)
# Run EVM integration tests
INTEGRATION_TESTS=1
# Run Substrate integration tests
INTEGRATION_TESTS=1
# Stop test nodes
See docker/README.md for detailed documentation on the Docker integration test infrastructure.
Supported Chains
Currently Supported
| Chain | Type | Status | Features |
|---|---|---|---|
| Polkadot | Substrate | Stable | Full support |
| Kusama | Substrate | Stable | Full support |
| Ethereum | EVM | Stable | Full support |
| BSC | EVM | Stable | Full support |
| Polygon | EVM | Stable | Full support |
| Avalanche | EVM | Stable | Full support |
| Moonbeam | Hybrid | Stable | Substrate + EVM |
| Astar | Hybrid | Stable | Substrate + EVM |
Coming Soon
- Cosmos SDK chains (via IBC)
- Solana
- Near Protocol
- Arbitrum & Optimism (L2s)
Documentation
Complete Documentation Hub - Your one-stop guide
Quick Links
| Resource | Description |
|---|---|
| Quick Start | Get started in 5 minutes |
| API Reference | Complete API documentation |
| CLI Guide | Command-line tools guide |
| Roadmap | Development roadmap & priorities |
| Security | Security policies & reporting |
Domain Shortcuts
Quick access via dedicated subdomains:
- start.apexsdk.dev - Quick Start
- api.apexsdk.dev - API Reference
- cli.apexsdk.dev - CLI Guide
- play.apexsdk.dev - Interactive Viewer
- docs.apexsdk.dev - Full Documentation
See DOMAINS.md for the complete domain structure.
Examples
Check out the examples/ directory for complete working examples:
evm-transfer/- Execute actual ETH transfers on testnet with wallet signingevm-contract-call/- Type-safe ERC-20 contract interactions using Alloyaccount-manager/- Multi-chain account managementprice-oracle/- Multi-chain price aggregationcontract-orchestration/- Smart contract deploymentparachain-assets/- Parachain asset management
Advanced Topics
- Typed Metadata - Compile-time type safety
- Testing Framework - Comprehensive testing
- Security Audit - Security review results
- Ecosystem Integration - Third-party integrations
Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines
Quick Start:
Setup Git Hooks (Recommended):
Install pre-commit hooks to catch CI failures before pushing:
This will automatically run format checks, clippy lints, and builds before each commit.
To bypass (use sparingly): git commit --no-verify
Community
- Discord: Join our community
- GitHub Discussions: Ask questions and share ideas
- Issues: Report bugs or request features
Security
Report vulnerabilities: security@apexsdk.dev
Security Policy | Security Profiles | Security Audit
Security-Hardened Builds
Apex SDK includes multiple security-hardened build profiles:
# Production build with maximum security
# Standard production build
# See SECURITY_PROFILES.md for detailed information