For the complete documentation index, see llms.txt. This page is also available as Markdown.

Developer & Integration Architecture

1. Future SDK Overview

The Unchained SDK (planned for Phase 4) will expose:

// Connect wallet

const wallet = await UnchainedSDK.connect();

// Execute swap via Jupiter routing

const swap = await wallet.swap({

from: 'SOL',

to: 'UCHN',

amount: 1.0,

slippage: 0.5 // percent

});

// Access AI Tool Hub

const insight = await wallet.ai.query({

type: 'trade_analysis',

asset: 'SOL/USDC'

});

// Commerce purchase

const purchase = await wallet.commerce.buy({

product: 'esim_1gb',

currency: 'UCHN'

});

2. Commerce Protocol Integration (Third-Party Apps)

Third-party applications can integrate the Commerce Protocol to accept $UCHN payments:

  1. Register as a merchant via on-chain instruction

  2. Generate a payment request (amount, token, memo)

  3. User's wallet signs and submits the payment transaction

  4. Merchant receives settlement (stablecoin or $UCHN) after fee deduction

  5. Webhook callback notifies merchant's backend of confirmed payment

No KYC required from either party, settlement is purely on-chain.

  1. AI Tool Hub "Token-Gating Logic"

Request received → Check wallet balance

Balance < free tier threshold → Return limited response

Balance ≥ pro tier threshold → Deduct access fee from wallet

Full AI response delivered

Fee routed: X% burned, Y% to treasury

Access tiers and fee amounts are stored in an on-chain config account, updatable by governance multisig.

Last updated

Was this helpful?