Skip to main content

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
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:
Where:
  • ob is the OneBalance prefix
  • {symbol} is the lowercase token symbol

Caching Strategy

Asset lists change infrequently. Consider caching the response to improve performance.

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