@interlay/interbtc-api / Exports / AssetRegistryAPI
▸ getCollateralForeignAssets(): Promise<ForeignAsset[]>
Get all foreign assets which have a registered collateral ceiling, meaning they can be used as collateral currency.
Promise<ForeignAsset[]>
All foreign assets that have been registered as collateral currency
src/parachain/asset-registry.ts:32
▸ getForeignAsset(id): Promise<ForeignAsset>
Get foreign asset by its id.
| Name | Type | Description |
|---|---|---|
id |
number | u32 |
The id of the foreign asset. |
Promise<ForeignAsset>
The foreign asset.
src/parachain/asset-registry.ts:25
▸ getForeignAssets(): Promise<ForeignAsset[]>
Get all currencies (foreign assets) in the asset registry.
Promise<ForeignAsset[]>
A list of currencies.