Quick Start
Solana Chain ID
The chain ID for Solana queries is89999.
Key differences
Here’s what’s different when integrating Solana compared to standard EVM chains: Transaction Flow- No token approvals are needed on Solana
- Both
userAddressandreceiverAddressrequired for quotes - Fee collection only works from EVM to Solana
Special Token Address Handling
Special Token Address Handling
- 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
- Select Chains: Users choose the source and destination chains, which determine the tokens available for bridging.
- Fetch Quote: Call the
/quoteendpoint which returns anautoRouteobject containingtxData,requestHash, and optionallyapprovalData. - Handle Token Approval (EVM only): For EVM transactions, check if
approvalDataexists. Solana transactions do not require approvals. - Submit Transaction: Execute the transaction using
txDatafrom the quote response. - Track Transaction Status: Poll the
/statusendpoint using the sourcetxHashuntil the bridging process is complete.
For Solana quotes, please ensure both
userAddress and receiverAddress are defined.Solana does not require token approvals.Examples
Queries
Quote from Base USDC to Solana TRUMP
Quote from Base USDC to Solana TRUMP
Check trending tokens on Solana
Check trending tokens on Solana
Scripts
Quote and swap from Solana SOL to Base USDC (Viem & Solana/web3.js)
Quote and swap from Solana SOL to Base USDC (Viem & Solana/web3.js)