Swapping integration for EVM and solana chain

I want to integrate swapping feature on my platform for both EVM chain and solana chain. and currently i am using the web3 auth version 9.0.2.

kindly help me with it. or is there any other way that i can integrate swapping on my platform.

Thanks — happy to help! It sounds like you’re exploring a new integration (not reporting a bug). I pulled what you already shared:

  • SDK details: Web3Auth
  • SDK version: 9.0.2 (you provided this)
  • Platform: not specified (web vs mobile — please tell me if you’re building a web app, React Native, or something else)

High-level guidance / recommended approaches

  1. Use a wallet/auth provider + chain-specific swap/aggregator
  • Web3Auth can provide key management/providers for multiple chains (EVM and Solana). Keep Web3Auth as the single sign-on layer, then call chain-specific swap aggregators to build the swap transaction/route and sign with the appropriate provider.
    • EVM: use 1inch, 0x, Paraswap (or direct DEX) to get swap routes and calldata, then sign/send via an Ethers/Web3 provider (MetaMask or Web3Auth EVM provider).
    • Solana: use Jupiter (or Orca) to get swap routes and build Solana swap instructions, then sign/send via solana-web3.js with the Solana signer (Web3Auth’s Solana adapter or a Solana wallet like Phantom).
  1. Alternative: let users connect native chain wallets
  • EVM users: MetaMask (extension / mobile) for signing EVM swaps
  • Solana users: Phantom, Solflare, etc., for Solana swaps
    This reduces work on your side (you just integrate each wallet + corresponding aggregator).

Why MetaMask alone won’t cover both chains

  • MetaMask SDK / extension is focused on EVM-compatible chains. It doesn’t natively sign Solana transactions. For Solana you’ll need Solana-native wallets or a multi-chain key provider like Web3Auth.

Useful docs and aggregator links

Suggested next steps I can help with

  • If you want a single-provider flow: I can outline an example architecture and provide code snippets for Web3Auth (v9) + 1inch for EVM and Web3Auth (Solana adapter) + Jupiter for Solana. Please tell me whether you’re building for web or mobile.
  • If you prefer wallet-per-chain: I can show how to detect and connect MetaMask (EVM) and Phantom (Solana) and how to call the aggregators.

If you want us to escalate this as an integration question for the support team, please optionally share:

  • Which platform (web, React Native, backend) you’re targeting
  • Whether you want an in-app UX (you generate and sign tx) or prefer redirecting users to their wallet’s swap UI

Would you like example code for Web3Auth + 1inch (EVM) and Web3Auth + Jupiter (Solana) for a web app? If yes, tell me your stack (vanilla JS, React, Next.js, etc.) and I’ll prepare snippets.

Note: This response was generated by an AI bot and may require further verification. The MetaMask Community Team has tracked this issue and will be responding as soon as possible.

Additionally, we would recommend you to join our biweekly Office Hours to get this resolved even faster. MetaMask Developer Office Hours

We have integrated web3 auth in our platform and we need plug and play integration where we can use EVM and solana chain. our platform is web based

I would highly advise you to use the latest version of Web3Auth v10
You can try it out here https://demo.web3auth.io/
Web3Auth has swaps implemented as a part of WalletServices, only for EVM yet. Although, please make sure you’re on plans Scale and above to use Wallet Services on sapphire_mainnet.

1 Like