Skip to main content
Socket supports swapping assets from any EVM chain to Solana and from Solana to any EVM chain. This guide walks you through swapping assets between EVM chains and Solana using Socket, including supported chains, transaction options, and current limitations.

Quick Start

Solana Chain ID

The chain ID for Solana queries is 89999.

Key differences

Here’s what’s different when integrating Solana compared to standard EVM chains: Transaction Flow
  • No token approvals are needed on Solana
API Behavior
  • Both userAddress and receiverAddress required for quotes
  • Fee collection only works from EVM to Solana
  • Native Tokens across all Chains (0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee): Use this address to represent native tokens on any chain (ETH, SOL, etc.)
  • Wrapped SOL (wSOL) (So11111111111111111111111111111111111111112): The SPL token address for wrapped SOL on Solana

Integration Steps

  1. Select Chains: Users choose the source and destination chains, which determine the tokens available for bridging.
  2. Fetch Quote: Call the /quote endpoint which returns an autoRoute object containing txData, requestHash, and optionally approvalData.
  3. Handle Token Approval (EVM only): For EVM transactions, check if approvalData exists. Solana transactions do not require approvals.
  4. Submit Transaction: Execute the transaction using txData from the quote response.
  5. Track Transaction Status: Poll the /status endpoint using the source txHash until the bridging process is complete.
For Solana quotes, please ensure both userAddress and receiverAddress are defined.Solana does not require token approvals.

Examples

Queries

Scripts