🌉Cross-Chain Bridge
The first x402 facilitator with native cross-chain payment bridging. Sellers receive on their preferred chain—even if buyers pay on a different one. Powered by deBridge DLN for trustless, fast transfers.
How It Works
The Dexter Facilitator wraps deBridge's DLN protocol into the x402 flow. When a payment arrives on Chain A but the seller wants Chain B, we handle the bridge automatically.
BridgeScheme implements SchemeNetworkFacilitator from @x402/core. It receives payment on the source chain, executes the bridge via deBridge DLN, and delivers funds on the destination chain—all within the standard x402 verify/settle flow.Supported Routes
Currently live on mainnet. The facilitator only advertises routes it can actually fulfill.
GET /bridge/routesGet a Quote
Real-time quotes from the live facilitator. Try different amounts to see how fees scale.
Integration
Cross-chain payments work automatically when you use the Dexter facilitator. No code changes needed—just configure your preferred chain.
// Seller: Configure to receive on Base (even if buyers pay on Solana)
import { createX402Server } from '@dexterai/x402/server';
const server = createX402Server({
payTo: '0x1234...abcd', // Your Base address
network: 'eip155:8453', // Base mainnet
facilitatorUrl: 'https://x402.dexter.cash', // Dexter facilitator
});
// The facilitator automatically bridges payments from Solana → Base
const requirements = await server.buildRequirements({
amountAtomic: '1000000', // 1 USDC
resourceUrl: '/api/my-endpoint',
});// Buyer: Pay on your preferred chain - bridging is transparent
import { createX402Client, createSolanaAdapter } from '@dexterai/x402';
const client = createX402Client({
adapters: [createSolanaAdapter()],
wallets: { solana: yourSolanaWallet },
});
// Even if the seller wants Base, you pay on Solana
// The facilitator handles bridging automatically
const response = await client.fetch('https://api.example.com/paid-endpoint', {
method: 'POST',
body: JSON.stringify({ data: 'your-request' }),
});// Check if facilitator supports bridging via /supported
const res = await fetch('https://x402.dexter.cash/supported');
const { kinds } = await res.json();
// Look for bridge scheme with destinations
const bridgeKind = kinds.find(k => k.scheme === 'bridge');
if (bridgeKind?.extra?.bridgeDestinations) {
console.log('Bridge destinations:', bridgeKind.extra.bridgeDestinations);
console.log('Bridge fee:', bridgeKind.extra.bridgeFeePercent + '%');
}// Get a real-time bridge quote
const params = new URLSearchParams({
from: 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp',
to: 'eip155:8453',
amount: '10000000', // 10 USDC in atomic units
recipient: '0x40272E2eAc848Ea70db07Fd657D799bD309329C4',
});
const res = await fetch(`https://x402.dexter.cash/bridge/quote?${params}`);
const { quote } = await res.json();
console.log('You send:', quote.inputAmount);
console.log('They receive:', quote.outputAmount);
console.log('Bridge fee:', quote.bridgeFeePercent + '%');Why This Matters
First-of-its-kind
No other x402 facilitator offers cross-chain bridging. This is a Dexter exclusive.
Seller flexibility
Accept payments on your chain of choice—even if buyers prefer a different one.
Buyer convenience
Pay on your preferred chain without worrying about what chain the seller uses.
Protocol native
Integrates directly with x402 v1/v2 without any protocol changes required.
Trustless
Built on deBridge DLN—no custodial risk, no trusted third parties holding funds.
Fast
~60 second settlement. DLN market makers provide instant liquidity on destination.
Fee Structure
Fees consist of a small Dexter facilitator fee (0.1%) plus deBridge protocol fees. The deBridge fixed operating cost makes small amounts appear expensive, but larger transfers are very efficient.
| Amount | Approx. Total Fee | Note |
|---|---|---|
| $10 | ~13.5% | Fixed cost dominates |
| $50 | ~5-6% | More efficient |
| $100 | ~3-4% | Good value |
| $500 | ~1-2% | Optimal range |
| $1,000+ | ~0.5-1% | Best rates |
Verified on Mainnet
4TRkq6n1XJoo...juUZEZView on Solscan ↗Technical Architecture
The bridge is implemented as a custom x402 scheme that wraps deBridge's DLN protocol.
BridgeScheme
Implements SchemeNetworkFacilitator from @x402/core. Handles verify/settle for cross-chain payments.
DeBridgeProvider
Adapter for deBridge's DLN API. Gets quotes, builds transactions, tracks order status.
DeBridgeExecutor
Signs and submits bridge transactions using @debridge-finance/dln-client SDK.
src/bridge/
├── index.ts # Public exports
├── bridgeScheme.ts # BridgeScheme - x402 protocol integration
├── utils.ts # Type-safe payload utilities
└── providers/
├── types.ts # BridgeProvider interface
├── debridge.ts # deBridge/DLN adapter
└── debridgeExecutor.ts # Transaction executionReady to integrate?
Use the Dexter facilitator URL in your x402 setup. Cross-chain payments work automatically when buyer and seller are on different chains.