Overview
The Assets API provides a list of all supported aggregated assets in the OneBalance system. Each aggregated asset represents a token type (like USDC or ETH) that exists across multiple chains, along with metadata about the individual chain-specific implementations.API Methods
getAssets
Retrieve the complete list of supported aggregated assets.Parameters
This method takes no parameters.Returns
Array of all supported aggregated assets
Example
Example Response
Common Use Cases
Building Asset Selectors
Finding Asset Details
Checking Chain Support
Formatting Asset Amounts
Real-World Implementation
Asset ID Format
OneBalance uses a consistent format for aggregated asset IDs:obis the OneBalance prefix{symbol}is the lowercase token symbol
Caching Strategy
Filtering Assets
Error Handling
Best Practices
Cache Responses
Assets change rarely - cache for 5-10 minutes to reduce API calls
Load on Startup
Fetch assets early in app lifecycle for immediate availability
Validate Asset IDs
Always validate user-provided asset IDs against the supported list
Show Metadata
Display asset names and symbols for better UX
Related APIs
- Balances API - Uses asset decimals for formatting
- Quotes API - Uses aggregated asset IDs
- Chains API - For chain metadata in aggregatedEntities
Related Types
- Asset - Complete asset structure
- AggregatedAssetEntity - Chain-specific asset details