@substrate/api-sidecar
Version:
REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.
14 lines (13 loc) • 581 B
TypeScript
import { BlockHash } from '@polkadot/types/interfaces';
import { IPoolAssetInfo } from '../../types/responses';
import { AbstractService } from '../AbstractService';
export declare class PalletsPoolAssetsService extends AbstractService {
constructor(api: string);
/**
* Fetch a pool asset's `AssetDetails` and `AssetMetadata` with its `AssetId`.
*
* @param hash `BlockHash` to make call at
* @param assetId `AssetId` used to get info and metadata for an asset
*/
fetchPoolAssetById(hash: BlockHash, assetId: number): Promise<IPoolAssetInfo>;
}