@conxian/market-sdk

中文文档
0.2.4发布于 2026/10/03MITTypeScriptES Module近 30 天下载 5085

Conxian Market SDK — full integration bridge: fee calculator, gateway client, verification, settlement, and SDK capability wiring for all 27 enclave-sdk + lib-conxian-core modules.

原始使用文档
文档目录6 节
  1. 🏛 Ecosystem Role & Boundary Alignment
  2. 🔗 Dependency and Integration Coverage
  3. 🛠 Integrated SDK Modules (33 Capabilities)
  4. 📊 Economic & Governance Framework
  5. ⚡ Quick Start (x402 Attestation Escrow)
  6. 📚 Documentation & Research Index

Conxian Market SDK (@conxian/market-sdk)

The Verifiable Settlement, Escrow & Trust Layer for Autonomous Agent Commerce (x402) Version: 0.2.0 | Status: Active Production Core | Capabilities: 33 Integrated Modules


🏛 Ecosystem Role & Boundary Alignment

The conxian_market repository (@conxian/market-sdk) serves as the verifiable settlement, escrow, SLA enforcement, and trust layer for autonomous agent commerce (x402).

Rather than building proprietary smart contracts or AI agents, Conxian operates as a Market-Agnostic, Zero-Custody Value Router and Trust Layer on top of x402. Conxian orchestrates and monetizes industrial agent labor through:

  • Attestation-Backed x402 Verification: Hardware enclave attestation (TEE/Nitro/KeyMint) verification for agent identity and "Verified by Conxian" trust proof artifacts.
  • Programmable Escrow (ERC-8183 / CJCS Job Cards): Non-custodial escrow locks tied to HTTP 402 payment demands and receipts.
  • Multi-Rail Bitcoin/Stacks/EVM Settlement: Non-custodial settlement across Lightning, Fedimint, sBTC, ALEX, Citrea, RGB, and EVM ERC-8183.
  • Autonomous SLA Enforcement & Dispute Arbitration: Automated delay penalties, gap card bounties, and builder reputation recovery.
┌─────────────────────────────────────────────────────────────────────────┐
│              CONXIAN MARKET: THE M2M TRUST & SETTLEMENT LAYER          │
├─────────────────────────────────────────────────────────────────────────┤
│                                                                          │
│   All other Conxian repos are INFRASTRUCTURE that ENABLES the market.   │
│                                                                          │
│   ┌─────────────┐  ┌─────────────┐  ┌─────────────┐  ┌──────────────┐   │
│   │  x402 Trust │  │ Multi-Rail  │  │ ERC-8183    │  │ Zero-Custody │   │
│   │ Attestation │  │ Settlement  │  │ Escrow      │  │ BYO DeFi     │   │
│   └─────────────┘  └─────────────┘  └─────────────┘  └──────────────┘   │
│                                                                          │
└─────────────────────────────────────────────────────────────────────────┘

🔗 Dependency and Integration Coverage

The Marketplace SDK is intentionally designed to consume the Conxian org stack at the correct abstraction layer:

DependencyStatus in this RepoEvidence / ModuleNotes
Conxian/ConxianDeprecated / Archived Referencesrc/market_agnostic_router.tsCustom smart contract development is frozen to eliminate maintenance debt and audit overhead in favor of external BYO DeFi adapters.
lib-conxian-coreDirectly Usedsrc/core_types.tsShared trust-tier, chain, rail, and settlement type definitions.
conxian-gatewayDirectly Usedsrc/gateway_client.ts & src/settlement.tsPrimary live integration point for REST endpoints and settlement execution.
conxian-nexusDirectly Usedsrc/verification.tsVerification and trust-tier attestation semantics.
conxius-enclave-sdkSecurity Dependencysrc/verification.ts & src/x402_facade.tsHardware enclave attestation (Nitro/KeyMint/TEE) and BYOK key handling.
conxius-platformControl PlaneOrg docs & roadmapCI/CD automation and release rulesets.
conxian-businessGovernance Boundarysrc/bos_yield_splitter.tsCommercial packaging doctrine (80/10/10 split, fee decay, founder vesting).

🛠 Integrated SDK Modules (33 Capabilities)

The @conxian/market-sdk package exposes 33 integrated capabilities via ConxianMarketSDK:

  1. Control Model (verification.ts): TrustTier detection & P0 gap degradation.
  2. CJCS Escrow (gateway_client.ts): Programmable Job Card settlement & escrow.
  3. Attestation Verifier (verification.ts): TEE (Nitro/KeyMint) & ZK proof validation via Nexus/Gateway.
  4. Fee Calculator & Revenue Model (fee_calculator.ts): Tier-based pricing, discounts & revenue projections.
  5. Settlement Orchestration (settlement.ts): Multi-rail settlement execution across 8+ rails.
  6. Autonomous SLA Engine (sla_engine.ts): Automated job card evaluation, delay penalties, gap cards & builder reputation.
  7. Telemetry & Treasury Watcher (monitoring_watcher.ts): sBTC peg health, Fedimint mints, Babylon staking & 12-month runway calculator.
  8. TrustTier Middleware (trust_tier_middleware.ts): 4-stage pricing pipeline, SLA template resolution & wire headers.
  9. BOS Yield Splitter (bos_yield_splitter.ts): 80/10/10 yield split, fee decay timeline, founder vesting & Thin Orchestrator BYOK guard.
  10. Market-Agnostic Router (market_agnostic_router.ts): Zero-custody validation, BYO DeFi protocol adapter resolution, M2M MCP routing & deprecation advisory.
  11. Job Card Escrow Engine (job_card_escrow.ts): ERC-8183 programmable escrow creation, output submission, SLA-integrated release, dispute/refund handling & reconciliation.
  12. x402 Escrow Gateway & Attestation Proofs (x402_facade.ts): Multi-rail HTTP 402 payment demands, hardware attestation proof verification & "Verified by Conxian" trust artifacts.
  13. Client Installation Engine (client_onboarding.ts): Enterprise client onboarding, system setup, domain routing firewall & CLI installer.

📊 Economic & Governance Framework

  • Yield Matrix (80/10/10): 80% Builder, 10% Platform Treasury, 10% Ecosystem Stakeholders.
  • Protocol Fee Structure: 2.0% launch rate (50% Operations, 30% Founder Vesting, 20% Ecosystem Growth).
  • Fee Decay Timeline: 2.0% (0–12m), 1.5% (12–36m), 1.0% (36m+).
  • Zero-Custody Mandate: Conxian never touches or custodies client funds or private data.
  • Thin Orchestrator & BYOK: Centralized heavy AI inference is prohibited; compute runs at the edge or via user-provided keys.

⚡ Quick Start (x402 Attestation Escrow)

import { ConxianMarketSDK, SettlementRail, TrustTier } from "@conxian/market-sdk";

// Initialize SDK
const sdk = await ConxianMarketSDK.connect({
  baseUrl: "https://gateway.conxian.io",
});

// Create x402 payment demand for job
const demand = sdk.createX402Demand({
  id: "job-101",
  title: "Agent Data Analysis",
  bountySat: 1_000_000n,
});

// Receipt received from client agent
const receipt = {
  demandId: "job-101",
  transactionId: "tx-999",
  amountSat: "1000000",
  paidAt: Date.now(),
  payerDid: "did:conxian:client:alice",
};

// Client enclave attestation certificate
const cert = {
  enclave_attestation: "0xenclave_attestation_proof",
  timestamp: Date.now(),
};

// Verify attestation & lock ERC-8183 escrow with "Verified by Conxian" trust proof
const { escrowRecord, trustProof } = await sdk.processX402PaymentAndLockEscrowWithAttestation(
  demand,
  receipt,
  "did:conxian:agent:bob",
  SettlementRail.Sbtc,
  cert
);

console.log(`Escrow Locked: ${escrowRecord.jobId} (State: ${escrowRecord.state})`);
console.log(`Trust Proof Hash: ${trustProof.proofHash} (Tier: ${trustProof.verifiedTier})`);

📚 Documentation & Research Index


Intelligence is a Utility. Sovereignty is a Right.

版本与发布记录

@conxian/market-sdk 共发布 2 个版本,首次发布于 2026/10/03;过去 12 个月发布了 2 个版本。

版本发布日期距今
0.2.4latest2026/10/031 个月前
0.2.32026/10/031 个月前

关于 @conxian/market-sdk 的常见问题

@conxian/market-sdk 是什么?

Conxian Market SDK — full integration bridge: fee calculator, gateway client, verification, settlement, and SDK capability wiring for all 27 enclave-sdk + lib-conxian-core modules.

如何安装 @conxian/market-sdk?

在项目目录运行 npm install @conxian/market-sdk,或使用 pnpm add / yarn add / bun add。

@conxian/market-sdk 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@conxian/market-sdk 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@conxian/market-sdk 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@conxian/market-sdk 可以商用吗?

@conxian/market-sdk 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@conxian/market-sdk 的下载量有多少?

根据 npm 官方下载统计,@conxian/market-sdk 在 2026/10/11 – 2026/11/09 这 30 天内被下载 5,085 次,日均约 170 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@conxian/market-sdk 还在维护吗?

最新版本 0.2.4 发布于 2026/10/03(1 个月前);至今共发布 2 个版本,其中过去 12 个月发布了 2 个;首次发布于 2026/10/03。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。