Skip to main content

Assets Scope

Source: src/sdk/assets.ts

Use sdk.assets to read assets from the Core service.

Methods

findAll(params?: { categoryId?: string }): Promise<Asset[]>

Endpoint

GET /api/v1/core/assets

How it works

Retrieves all assets, optionally forwarding a categoryId query parameter.

Arguments

ArgumentTypeRequiredNotes
params.categoryIdstringNoFilters assets by category when supported by the backend.

Returns

Promise<Asset[]>

Request Example

const allAssets = await sdk.assets.findAll();

const stableAssets = await sdk.assets.findAll({
categoryId: 'stablecoins',
});

Response Example

[
{
id: 'asset-1',
code: 'USDC',
name: 'USD Coin',
decimalPlaces: 6,
address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
network: 'ethereum',
metadata: {},
createdAt: '2026-03-19T00:00:00.000Z',
updatedAt: '2026-03-19T00:00:00.000Z',
},
]

getById(id: string): Promise<Asset>

Endpoint

GET /api/v1/core/assets/:id

How it works

Retrieves one asset by identifier.

Arguments

ArgumentTypeRequiredNotes
idstringYesAsset identifier.

Returns

Promise<Asset>

Request Example

const asset = await sdk.assets.getById('asset-1');

Response Example

{
id: 'asset-1',
code: 'ETH',
name: 'Ethereum',
decimalPlaces: 18,
address: '0x0000000000000000000000000000000000000000',
network: 'ethereum',
metadata: {},
createdAt: '2026-03-19T00:00:00.000Z',
updatedAt: '2026-03-19T00:00:00.000Z',
}