info()

Get asset details for specified asset(s)

Parameters

export type AssetInfoProps = {
    assetId?: string;
    assetIds?: string[];
}

Examples

const asset= await assetlayer.assets.info({
    assetId: 'assetId'
});
const assets = await assetlayer.assets.info({
    assetIds: ['assetId_1', 'assetId_2']
});

Return Types

type ReturnType = Asset | Asset[];
Asset

Alternatives

getAsset()getAssets()

Last updated