QuanChain
Developers

Developer Resources and Integration Guides

Comprehensive tooling, software development kits, and technical documentation for integrating with the QuanChain protocol layer.

Integration Workflow

1

Install Development Kit

npm install @quanchain/sdk
2

Acquire Testnet Tokens

3

Begin Integration

Code Examples

Rust
use quanchain_sdk::prelude::*;

#[tokio::main]
async fn main() -> Result<()> {
    // Connect to QuanChain
    let client = QuanChainClient::new("https://rpc.quanchain.ai").await?;

    // Create a wallet with security level 7
    let wallet = Wallet::new(SecurityLevel::Level7)?;

    // Sign and send a transaction
    let tx = Transaction::new()
        .to("QC7_3F8K9Mn2pQ4rT6vX8yB1cD5e")
        .value(1000)
        .build()?;

    let receipt = wallet.send_transaction(&client, tx).await?;
    println!("TX Hash: {}", receipt.hash);

    Ok(())
}
JavaScript
import { QuanChain, Wallet } from '@quanchain/sdk';

async function main() {
  // Connect to QuanChain
  const client = new QuanChain('https://rpc.quanchain.ai');

  // Create a wallet with security level 7
  const wallet = await Wallet.create({ securityLevel: 7 });

  // Sign and send a transaction
  const tx = await wallet.sendTransaction({
    to: 'QC7_3F8K9Mn2pQ4rT6vX8yB1cD5e',
    value: 1000n,
  });

  console.log('TX Hash:', tx.hash);
}

main();

Software Development Kits

Rust SDK

Beta

Native Rust implementation providing direct protocol interaction with minimal overhead

v0.1.0
  • Full node interaction
  • Transaction signing
  • DTQPE integration
  • Async support

JavaScript SDK

Beta

TypeScript-first implementation for browser and Node.js runtime environments

v0.1.0
  • Browser & Node.js
  • Wallet integration
  • React hooks
  • Type safety

Python SDK

Planned

Python implementation for scripting, data analysis, and research workflows

Coming Soon
  • Async/await
  • Data analysis
  • Jupyter support
  • CLI tools

Developer Support Channels

Technical support is available through community forums and the project repository. Issue reports and pull requests are encouraged.