What You Can Do
Abstract Bridging & Funding
Use EVM balances to buy tokens and pay fees on Solana, and vice versa - no manual bridging required
Optimized Routing
Automatically find the best liquidity and lowest fees across Solana and EVM ecosystems
EVM Contract Calls
Execute smart contract functions on EVM chains using combined EVM and Solana balance funding
Solana Contract Calls
Execute programs on Solana using combined balances (coming soon)
Key Differences from EVM
v3 API Endpoints Required
Solana operations require the v3 API endpoints which support multiple accounts:Solana Account Structure
Solana accounts are simpler than EVM smart accounts:Solana uses base58-encoded addresses and doesn’t require session/admin addresses like EVM smart accounts.
Different Signing Process
Solana transactions use a different signing mechanism than EVM:Prerequisites
Before integrating Solana with OneBalance:API Key Configuration: Custom API keys need Solana explicitly enabled. Contact support@onebalance.io or use the public test key
42bb629272001ee1163ca0dbbbc07bcbb0ef57a57baf16c4b1d4672db4562c11
for development.Integration Steps
1
Update to v3 endpoints
Switch from v1 to v3 endpoints to support Solana accounts:
- Get Quote v3 -
POST /api/v3/quote
- Execute Quote v3 -
POST /api/v3/quote/execute
- Aggregated Balance v3 -
GET /api/v3/balances/aggregated-balance
- Prepare Call Quote v3 -
POST /api/v3/quote/prepare-call-quote
- Get Call Quote v3 -
POST /api/v3/quote/call-quote
2
Add Solana wallet support
Integrate Solana wallet providers like Phantom, Solflare, or others in your frontend.
3
Handle cross-chain account structure
Update your code to use the accounts array format to support both EVM and Solana accounts.
4
Implement Solana signing
Add Solana-specific transaction signing using
@solana/web3.js
and bs58
libraries.5
Test operations
Test your integration with the API
Account Setup Patterns
You can configure accounts in different ways based on your needs:Single Account Operations
Cross-Chain Operations
Unified Balance Operations
Next Steps
Quickstart
Get your first Solana cross-chain swap working in 5 minutes
Working Examples
Complete code examples for swaps and cross-chain operations
Solana FAQ
Token discovery, API keys, limitations, and common questions
Contract Calls
Use Solana assets to fund smart contract calls on EVM chains
Troubleshooting
Common issues, solutions, and debugging tips for Solana integration