Skip to main content

Crate apex_sdk

Crate apex_sdk 

Source
Expand description

§Apex SDK

The industry’s first unified Rust SDK for Substrate & EVM blockchain development.

§Features

  • Unified Interface: Single API for both Substrate and EVM blockchains
  • Compile-Time Type Safety: Catch errors before deployment
  • Native Performance: Rust-based implementation
  • Cross-Chain Ready: Built-in cross-chain communication support

§Example

use apex_sdk::prelude::*;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let sdk = ApexSDK::builder()
        .with_substrate_endpoint("wss://polkadot.api.onfinality.io/public-ws")
        .with_evm_endpoint("https://mainnet.infura.io/v3/YOUR_KEY")
        .build()
        .await?;
     
    Ok(())
}

Re-exports§

pub use advanced::BlockInfo;
pub use advanced::BlockSubscription;
pub use advanced::EventSubscription;
pub use advanced::ParallelExecutor;
pub use advanced::TransactionBatch;
pub use builder::ApexSDKBuilder;
pub use error::Error;
pub use error::Result;
pub use error_recovery::with_retry;
pub use error_recovery::CircuitBreaker;
pub use error_recovery::RetryConfig;
pub use performance::batch_execute;
pub use performance::parallel_execute;
pub use performance::AsyncMemo;
pub use performance::BatchConfig;
pub use performance::ConnectionPool;
pub use performance::RateLimiter;
pub use sdk::ApexSDK;
pub use sdk::ConfirmationStrategy;
pub use sdk::SdkConfig;
pub use transaction::Transaction;
pub use transaction::TransactionBuilder;
pub use transaction::TransactionResult;
pub use apex_sdk_core as core;
pub use apex_sdk_evm as evm;
pub use apex_sdk_substrate as substrate;
pub use apex_sdk_types as types;

Modules§

advanced
Advanced features and utilities.
builder
Builder pattern implementation for creating Apex SDK instances.
error
Error types for the Apex SDK.
error_recovery
Error recovery and retry mechanisms.
performance
Performance optimization utilities.
prelude
Prelude module for common imports
sdk
Main SDK interface providing unified access to both Substrate and EVM blockchains.
transaction
Transaction types and builders for the Apex SDK.