Skip to main content

Overview

NEXUS V2 will provide unified liquidity across Bitcoin, Zcash, and Dogecoin via intent exchange, enabling seamless cross-chain operations.
Cross-chain swaps and unified liquidity are planned for V2. V1 supports deposits, withdrawals, and smart contracts on each chain independently.

V1 (Current)

ChainDepositsWithdrawalsSmart Contracts
Bitcoin
Zcash✅ (t-addr)✅ (t-addr)
Dogecoin

V2 (Planned) - Intent Exchange

ChainCross-Chain SwapsUnified Liquidity
Bitcoin🔄 BTC/ZEC, BTC/DOGE🔄
Zcash🔄 ZEC/BTC, ZEC/DOGE🔄
Dogecoin🔄 DOGE/BTC, DOGE/ZEC🔄

How Intent Exchange Works (V2)

┌─────────────────────────────────────────────────────────────────┐
│                    V2: Intent Exchange                           │
├─────────────────────────────────────────────────────────────────┤
│                                                                  │
│  1. User creates swap intent                                    │
│     "Swap 1 BTC for at least 50,000 DOGE"                       │
│                    │                                             │
│                    ▼                                             │
│  2. Intent broadcast to solver network                          │
│                    │                                             │
│                    ▼                                             │
│  3. Solvers compete to fill the intent                          │
│                    │                                             │
│                    ▼                                             │
│  4. Best solver executes cross-chain swap                       │
│                    │                                             │
│                    ▼                                             │
│  5. User receives DOGE on Dogecoin L1                           │
│                                                                  │
└─────────────────────────────────────────────────────────────────┘

V2 Cross-Chain Swap Example

// V2: Intent-based cross-chain swap
const intent = await client.createSwapIntent({
  fromChain: 'bitcoin',
  toChain: 'dogecoin',
  fromAmount: '100000000',  // 1 BTC in sats
  minToAmount: '50000000000000',  // 50,000 DOGE minimum
  recipient: dogeAddress,
  deadline: Math.floor(Date.now() / 1000) + 3600  // 1 hour
});

console.log('Intent ID:', intent.id);

// Wait for solver to fill the intent
const result = await client.waitForIntentFulfillment(intent.id);
console.log('Received:', result.amountOut, 'DOGE');

V1 Usage (Current)

In V1, each chain operates independently:

Deposit to Bitcoin

const vault = await client.getVaultAddress('bitcoin');
console.log('Deposit BTC to:', vault.vaultAddress);
// Send BTC via bitcoin-cli or wallet

Deposit to Zcash

const vault = await client.getVaultAddress('zcash');
console.log('Deposit ZEC to:', vault.vaultAddress);  // t-addr
// Send ZEC via zcash-cli or wallet

Deposit to Dogecoin

const vault = await client.getVaultAddress('dogecoin');
console.log('Deposit DOGE to:', vault.vaultAddress);
// Send DOGE via dogecoin-cli or wallet

Benefits of Intent Exchange (V2)

  1. Best execution - Solvers compete for best price
  2. No slippage - Price locked at intent creation
  3. Trustless - Cryptographic guarantees
  4. Cross-chain atomic - All-or-nothing execution
  5. MEV protection - Intents prevent front-running