How can I generate an API access token?
The OneBalance API uses API keys to authenticate requests. All API requests require authentication using an API key passed in thex-api-key
header:
Terminal
A public API key is available for testing purposes with limited usage:
42bb629272001ee1163ca0dbbbc07bcbb0ef57a57baf16c4b1d4672db4562c11
What is a base URL?
OneBalance API is built on REST principles and is served over HTTPS. To ensure data privacy, unencrypted HTTP is not supported. The Base URL for all API endpoints is:Terminal
How to fix CORS errors?
OneBalance API implements Cross Origin Resource Sharing (CORS) to allow requests from browsers on different domains. CORS is generally handled by the server, not the client. If you’re experiencing CORS errors in your browser application, you have several options:- Use a server-side proxy - Create a backend service that makes requests to OneBalance API and returns the data to your frontend
- Implement a middleware in Next.js - If using Next.js, create route handlers that proxy the requests to the API
- Contact us - Use the Intercom chat widget or email support if you need your domain allowed for direct browser access
What are the rate limits?
The OneBalance API implements rate limiting to ensure fair usage and availability of the service for all users:- Public API Key: 100 requests per minute
- Authenticated Users: 400 requests per minute
429 Too Many Requests
response. To handle rate limits effectively, monitor the rate limit headers in your API responses:
Terminal
How do I handle API errors?
The API uses standard HTTP status codes to indicate success or failure:2xx
- Success4xx
- Client error (like invalid parameters)5xx
- Server error
Error Response
message
field for details on how to resolve the issue, and include the id
when using the Intercom chat widget or contacting support.
See the Errors documentation for more information.
How can I paginate results?
For endpoints that return large collections of items, the API uses cursor-based pagination. To paginate results:- Specify a
limit
parameter to control the number of items per page - Use the
continuation
token from the response to fetch the next page
How do I work with aggregated assets?
Aggregated assets are OneBalance’s unified representation of tokens across multiple chains. For example,ds:usdc
represents USDC across all supported networks.
Key endpoints for working with aggregated assets:
- List Assets - Get all supported aggregated assets
- Aggregated Balance - Check balances across chains
- Get Quote - Create quotes using aggregated assets
How do I track transaction status?
OneBalance provides transaction tracking through our Status API:- Get Quote Status - Track individual quote execution
- Get Transaction History - View complete transaction history
EIP-7702 Implementation
Should I choose EIP-7702 for my app?
EIP-7702 is designed for apps with existing EOA users. It provides:- Address preservation - users keep their familiar addresses
- Single-click experience with automatic delegation
- Gas abstraction - sponsored transactions hide complexity
- Seamless integration - existing endpoints remain unchanged
What is the difference between EIP-7702 and ERC-4337 accounts?
EIP-7702 accounts (For existing EOA users):- Use your existing EOA address - users keep familiar addresses
- Seamless user experience with address preservation
- Automatic delegation bundled with first transaction
- Gas abstraction built-in
- Cannot use Resource Locks with EOA-based setup
- Use a new Smart Contract Account address
- Established standard with broad compatibility
- More straightforward technical integration
- Full Resource Lock compatibility
Do users need to do anything special for EIP-7702 accounts?
No - it’s completely automatic. Users only see their intended action (swap, transfer, etc.). OneBalance automatically bundles the delegation with their first transaction on each chain. From the user’s perspective, it’s a single click with no gas fees.Do I need to change my existing code for EIP-7702?
No additional engineering work required. All existing OneBalance endpoints remain unchanged. EIP-7702 support is handled automatically by the platform when you configure your account type:What about multi-input scenarios with EIP-7702?
The delegation process currently supports only one source chain asset different from the destination chain asset. For complex scenarios requiring multiple input assets from different chains, you can manually submit delegations ahead of requesting quotes. Coverage: Majority of flows work in single transactions, remainder require manual delegation fallback. We provide clear code examples for this approach using viem library calls and RPC methods. See our troubleshooting guide.Can I use Resource Locks with EIP-7702?
Not with EOA-based EIP-7702 accounts. Resource Locks require security guarantees that are impossible when users control the private key directly. However, a WaaS/Turnkey pathway is in development that enables Resource Locks with EIP-7702 by using managed wallets with proper security controls. For applications requiring Resource Locks today, use ERC-4337 accounts.Is EIP-7702 production ready?
Yes, EIP-7702 support is live in production on all supported EVM chains. Technical capabilities:- Majority of cross-chain flows complete in single transactions
- Single-transaction bundling prevents stuck funds
- Works with existing wallet infrastructure
- Supports all EVM chains in OneBalance network
What are common EIP-7702 use cases?
EIP-7702 is used for:- Cross-chain DeFi operations (lending, DEX, derivatives)
- Multi-asset transactions with single-transaction execution
- EOA migration to smart accounts without address changes
- Gas-sponsored transactions for improved user experience
Solana Support
How do I use Solana with OneBalance?
Solana operations require v3 API endpoints which support multiple blockchain accounts. Use the accounts array format with Solana account type:- Get Quote v3 -
POST /api/v3/quote
- Execute Quote v3 -
POST /api/v3/quote/execute
- Aggregated Balance v3 -
GET /api/v3/balances/aggregated-balance
Can I swap between Solana and EVM chains?
Yes! OneBalance supports cross-chain operations between Solana and EVM chains. You can:- Solana → EVM: Swap SOL to USDC on Arbitrum
- EVM → Solana: Swap USDC on Ethereum to SOL
- Multi-account: Use aggregated balances from both chains
How is Solana signing different from EVM?
Solana uses a different transaction signing process:- Data format: Solana operations provide base64 encoded
dataToSign
- Message format: Convert to
MessageV0
using@solana/web3.js
- Transaction format: Create
VersionedTransaction
- Signature format: Return base58 encoded signature
What Solana tokens are supported?
Currently supported on Solana:- SOL (native token)
- USDC (SPL token)
Are call data operations supported on Solana?
Not yet. Call data operations (contract interactions) are coming soon but currently not supported on Solana. Current Solana support includes:- ✅ Swaps and transfers
- ✅ Cross-chain operations
- ✅ Balance queries
- 🚧 Call data (coming soon)