Expand description
Apex SDK builder for configuration
This module provides a builder pattern for configuring and creating ApexSDK instances with support for Substrate and EVM blockchain adapters.
§Examples
use apex_sdk::prelude::*;
#[tokio::main]
async fn main() -> Result<()> {
// Configure SDK with both Substrate and EVM support
let sdk = ApexSDK::builder()
.with_substrate_endpoint("wss://polkadot.api.onfinality.io/public-ws")
.with_evm_endpoint("https://mainnet.infura.io/v3/YOUR_KEY")
.with_timeout(30)
.build()
.await?;
Ok(())
}Structs§
- ApexSDK
Builder - Builder for constructing an ApexSDK instance with customizable configuration.