Your complete guide to building cross-chain applications with Apex SDK
New to Apex SDK? Start here:
| Guide | Time | Description |
|---|---|---|
| Quick Start Guide | 5 min | Get your first cross-chain app running |
| CLI Guide | 10 min | Master the command-line tools |
| API Reference | Reference | Complete API documentation |
Find documentation specific to your needs:
# Project Management
apex new <name> # Create new project
apex build # Build project
apex test # Run tests
# Chain Operations
apex chain list # List supported chains
apex chain info <name> # Get chain information
# Documentation (Current Status)
apex account generate # Not implemented - see alternatives
apex account import # Not implemented - see alternatives
apex deploy # Not implemented - see alternatives
Note: Some CLI features are in development. See UX Improvements Applied for current status and alternatives.
.apex/config.json - Project configurationCargo.toml - Dependencies and metadata.github/workflows/ - CI/CD pipelines| Example | Chains | Description |
|---|---|---|
| Account Manager | Multi-chain | Manage accounts across ecosystems |
| Price Oracle | Polkadot + ETH | Aggregate prices cross-chain |
| Contract Orchestration | EVM | Deploy and manage contracts |
| Parachain Assets | Substrate | Work with parachain assets |
# DeFi template
apex new my-defi --template defi
# NFT template
apex new my-nft --template nft
# Basic template (default)
apex new my-app --template basic
| Module | Description | Documentation |
|---|---|---|
apex_sdk |
Main SDK interface | API Docs |
apex_sdk_substrate |
Substrate adapter | API Docs |
apex_sdk_evm |
EVM adapter | API Docs |
apex_sdk_types |
Shared types | API Docs |
apex_sdk_core |
Core traits | API Docs |
ApexSDK - Main SDK structTransaction - Cross-chain transactionChain - Blockchain enumerationAddress - Multi-chain address typeTransactionResult - Execution resultSee our Development Roadmap for:
Initialize a new project:
apex new my-app && cd my-app
Connect to chains:
let sdk = ApexSDK::builder()
.with_substrate(Chain::Polkadot, "wss://rpc.polkadot.io")
.with_evm(Chain::Ethereum, "https://eth.llamarpc.com")
.build().await?;
Execute a transaction:
let tx = sdk.transaction()
.from_substrate_account("5GrwvaEF...")
.to_evm_address("0x742d35Cc...")
.amount(1000)
.build()?;
let result = sdk.execute(tx).await?;
Check balance:
let balance = sdk.substrate()
.get_balance("5GrwvaEF...")
.await?;
Pro Tips:
Common Pitfalls:
| Resource | Link |
|---|---|
| Main Repository | github.com/kh3rld/apexsdk |
| Issues | Report a bug |
| Examples | Browse examples |
| API Docs | API Reference |
| CLI Guide | Command-line tools |