import JSONRequest from '../jsonrequest.js'; import { HTTPClient, HTTPClientResponse } from '../../client.js'; import { AssetResponse } from './models/types.js'; export default class LookupAssetByID extends JSONRequest { private index; /** * Returns asset information of the queried asset. * * #### Example * ```typescript * const assetId = 163650; * const assetInfo = await indexerClient.lookupAssetByID(assetId).do(); * ``` * * [Response data schema details](https://developer.algorand.org/docs/rest-apis/indexer/#get-v2assetsasset-id) * @param index - The asset ID to look up. */ constructor(c: HTTPClient, index: number | bigint); /** * @returns `/v2/assets/${index}` */ path(): string; /** * Includes all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates * * #### Example 1 * ```typescript * const assetId = 163650; * const assetInfo = await indexerClient * .lookupAssetByID(assetId) * .includeAll(false) * .do(); * ``` * * #### Example 2 * ```typescript * const assetId = 163650; * const assetInfo = await indexerClient * .lookupAssetByID(assetId) * .includeAll() * .do(); * ``` * * @param value - default true when called without passing a value * @category query */ includeAll(value?: boolean): this; prepare(response: HTTPClientResponse): AssetResponse; }