UNPKG

@effectai/sdk

Version:

Effect Network Javscript/Typescript SDK (for [https://effect.network](https://effect.network))

22 lines (21 loc) 765 B
import type { IAssetRow, ISchemaRow } from "atomicassets/build/API/Rpc/RpcCache"; import type { Client } from "../../client"; export declare const deserializeAsset: (asset: IAssetRow, schema: ISchemaRow) => { immutable_deserialized_data: any; mutable_deserialized_data: any; asset_id: string; collection_name: string; schema_name: string; template_id: string; ram_payer: string; backed_tokens: string[]; immutable_serialized_data: Uint8Array; mutable_serialized_data: Uint8Array; }; export type getAssetArgs = { client: Client; account: string; assetId: string; doDeserializeAsset?: boolean; }; export declare const getAsset: ({ client, account, assetId, doDeserializeAsset, }: getAssetArgs) => Promise<any>;