@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) • 561 B
TypeScript
import { BlockHash } from '@polkadot/types/interfaces';
import { IAssetInfo } from '../../types/responses';
import { AbstractService } from '../AbstractService';
export declare class PalletsAssetsService extends AbstractService {
constructor(api: string);
/**
* Fetch an 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
*/
fetchAssetById(hash: BlockHash, assetId: number): Promise<IAssetInfo>;
}