Skip to main content

Overview

The Asset types define the structure for representing aggregated assets in OneBalance, which combine the same token across multiple blockchains into a single unified asset.

Asset

Represents an aggregated asset that spans multiple blockchain networks.

Properties

string
required
Unique identifier for the aggregated assetFormat: ob:{symbol} where ob stands for OneBalanceExamples:
  • ob:eth - Ethereum aggregated across all supported chains
  • ob:usdc - USDC aggregated across all supported chains
  • ob:dai - DAI aggregated across all supported chains
string
required
Token symbol in uppercaseExamples: "ETH", "USDC", "DAI", "USDT"
string
required
Full name of the assetExamples: "Ethereum", "USD Coin", "Dai Stablecoin"
number
required
Number of decimal places for the tokenCommon values:
  • 18 - ETH, DAI, and most ERC-20 tokens
  • 6 - USDC, USDT
  • 8 - WBTC
AggregatedAssetEntity[]
required
Array of individual asset instances across different chains. See AggregatedAssetEntity below.

Example


AggregatedAssetEntity

Represents a single instance of an asset on a specific blockchain network.

Properties

string
required
CAIP-19 format identifier for the asset on a specific chainFormat: {namespace}:{chainId}/{assetNamespace}:{assetReference}Examples:
  • "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" (USDC on Ethereum)
  • "eip155:137/slip44:60" (ETH on Polygon)
  • "eip155:42161/erc20:0xff970a61a04b1ca14834a43f5de4533ebddb5cc8" (USDC on Arbitrum)
number
required
Number of decimal places for this specific token instanceNote: This should match the aggregated asset’s decimals, but is included for completeness
string
required
Full name of the token on this specific chain
string
required
Token symbol on this specific chain

Example


Understanding Aggregated Assets

OneBalance’s core feature is asset aggregation - treating the same token across multiple chains as a single unified balance.

How It Works

1

Asset Identification

Each blockchain has its own instance of a token (e.g., USDC on Ethereum, USDC on Polygon, USDC on Base)
2

Aggregation

OneBalance groups these instances under a single aggregated asset ID (e.g., ob:usdc)
3

Unified Balance

Users see and interact with a single USDC balance, even though it may be distributed across multiple chains
4

Automatic Routing

When swapping or transferring, OneBalance automatically selects the optimal chain(s) to execute from

Common Aggregated Assets

Asset
USD Coin across Ethereum, Polygon, Base, Optimism, Arbitrum, and more
Asset
Tether USD across supported chains
Asset
Dai Stablecoin across supported chains

Usage Examples

Finding Available Chains for an Asset

Getting Contract Address for a Specific Chain

Checking if Asset is Available on a Chain

Formatting Asset Amounts