interbtc-api

@interlay/interbtc-api / Exports / AssetRegistryAPI

Interface: AssetRegistryAPI

Implemented by

Table of contents

Methods

Methods

getCollateralForeignAssets

getCollateralForeignAssets(): Promise<ForeignAsset[]>

Get all foreign assets which have a registered collateral ceiling, meaning they can be used as collateral currency.

Returns

Promise<ForeignAsset[]>

All foreign assets that have been registered as collateral currency

Defined in

src/parachain/asset-registry.ts:32


getForeignAsset

getForeignAsset(id): Promise<ForeignAsset>

Get foreign asset by its id.

Parameters

Name Type Description
id number | u32 The id of the foreign asset.

Returns

Promise<ForeignAsset>

The foreign asset.

Defined in

src/parachain/asset-registry.ts:25


getForeignAssets

getForeignAssets(): Promise<ForeignAsset[]>

Get all currencies (foreign assets) in the asset registry.

Returns

Promise<ForeignAsset[]>

A list of currencies.

Defined in

src/parachain/asset-registry.ts:18