Developers
Cross-chain swaps via API: Ethereum to Solana walkthrough
Quote a bridge route, sign the origin transaction, and poll until funds arrive on Solana.
All posts
7 min read
Cross-chain swaps require a wallet on the source chain and optionally a destination address. XAUConnect routes through 0x Cross-Chain (with composite USDC-bridge fallbacks when direct routes are unavailable).
Quote with taker addresses
const { quote } = await api.crossChainQuote({
fromChainKey: "ethereum",
toChainKey: "solana",
tokenIn: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", // USDC
tokenOut: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", // USDC Solana
amountIn: "1000000000",
slippageBps: 50,
taker: "0xYourEthWallet...",
takerDestination: "YourSolanaWallet...",
});Build and inspect executionSteps
The build response includes executionSteps[] describing each wallet action. Composite routes may require multiple transactions (swap → bridge → swap).
Poll bridge status
const status = await api.crossChainStatus( quote.quoteId!, "ethereum", originTxHash, "solana", ); // status.status: pending | completed | failed | unknown
Ready to integrate?
Follow the quickstart or explore the OpenAPI reference.